cancel
Showing results for 
Search instead for 
Did you mean: 

Release vs Debug, ARM vs Thumb

lgiordano2
Associate II
Posted on July 13, 2006 at 06:20

Release vs Debug, ARM vs Thumb

2 REPLIES 2
lgiordano2
Associate II
Posted on June 30, 2006 at 10:01

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,

lgiordano2
Associate II
Posted on July 07, 2006 at 20:08

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