I work on lpc246.
I create a section placed on a sdram starting on 0xa0000000 and allocate all the data , bss, and rodata of a specific file to that section.
I compile and link the program and all is ok.
When I try to start a debug session using jtag , I receive the following error during the execution of reset script named FlashReset():
"Memory erase operation failed: no driver installed for memory range"
I suppose that the script try to zeroes the sdram, but wrong because the memory controller is not initialised.
1) What I have to do to avoid the access to the sdram memory before the program starts?
2) Where I have to put my code to initialize the sdram before the crt.s file copy and zero somthing into the sdram?
Please sign in to leave a comment.