Discussion Forum

memory allocation problem

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Attapon Yimsakul
Posted
13-Jul-2005 10:23 GMT
Toolset
C51
New! memory allocation problem
I have used transceiver Nordic NRF9e5 which has embedded 8051. It has 256 bytes data memory which is a part of 4kbytes. I have a problem as follows
- when my variables are larger than the lower part (128 bytes), It has to use the upper part (another 128 bytes) and I have to define the variable as idata type. This results in that the program does not work at the beginning of the code.

In my opinion, this problem should be from memory allocation but I can't solve.

Anyone can help me to solve this problem.!
Read-Only
Author
Reinhard Keil
Posted
13-Jul-2005 13:18 GMT
Toolset
C51
New! RE: memory allocation problem
This sounds like a stack problem. Please check the stack requirements (see: http://www.keil.com/support/docs/192.htm).

Maybe you can locate your array into the xdata space.

Reinhard

Next Thread | Thread List | Previous Thread Start a Thread | Settings