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

Simple FreeRTOS example with softdevice doesn't work

I have created a simple program with 4 FreeRTOS threads(One time, 10 ms, 100 ms, 1000 ms) and it works fine stand alone giving me periodic tasks as expected.

Linker portion for working example:

MEMORY { FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000 }

But this same example doesn't work at all when I use S132 softdevice.

Firstly, if I flash my hex file as it is after softdevice is flashed, I get error of being not able to write to the memory. So in my application, I try a small change with linker

MEMORY { FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000 RAM (rwx) : ORIGIN = 0x20002128, LENGTH = 0xded8 } which allows me to flash my application when softdevice is also existing on the chip.

I have tried the following solutions already but they don't work for me:

devzone.nordicsemi.com/.../

devzone.nordicsemi.com/.../

What exactly is the problem of using FreeRTOS and softdevice together?

Parents
  • I do not suceed in flashing any of the SDK 12.2.x examples with FREERTOS on the NRF52832 with EvalKit while the chip has S132 3.1.0. Examples: ble_app_hrs_freertos, blinky_freertos (I even change the IROM Map addresses for target).

    I have tried with both freertos catalogue provided oficially in SDK 12.2.0 and the one attached in link text.

    The applications are built and flashed succesfully but the chip is completely hanged. No blinking, anything. Neither Eclipse/GCC or uVision/ARM Keil works. Besides, I can flash any other example (app_uart) without any problem... Is there any suggestion to what can be wrong in (1) my development bench or (2) framework?

Reply
  • I do not suceed in flashing any of the SDK 12.2.x examples with FREERTOS on the NRF52832 with EvalKit while the chip has S132 3.1.0. Examples: ble_app_hrs_freertos, blinky_freertos (I even change the IROM Map addresses for target).

    I have tried with both freertos catalogue provided oficially in SDK 12.2.0 and the one attached in link text.

    The applications are built and flashed succesfully but the chip is completely hanged. No blinking, anything. Neither Eclipse/GCC or uVision/ARM Keil works. Besides, I can flash any other example (app_uart) without any problem... Is there any suggestion to what can be wrong in (1) my development bench or (2) framework?

Children
No Data
Related