Ok so basically I'm just trying to create my first RTX
application. I have the RTX_Config file for my device included in the
project (It's not called RTX_Config.c, its RTX_Conf_LPC21xx.c, I was
wondering if that could be the problem) I have rtl.h included im my
program and I have the task identified as __task, I commented out the
swi handler and replaced it w/ an import, and I changed my target
options. However When I cal the os_sys_init function it never calls
my task. In fact it ends up in a piece of code that looks like
this:
void *__user_perthread_libspace (void) {
/* Provide a separate libspace for each task. */
U32 idx;
idx = runtask_id ();
if (idx == 0) {
/* RTX not running yet. */
return (&__libspace_start);
}
return ((void *)&std_libspace[idx-1]);
}
When this code is called it performs that runtask_id and always
gets an idx of 0 evidently this means the kernel isn't running and
the program will return to the beginning of main. So my question is
has anyone ever encountered this problem, and does anyone know how to
fix it? Just for reference here is my program it's supposed to be a
simple program that just toggles the state of GPIO0:
If anyone could tell me what I'm doing wrong I would be ecstatic.
Read-Only
Author Andy McCall
Posted 29-Apr-2012 07:47 GMT
Toolset ARM
RE: RTX Not Running yet
Andy McCall
here's a hint to something im doing wrong: When I build my project
the compiler fusses about the os_task_create method.
Read-Only
Author Reluctant Consultant
Posted 29-Apr-2012 10:35 GMT
Toolset ARM
RE: RTX Not Running yet
Reluctant Consultant
When I build my project the compiler fusses about the
os_task_create method.
Would you care to clarify that?
Read-Only
Author Andy McCall
Posted 29-Apr-2012 15:00 GMT
Toolset ARM
RE: RTX Not Running yet
Andy McCall
Well I could get my project to build before I added it but after I
get an error saying:
os.axf: Error: L6218E: Undefined symbol os_task_create (referred
from main.o).
I actually think i figured this one out though. I went through
rtl.h looking for that define and I'm pretty sure it's just called
os_tsk_create. Once I removed that a I was able to build again.
However, I'm still not able to actually get the os to perform any of
my tasks.
Read-Only
Author Andy McCall
Posted 29-Apr-2012 18:04 GMT
Toolset ARM
RE: RTX Not Running yet
Andy McCall
Ok i kinda already knew this but the name of that file wasn't the
issue. I'm really not seeing what I'm missing here and I feel like
the os should be running fine. BTW I'm debugging this in the
simulator so I'm not sure if there are any problems associated w/
that. What I'm going to do is post like all of my project and ask if
anyone see's anything wrong.
Here's a link to my config file:
https://www.dropbox.com/s/km8oy4itsvv55ar/RTX_Config.c
Here's a link to my main:
https://www.dropbox.com/s/t2l7ihh67xnkxgy/main.c
here's a link to a screencap of my target settings:
https://www.dropbox.com/s/vrp4icj1bs3f1wh/target%20options.PNG
Here's a link to my project browser:
https://www.dropbox.com/s/0w4v49zxve0qmep/project%20browser.PNG
PS: Sorry about all the link's but when I added the config file to
the post it said my post was too long.
Read-Only
Author Andy McCall
Posted 30-Apr-2012 06:42 GMT
Toolset ARM
RE: RTX Not Running yet
Andy McCall
I solved the problem. The issue was that I didn't check the use
memory layout from target dialog box under linker settings.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.