nRF51 to nRF52 migration crash in SVC_Handler from HAL_CM4.c [closed]

francisg gravatar image

asked 2017-02-17 08:55:49 +0100


We're trying to port and migrate our nRF51 SDK v8 (softdevice s110) codebase to nRF52 SDK v11 (softdevice s132), but we're seeing a crash occur (goes into HardFault handler, shows up as INVSTATE in UFSR register). Debugged and traced it to what looks to be from MSP and seems to occur when SVC_Handler returns for svcMessageGet in osTimerThread. This is using SVC_Handler from HAL_CM4.c. However, when I replaced it with HAL_CM0.c, the crash seemed to have gone away.

Is there a step I'm missing in applying nRF SDK 11 on top of nRF51 SDK v8? Do I need to do anything to match up with updating to HAL_CM4.c in RTX?

We've already applied clock related erratas that wasn't already available in system_nrf52.c. Please let us know if we're missing a step.


edit retag flag offensive reopen delete report spam

Closed as "duplicate question" by Petter Myhre at 2017-02-17 11:59:19 +0100

1 answer

Sort by ยป oldest newest most voted
Petter gravatar image

answered 2017-02-17 11:59:14 +0100


edit flag offensive delete publish link more

Question Tools

1 follower


Asked: 2017-02-17 08:55:49 +0100

Seen: 46 times

Last updated: feb. 17