Hi, i am doing RAM Test (SRAM -16kb)on the startup code before RAM Configuration and after the Reset Handler, while i write and read the entire RAM region i face the below issues,
1. it shows PE-ERROR: Warning. Can't read memory while part is running. @200004e8 (4 bytes)
2. No source available for "(gdb[2].proc[42000].threadGroup[i1],gdb[2].proc[42000].OSthread[1]).thread[1].frame[0]"
3.it will get inside the Reset Handler while running and LR and SP register Updating with the reference value which i give
Below is the code which i tried for RAM Testing
ram_config:
Kindly clarify.
Hi,
The S9KEAZ128 has 16KB SRAM, which ranges from 0x1FFF_E000 to 0x2000_1FFF, the 16KB/4=4K, which is 0x1000 or 2048
So pls try to modify:
ldr r2, =0x1fffe000 /* Base address to start */
otherwise, the high address will be incorrect.
Secondly, pls check the stack in the linker file, I suppose you'd better not write/read the stack.
Hope it can help you
BR
XiangJun Rong
/* Specify the memory areas RAM 16 Kb */
MEMORY
{
SRAM : ORIGIN = 0x1FFFF000, LENGTH = 0x00004000
}
1. this is our RAM region which is specified in the linker file so i used the 0x1ffff000 as base address
2. As you mentioned i didn't write the stack area but still i face the previous warnings and it doesn't get into main function ,here is the modified code
3. Is there any ways to over come the warnings mentioned?
4. Is it possible to read write the entire SRAM region, except Stack in the startup code for testing purpose ?
5.I want to know what is the process happening in the SRAM before startup code execution.
kindly clarify