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

softdevice enable +usbd -> deadbeef error

Hi,

I'm working on a project using BLE via s140, everything was working fine until I wanted to implement usb.

I created a blank project in order to validate the usbd then once validated, I implemented it to my BLE project.

when the code enable the softdevice, I'm redirected to app_error_fault_handler. You can see below id's error and p_info who tell me that err_code equal to 0xdeadbeef

Sometime I get 0x165 for the line_num.

It's noted that I'm using freeRTOS for my program and here is the memory mapping:
I also oversized freeRTOS heap's size to rule out any related problem.
thanks for your support
Parents
  • Hi

    This seems to indicate that there is a priority issue with the USB implementation and some other part of your application? What priority level have you set the USB peripheral to? From the SoftDevice specification: The SoftDevice uss priority levels 0, 1, and 4 by default. So if the USB peripheral uses one of these priority levels as well, that would explain the conflict.

    Best regards,

    Simon

  • Hi,

    Thanks for your rely !

    I have checked and my softdevice task has a priority of 2. As for the USBD task, its priority is 0.

    But I'm not sure this is due to a priority issue. During my research, I deleted the creation of the usbd task but despite this, i had the same error 0xdeadbeef. I therefore concluded that there could be a conflict between the softdevice and the sources imported for the usbd

    Could that be possible ?

    Thanks for your support

Reply
  • Hi,

    Thanks for your rely !

    I have checked and my softdevice task has a priority of 2. As for the USBD task, its priority is 0.

    But I'm not sure this is due to a priority issue. During my research, I deleted the creation of the usbd task but despite this, i had the same error 0xdeadbeef. I therefore concluded that there could be a conflict between the softdevice and the sources imported for the usbd

    Could that be possible ?

    Thanks for your support

Children
No Data
Related