cancel
Showing results for 
Search instead for 
Did you mean: 

Using the BlueNRG with FreeRTOS

aj.sk
Associate III

I try to use the BlueNRG in conjunction with the FreeRTOS but the system always ends up in a hardfault as soon as I querry the BLE services.

The initialization of the BlueNRG works and establishing a connection works as well. But it seems like any user driven event crashes something.

I have 3 concurrent tasks and the BLE task has highest priority.

My assumption is that I somehow have to implement an event driven scheduler blocking but I don't know where to start.

4 REPLIES 4
aj.sk
Associate III

Doubled the task's stack size, now it works

nfei
Associate II

hello, i did a similar work and i found program will crash in hcl_tl_lowlevel_isr().

Do u have this problem?

aj.sk
Associate III

Do you have the EXTI interrupt enabled in CubeMX?

nfei
Associate II

yes, i need the exti interrupt to achieve SPI packets.