cancel
Showing results for 
Search instead for 
Did you mean: 

Running from internal flash

vaughan
Associate II
Posted on October 27, 2006 at 20:53

Running from internal flash

3 REPLIES 3
vaughan
Associate II
Posted on October 26, 2006 at 20:00

Hi

I have some code that runs ok when load into RAM via the debugger but will not run when loaded into flash. I am using the GNU tool chain to compile with and OpenOCD to program the flash. I have modified my linker file so that the text section resides in flash and the other sections in RAM. When debugging from flash I can see that it is never getting to my main function. I have attached my startup.s and linker files.

What do I need to do to get my code linked from flash and running correctly?

Thanks

Vaughan

________________

Attachments :

hitex_str7_ram.ld : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtJZ&d=%2Fa%2F0X0000000aLU%2FeUlXDageWzhQsKZdr3J3g730dJF2EfJA7zO6tpD8wkk&asPdf=false

startup.s : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtH1&d=%2Fa%2F0X0000000aKz%2FkTvFiTobZeMmAZmubo1xzeQpwt.u34cv_S7QqhAiEhY&asPdf=false
kleshov
Associate II
Posted on October 27, 2006 at 03:32

If you are able to debug the code in flash, why don't you tell us exactly where it gets stuck?

vaughan
Associate II
Posted on October 27, 2006 at 20:53

Hi

Thanks for the reply but figured out what was happening. When converting from elf to bin I forgot an option so the file being programmed was not correct, stopping the code from running.

Cheers

Vaughan