Good afternoon. I try to start SD a card on LPC2378. Without RTX all perfectly works. With RTX on a command finit () the program jumps on DAbt_Addr. The theme (http://www.keil.com/forum/docs/thread15068.asp) at a forum has not helped. My code:
int main() { os_sys_init(init); while(1); } __task void init (void) { os_tsk_prio_self (100); finit(); os_tsk_create_user (blink_led, 30, &blink_stack, sizeof(blink_stack)); os_tsk_create (timer_task, 30); os_tsk_create_user (tcp_task, 0, &tcp_stack, sizeof(tcp_stack)); os_tsk_delete_self(); }
Show working example RTX with functions Flash File System
æˆ'也é‡åˆ°åŒæ ·çš„问题,æˆ'是将finit()æ"¾åˆ°main()䏿¥è§£å†³çš„ï¼Œä½ å¯ä»¥è¯•试。
int main() { finit(); os_sys_init(init); while(1); }
Maybe I did not have an older version of files? How do I find it?
yes. plugged. without positive changes
do you have retarget.c included in your project?
forgot to say that the size heap also established 0x800
I set a stack size 0x800, but it steel not working :( Do I need to connect Retarget.c to the project? Is there an example on site with RTX and file system?
What is your heap size set to? This can be found in the Startup file's Configuration Wizard. As mentioned in the previous thread, 0x800 bytes is a good size to start with.
http://www.keil.com/forum/docs/thread16273.asp
View all questions in Keil forum