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

BLE with FREERTOS - nrf_drv_gpiote_out_set/clear triggers Assertion failed

Hi, 

We are working with integrating LoRa to our nRF52840 with BLE and FreeRTOS. To be sure that LoRa worked as expected, we configured and tested LoRa on nRF52840 dk and observed it was functioning. Now, when we are moving the LoRa code to BLE and FreeRTOS code on nRF52840 dk, we get assertion failed error on nrf_drv_gpiote_out_set and sometimes on clear. I'm wondering if its the softdevice for BLE that can effect the GPIO configuration? 

This is the error on terminal: 

 app: ASSERTION FAILED at /****/***/***SDK/external/freertos/portable/CMSIS/nrf52/port_cmsis.c:273


Would appreciate any guidelines on how to solve the problem! 

Best Regards,
Hamza

Parents
  • Hi

    Just to clarify one thing. Are you talking about Coded PHY, the Long Range option that came with BLE v5.0 or are you referring to the LoRa LPWAN protocol developed by Semtech? Because there are no Nordic products supporting the LoRa protocol, as the nRF52840 only has a 2.4GHz radio, while the LoRa protocol runs at sub-GHz frequencies.

    What SDK version are you using, and what example project are you basing your project off of? I need some more information on what exactly you're trying to do in order to help you out.

    Best regards,

    Simon

  • Dear Simon, 

    I have connected LoRa LPWAN Transceiver which I communicate with through SPI and has its own protocol and modem. I am using SDK version 17 and built the project from example ble_app_hrs_freertos. I get this error when I want to communicate with the LoRa Transceiver through SPI or Gpio set/clear. This error occurs when I start the FreeRTOS scheduler, but works without the RTOS. 

    Regards,
    Hamza

Reply
  • Dear Simon, 

    I have connected LoRa LPWAN Transceiver which I communicate with through SPI and has its own protocol and modem. I am using SDK version 17 and built the project from example ble_app_hrs_freertos. I get this error when I want to communicate with the LoRa Transceiver through SPI or Gpio set/clear. This error occurs when I start the FreeRTOS scheduler, but works without the RTOS. 

    Regards,
    Hamza

Children
No Data
Related