RTX Memory Problem - LPC1347

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RTX Memory Problem - LPC1347

1,143 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcolotz on Tue Feb 25 06:51:14 MST 2014
Hello all,

I am having problems with memory allocation when running RTX in my LPC1347. I am using lpcxpresso 6.1
Last week I have downloaded the last RTX version from Keil's website.
I have fixed all the compilation errors and now it looks like the project is compiling fine.

In the main.c, there is a call for a function called osThreadCreate().
The problem is that it returns a threadId = 0  to all the Threads that I try to create.

I have also tried to debug this error and looks like the RTX is having problems to free memory. The OS is returning
the following error: osErrorNoMemory. In debugging one can see that all that happens in the CM_SIS.c

I have tried many solutions and couldn't find an answer for why this error is happening. I guess it may be the linker, but if that is so, how to correctly configure it?

I have exported all the projects and its dependencies. The main is in the RTOS_Blinky. The project is attached to this post.

Original Attachment has been moved to: lpc1347_0.zip

标签 (1)
0 项奖励
回复
1 回复

1,009 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Feb 25 14:28:00 MST 2014
I think the problem is in your startup code. You need to add a call to

WEAK void software_init_hook (void); 

software_init_hook();

immediately after the data and bss sections have been initialised.
0 项奖励
回复