Skip to main content
aj.sk
Associate III
Mar 5, 2019 4:22 PM UTC
Question

Using the BlueNRG with FreeRTOS

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.

This topic has been closed for replies.

4 replies

aj.sk
aj.skAuthor
Associate III
Mar 6, 2019 12:44 PM UTC

Doubled the task's stack size, now it works

nfei
Associate
Mar 19, 2019 3:07 AM UTC

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

Do u have this problem?

aj.sk
aj.skAuthor
Associate III
Mar 19, 2019 7:07 AM UTC

Do you have the EXTI interrupt enabled in CubeMX?

nfei
Associate
Mar 19, 2019 7:10 AM UTC

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