Skip to main content
aj.sk
Associate III
March 5, 2019
Question

Using the BlueNRG with FreeRTOS

  • March 5, 2019
  • 4 replies
  • 1816 views

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
March 6, 2019

Doubled the task's stack size, now it works

nfei
Associate
March 19, 2019

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
March 19, 2019

Do you have the EXTI interrupt enabled in CubeMX?

nfei
Associate
March 19, 2019

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