Code hangs in _port_switch, any clues?
Posted: Sun Dec 24, 2017 2:56 am
Hi,
I've been moving the flight firmware dRonin from ChibiOS 2.6.6 onto 17.6.3. Everything seems to compile fine and the STM32F405RGT-based test boards fire up and reach the main() function just fine, halInit() and chSysInit() execute without error. But once I create the very first thread (outside ChibiOS' idle thread), the MCU will hang at _port_switch in chcoreasm_v7m.s. At least that's where I've tracked it down to with a code canary. I haven't any more details, I'm yet to receive my STLink (never really needed it up until now). Any ideas what this might usually be a symptom of?
Thanks for any hints.
I've been moving the flight firmware dRonin from ChibiOS 2.6.6 onto 17.6.3. Everything seems to compile fine and the STM32F405RGT-based test boards fire up and reach the main() function just fine, halInit() and chSysInit() execute without error. But once I create the very first thread (outside ChibiOS' idle thread), the MCU will hang at _port_switch in chcoreasm_v7m.s. At least that's where I've tracked it down to with a code canary. I haven't any more details, I'm yet to receive my STLink (never really needed it up until now). Any ideas what this might usually be a symptom of?
Thanks for any hints.