2006-10-27 11:53 AM
2006-10-26 11:00 AM
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=falsestartup.s : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtH1&d=%2Fa%2F0X0000000aKz%2FkTvFiTobZeMmAZmubo1xzeQpwt.u34cv_S7QqhAiEhY&asPdf=false2006-10-26 06:32 PM
If you are able to debug the code in flash, why don't you tell us exactly where it gets stuck?
2006-10-27 11:53 AM
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