I have a problem. It seems the function _port_switch_from_isr in file chcore_v7m.c is overwriting one of my variables. The overwriting happens when this instruction executes: asm volatile ("svc #0"); At some point the stack pointer has the value: 0x20001b38 and when the above instruction executes it overwrites the address 0x20001b2C which is a member my own struct starting at 0x20001b28. According to the map file:
Code: Select all
0x20001b28 xpmHeader
0x20001b30 . = ALIGN (0x4)
*fill* 0x20001b2e 0x2 00
0x20001b30 _bss_end = .
0x20001b30 PROVIDE (end, .)
0x20001b30 _end = .
0x20001b30 __heap_base__ = _end
0x20001800 __heap_end__ = (__ram_end__ - __stacks_total_size__)
I'm using ChibiOS 2.2.6 and I have the STM32F100RBT6B.
Can somebody help me with this?