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

BLE Buttonless DFU Template and Serial Library

Hey all,

I am working on the BLE Buttonless DFU Template and I have managed to add the Serial library in Polling mode.

However I am experiencing issues when reading from the UART. Polling mode does not use timeouts and so it is reading one character at a time from the UART line rather than a whole word at a time. The first option would be to fix this.

The second option is to use IRQ or DMA mode, however I am getting the following compilation error: region 'UNPLACED_SECTIONS' overflowed by 40 bytes. and '.nrf_queue' will not fit in region 'UNPLACED_SECTIONS'. Any ideas about this please?

Thanks

Parents
  • Hi Luke, 

    If you are not familiar with the nRF5 SDK, I would suggest to get started with other example before starting with BLE Buttonless DFU. 
    I don't think using UART in polling mode is a very good idea. It's better to ues IRQ or DMA. You can use our app_uart_fifo library. 

    Please refer to our ble_app_uart example, we do IRQ in the example. 

Reply
  • Hi Luke, 

    If you are not familiar with the nRF5 SDK, I would suggest to get started with other example before starting with BLE Buttonless DFU. 
    I don't think using UART in polling mode is a very good idea. It's better to ues IRQ or DMA. You can use our app_uart_fifo library. 

    Please refer to our ble_app_uart example, we do IRQ in the example. 

Children