This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

FreeRTOS and ble nrf52

I use the nrf52832 with softdevice S132 s132_nrf52_1.0.0-3.alpha for a ble application. without the softdevice, the rtos works correctly.

but when I enter this parameters and load the Softdevice, i m going to the HardFault_Handler image description

the last instruction befor HardFault_Handler is in function prvStartFirstTask() called by xPortStartScheduler() :

__asm void prvStartFirstTask( void ){
PRESERVE8

/* Use the NVIC offset register to locate the stack. */
ldr r0, =0xE000ED08
ldr r0, [r0]
ldr r0, [r0]
/* Set the msp back to the start of the stack. */
msr msp, r0
/* Globally enable interrupts. */
cpsie i
cpsie f
dsb
isb
/* Call SVC to start the first task. */
svc 0 // <------------------------------------Going to HardFault_Handler
nop
nop
    }

Why this problem ?? have you example witch FreeRTOS and BLE for nRF52??

Tank You

Parents Reply Children
No Data
Related