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

Two Serial Instances with BLE Buttonless DFU Template

Hi I am managing to initialize a serial instance using uart0 within the BLE Buttonless DFU Template. However when I carry out a similar process for uart1 I get the following error:

<error> app: ERROR 3735928559 [Unknown error code] at ...\integration\nrfx\legacy\nrf_drv_uart.c:118

Parents
  • What version of the SDK do you use?

    If you want to use two UARTs, I suggest that you take a look at the SDK16.0.0\examples\peripheral\serial_uartes.

    Now, since I don't know what SDK version you are using, I can only guess what it says on line 118 in nrf_drv_uart.c, but my guess is:

    So do you use easy_dma? If not, try to do that. Again, I don't know how you have tried to initialize the uarts, but you can check in the serial_uartes example how to do it. 

    BR,

    Edvin

  • Hi Edvin I am using SDK16 and I did follow the serial_uartes example.

    I am using the polling mode since IRQ or DMA modes return the following compilation error: region 'UNPLACED_SECTIONS' overflowed by 40 bytes. and '.nrf_queue' will not fit in region 'UNPLACED_SECTIONS'.

    Attached please find a copy of my main.c

Reply
  • Hi Edvin I am using SDK16 and I did follow the serial_uartes example.

    I am using the polling mode since IRQ or DMA modes return the following compilation error: region 'UNPLACED_SECTIONS' overflowed by 40 bytes. and '.nrf_queue' will not fit in region 'UNPLACED_SECTIONS'.

    Attached please find a copy of my main.c

Children
  • Does the unmodified serial_uartes example work for you, then?

    I don't know what the unplaced sections error means. Does it give any more information? The main.c file alone will not be enough to reproduce though. I would need your project files, and sdk_config.h.

    What did you add to the project when the UNPLACED_SECTIONS compilation error occured?

    BR,

    Edvin

  • The unmodified example does work, but it alone is not enough to integrate with other projects. I was just adding the serial_uartes examples with DMA to the ble example when the error happened.

  • Ok. Is it still the same error? nrf_drv_uart.c line 188? Because that suggests that the UART isn't using DMA. How did you enable (or not) DMA? What does your sdk_config.h file look like?