2010-09-02 12:48 PM
Codesourcery startup and link file for STM32
2011-05-17 05:05 AM
MEMORY /* STM32F102R8 64K FLASH, 10K RAM */
{ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 64K SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 10K } Check also _stack, and _estack in .MAP file generated by the linker. And more generally verify that the RAM based allocations are in the 20000000..200027FF range. The linker should choke if the limits in the script are exceeded, but if those are wrong the CPU will fault as your initialization routines touch memory that is not present.2011-05-17 05:05 AM