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

BLE softdevice clock running slower

Hi,

I'm working on a custom board with the nrf52840 engineering version n52840QIAABB with de SDK15. I've tried the exemple usbd_ble_uart from the SDK15 and it works well. I was able to find my device with Nrf connect and as a Port COM. When i have implemented the ble to my own firmware,  the devices was recognize by the computer but the bluetooth didn't work. On debug,everyting is initialized ans the soft is running. The LED on my board was blinking slower than it should be. It seems that the clock is running slower. It also appears that i cannot run the exemple anymore. The issue appends since i added the softdevice to my firmware.   

Parents
  • As pointed out by the nordic person, you can't break the chip with bad code.

    Generally with the SD most people fail to realize that they can't service ISR's immediately and that anything they do is done after the SD is finished with the processor. 

    So millisecond interrupts are a bad idea as is more than 100 or so intterrupts a second. Your code should make maximum use of the hardware at your disposal (eg, DMA) and not a lot of software to handle data.

Reply
  • As pointed out by the nordic person, you can't break the chip with bad code.

    Generally with the SD most people fail to realize that they can't service ISR's immediately and that anything they do is done after the SD is finished with the processor. 

    So millisecond interrupts are a bad idea as is more than 100 or so intterrupts a second. Your code should make maximum use of the hardware at your disposal (eg, DMA) and not a lot of software to handle data.

Children
Related