Unable to program the flash using the onchip debugger on nrf5340 DK

I had the nrf5340 DK working for a few weeks now, and while working with SSD1309 OLED peripheral, was trying out a simple display application. Couldn't get the display device initialized, but started  Getting the following error:

Error: One or more batch tasks failed:
* 1050029771: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)).

This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic)

FATAL ERROR: command exited with status 1: nrfutil --json device --x-ext-mem-config-file /home/xxxxx/ncs/v3.0.2/zephyr/boards/nordic/nrf5340dk/support/nrf5340dk_qspi_nrfutil_config.json x-execute-batch --batch-path /home/xxxxx/blinky_1/build/generated_nrfutil_batch.json --serial-number 1050029771

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Can you provide pointers, so I can talk to the nrf5340 DK board again?

Thanks!

Parents
  • Hi,

    I had the nrf5340 DK working for a few weeks now, and while working with SSD1309 OLED peripheral, was trying out a simple display application. Couldn't get the display device initialized, but started  Getting the following error

    Do you know which action on your side caused the error? How did you try out a "simple display application"?

    but started  Getting the following error:

    Error: One or more batch tasks failed:
    * 1050029771: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)).

    This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic)

    FATAL ERROR: command exited with status 1: nrfutil --json device --x-ext-mem-config-file /home/xxxxx/ncs/v3.0.2/zephyr/boards/nordic/nrf5340dk/support/nrf5340dk_qspi_nrfutil_config.json x-execute-batch --batch-path /home/xxxxx/blinky_1/build/generated_nrfutil_batch.json --serial-number 1050029771

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

    Which command generated this output? 

    Best regards,
    Dejan

  • Thanks for the response Dejan!

    Trying to get a Hello World app working using SSD1309 SPI OLED. 
    Are there specific changes required to make a SSD1309_128x64 OLED work with the SSD1306 driver and glue code., to get the lvgl application running on the nrf5340DK?

    With the SSD1309 pins connected to PI.GPIO, the OLED display, powers up but is showing garbage. (attached pic)
    What is a recommended route to debug this further? 

Reply
  • Thanks for the response Dejan!

    Trying to get a Hello World app working using SSD1309 SPI OLED. 
    Are there specific changes required to make a SSD1309_128x64 OLED work with the SSD1306 driver and glue code., to get the lvgl application running on the nrf5340DK?

    With the SSD1309 pins connected to PI.GPIO, the OLED display, powers up but is showing garbage. (attached pic)
    What is a recommended route to debug this further? 

Children
No Data
Related