2006-07-12 09:20 PM
2006-06-30 01:01 AM
Hi, I am using STR710, with CrossStudio. I have some questions:
1) I am compiling in Thumb Mode. Is there some code which must be compiled in ARM mode? 2)I was compiling my application in Debug Mode, and never failed. As code size grow up, I had to switch to Release Mode. I have noticed that it activates optimization, which reduces code size. However, sometimes my application hangs up, or UART starts working wrong. Then, I deactivate optimization in my communication module and it seems to be working fine. Any suggestion? Regards,2006-07-07 11:08 AM
Hi RISC, thank you for answering.
I am using ST Library. However, the start-up code is one supplied from Rowley (adapted to work fine with CrossStudio-ST Library). I attach it so you can take a look at it. I am compiling those 2 files in ARM mode. However, I have noticed this: When an interrupt occurs, it jumps to some assembler code (on the files attached) which switchs from IRQ to SYS mode, calls my Application Interrupt Routine (according to each interrupt) and then switchs from SYS to IRQ. So, that file is in ARM mode, but my application code called from there IS NOT in ARM. Should it be in ARM too? What about optimization? Regards, ________________ Attachments : files.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0kb&d=%2Fa%2F0X0000000bmI%2F6ROvDo1JVFVKzpkBGQfzkMYCUkiGnbHetFWRdY2wFUY&asPdf=false