Hello Earl
I read the thread and added the suggested linker flags to my project (that already compile, link and start with debug). But the result ist the same: the processor jumps in the DefaultISR while he initialized the variables with values from the flash.
Edit: I have to turn on the 'Optimize Size' or the 'Optimize for Debug' flag because, the code is to big with none optimization (160k Flash).
c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: btTestKw40.elf section `.text' will not fit in region `m_text'
c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: section .data loaded at [00027c18,000281cf] overlaps section .text
c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: region `m_text' overflowed by 14720 bytes
But when i compile the same project in IAR with none optimization (health_thermometer_demo, with small changes meanwhile) it drops out the following code size.
114 566 bytes of readonly code memory
6 659 bytes of readonly data memory
13 875 bytes of readwrite data memory
I know, that the IAR compiler produce smaller code, but the difference ist to big for that reason (>160k with -Os (GCC) vs 120k without optimization (IAR) )
Thanks for your help
Peter