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

FreeRTOS on NRF51822

Hi

I've just seen Nordic has ported FreeRTOS into the NRF5x series. Have you been using it together the S110? What's your experience? Could I use it together any SoftDevice S110 version? I fear about memory resources problems.

Thanks in advance

Elena

Parents
  • Hi. Thanks for your reply. Your comments have encouraged me to test the FreeRTOS together to the S110. But my experience is not as good as yours. I'm not able to start the RTOS. Looks I'm having problems related to management of memory. When trying to create the firs task, looks that the RTOS stucks at this point:

    pxNewTCB->pxStack = pxStack (tasks.c, line 3111)

    Which heap file are you using? Could be a problem related to a bad configuration of the FreeRTOS. I've limited the heap memory to 2048KB... for example. I'm using a NRF51822 with 16KB, so not too much RAM memory availabile. Tomorrow I'll make some enquiries, but any advice should be helpfully to try to fix this problem.

    Thanks in advance

    Elena

    UPDATE: Hi again. I'm testing with the NRF51422 (32KB RAM), and I've update SD and all the headers. But I'm having the same problem. The app enters in hard fault when arrives to pxNewTCB->pxStack = pxStack (tasks.c, line 3111). I'm checking the hrs & freertos example but I see no differences. I'm using as environment Eclipse and GCC... Could be this the reason I'm not able to make it work the Freertos???? Thanks again

    UPDATE 2: Finally I've been able to get FreeRTOS working, although because the new SDK is not compatible with mine, I've not been able to test it with Bluetooth working. Two problems I've found: -I didn't see there has to be defined the followint symbols when compiling: BLE_STACK_SUPPORT_REQD __STACK_SIZE=2048 __HEAP_SIZE=1024 S110 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 FREERTOS -The startup file for gcc compiler is not correct. See my other thread (devzone.nordicsemi.com/.../). Its necessary to fix this in order to boot FreeRTOS

    Regards,

    Elena

  • Hi again. I'm testing with the NRF51422 (32KB RAM), and I've update SD and all the headers. But I'm having the same problem. The app enters in hard fault when arrives to pxNewTCB->pxStack = pxStack (tasks.c, line 3111). I'm checking the hrs & freertos example but I see no differences. I'm using as environment Eclipse and GCC... Could be this the reason I'm not able to make it work the Freertos???? Thanks again

Reply
  • Hi again. I'm testing with the NRF51422 (32KB RAM), and I've update SD and all the headers. But I'm having the same problem. The app enters in hard fault when arrives to pxNewTCB->pxStack = pxStack (tasks.c, line 3111). I'm checking the hrs & freertos example but I see no differences. I'm using as environment Eclipse and GCC... Could be this the reason I'm not able to make it work the Freertos???? Thanks again

Children
No Data
Related