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

PCA10059 Different version ?

Hi,

I have make an application for PCA10059, that uploaded with nRF Connect (using embedded USB DFU).

All work normaly on multiple PCA10059 board manufactured on 2018...

Now, I have buy some PCA10059 manufactured on 2019 and after DFU upload, my application don't start on last buyed dongle !

I use SoftDevice S140 v6.1

I join the application HEX file (Start on USB CDC mode) name: RavenGateway

DongleGateway.hex.zip

Is exist different version (software or hardware) of PCA10059 ? All PCA10059 are marked V1.0.0

  • Hi,

    There are several versions of the PCA10059 board, but all marked V1.0.0 should be identical. Also, the newer revisions only have minor modifications, so the same firmware should run on all. So I suspect it is something related to the specific dongle you have. Is the programming operation successful? So that it is just your application that does not run, or is there also problems with programming (which uses the preprogrammed USB bootloader)?

  • Hi,

    I've done the test on about 10 dongle V1.0.0 2019.12, they all react the same:
    The programming is rigorously the same on both versions of dongle (2018 vs 2019).
    However, after the update, dongle 2018 starts on the application while dongle 2019 does nothing (no USB enumeration, and no LED).
    I join the log file of the 2 updates...

    2019-12-19T12:57:42.751Z INFO Application data folder: C:\Users\Gaétan\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2019-12-19T12:57:42.974Z DEBUG App pc-nrfconnect-programmer v1.3.1 official
    2019-12-19T12:57:42.974Z DEBUG App path: C:\Users\Gaétan\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2019-12-19T12:57:42.974Z DEBUG nRFConnect 3.3.0 is supported by the app (^3.3.0)
    2019-12-19T12:57:42.974Z DEBUG nRFConnect path: C:\Users\Gaétan\AppData\Local\Programs\nrfconnect\resources\app.asar
    2019-12-19T12:57:42.974Z DEBUG HomeDir: C:\Users\Gaétan
    2019-12-19T12:57:42.974Z DEBUG TmpDir: C:\Users\GATAN~1\AppData\Local\Temp
    2019-12-19T12:57:43.003Z INFO Using nrfjprog library 10.5.0, pc-nrfjprog-js 1.6.0
    2019-12-19T12:57:43.005Z VERBOSE Could not fetch serial number for serial port at COM1
    2019-12-19T12:57:45.484Z INFO Using USB SDFU protocol to communicate with target
    2019-12-19T12:57:45.497Z INFO Protocol Version:  1 found
    2019-12-19T12:57:45.499Z INFO Hardware: 52840 found
    2019-12-19T12:57:45.506Z INFO Firmware: Bootloader found
    2019-12-19T12:57:45.506Z INFO Firmware: SoftDevice found
    2019-12-19T12:57:45.506Z INFO Firmware: Application found
    2019-12-19T12:57:49.265Z INFO Parsing HEX file:  C:\Projets\PMF\DongleGateway\Output\Release\Exe\DongleGateway.hex
    2019-12-19T12:57:49.285Z INFO File was last modified at  21/01/2019 à 11:47:27
    2019-12-19T12:57:49.320Z INFO Data block: 0x00026000-0x000328A4 (0x0000C8A4  bytes long)
    2019-12-19T12:57:53.604Z INFO Parsing HEX file:  C:\Projets\PMF\DongleGateway\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex
    2019-12-19T12:57:53.605Z INFO File was last modified at  27/07/2018 à 14:27:29
    2019-12-19T12:57:53.703Z INFO Data block: 0x00000000-0x00000A18 (0x00000A18  bytes long)
    2019-12-19T12:57:53.703Z INFO Data block: 0x00001000-0x00025E7C (0x00024E7C  bytes long)
    2019-12-19T12:57:53.705Z INFO SoftDevice detected, id 0xAE (S140 v6.1.0)
    2019-12-19T12:57:56.194Z INFO Does not need to be reloaded:  C:\Projets\PMF\DongleGateway\Output\Release\Exe\DongleGateway.hex
    2019-12-19T12:57:56.195Z INFO Does not need to be reloaded:  C:\Projets\PMF\DongleGateway\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex
    2019-12-19T12:57:56.199Z INFO SdReq for SoftDevice is set as 0x00.
    2019-12-19T12:57:56.201Z INFO Hash is generated by SHA256
    2019-12-19T12:57:56.201Z INFO Hash is generated by SHA256
    2019-12-19T12:57:56.205Z INFO Performing DFU. This may take a few seconds
    2019-12-19T12:57:56.222Z INFO DFU procedure starts. This may take a few seconds.
    2019-12-19T12:58:04.594Z INFO DFU for SoftDevice completed successfully!
    2019-12-19T12:58:04.594Z INFO 1 dfu package(s) left.
    2019-12-19T12:58:04.594Z INFO Waiting for device
    2019-12-19T12:58:04.744Z INFO DFU procedure starts. This may take a few seconds.
    2019-12-19T12:58:09.087Z INFO DFU for Application completed successfully!
    2019-12-19T12:58:09.088Z INFO 0 dfu package(s) left.
    2019-12-19T12:58:09.088Z INFO Waiting for device
    2019-12-19T12:58:14.091Z ERROR Reopen device failed: Timeout while waiting for device  E80388424412 to be attached and enumerated
    2019-12-19T12:58:14.091Z INFO Nordic DFU Trigger Interface was not found.Please physically reset device.
    2019-12-19T12:58:14.093Z ERROR Device not found due to failure during DFU
    
    2019-12-19T12:59:05.938Z INFO Application data folder: C:\Users\Gaétan\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2019-12-19T12:59:06.153Z DEBUG App pc-nrfconnect-programmer v1.3.1 official
    2019-12-19T12:59:06.153Z DEBUG App path: C:\Users\Gaétan\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2019-12-19T12:59:06.153Z DEBUG nRFConnect 3.3.0 is supported by the app (^3.3.0)
    2019-12-19T12:59:06.153Z DEBUG nRFConnect path: C:\Users\Gaétan\AppData\Local\Programs\nrfconnect\resources\app.asar
    2019-12-19T12:59:06.154Z DEBUG HomeDir: C:\Users\Gaétan
    2019-12-19T12:59:06.154Z DEBUG TmpDir: C:\Users\GATAN~1\AppData\Local\Temp
    2019-12-19T12:59:06.186Z INFO Using nrfjprog library 10.5.0, pc-nrfjprog-js 1.6.0
    2019-12-19T12:59:06.187Z VERBOSE Could not fetch serial number for serial port at COM1
    2019-12-19T12:59:07.946Z INFO Using USB SDFU protocol to communicate with target
    2019-12-19T12:59:07.961Z INFO Protocol Version:  1 found
    2019-12-19T12:59:07.964Z INFO Hardware: 52840 found
    2019-12-19T12:59:07.971Z INFO Firmware: Bootloader found
    2019-12-19T12:59:07.971Z INFO Firmware: SoftDevice found
    2019-12-19T12:59:07.971Z INFO Firmware: Application found
    2019-12-19T12:59:13.521Z INFO Parsing HEX file:  C:\Projets\PMF\DongleGateway\Output\Release\Exe\DongleGateway.hex
    2019-12-19T12:59:13.543Z INFO File was last modified at  21/01/2019 à 11:47:27
    2019-12-19T12:59:13.574Z INFO Data block: 0x00026000-0x000328A4 (0x0000C8A4  bytes long)
    2019-12-19T12:59:20.024Z INFO Parsing HEX file:  C:\Projets\PMF\DongleGateway\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex
    2019-12-19T12:59:20.024Z INFO File was last modified at  27/07/2018 à 14:27:29
    2019-12-19T12:59:20.143Z INFO Data block: 0x00000000-0x00000A18 (0x00000A18  bytes long)
    2019-12-19T12:59:20.143Z INFO Data block: 0x00001000-0x00025E7C (0x00024E7C  bytes long)
    2019-12-19T12:59:20.145Z INFO SoftDevice detected, id 0xAE (S140 v6.1.0)
    2019-12-19T12:59:22.262Z INFO Does not need to be reloaded:  C:\Projets\PMF\DongleGateway\Output\Release\Exe\DongleGateway.hex
    2019-12-19T12:59:22.263Z INFO Does not need to be reloaded:  C:\Projets\PMF\DongleGateway\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex
    2019-12-19T12:59:22.268Z INFO SdReq for SoftDevice is set as 0x00.
    2019-12-19T12:59:22.270Z INFO Hash is generated by SHA256
    2019-12-19T12:59:22.270Z INFO Hash is generated by SHA256
    2019-12-19T12:59:22.273Z INFO Performing DFU. This may take a few seconds
    2019-12-19T12:59:22.291Z INFO DFU procedure starts. This may take a few seconds.
    2019-12-19T12:59:30.679Z INFO DFU for SoftDevice completed successfully!
    2019-12-19T12:59:30.679Z INFO 1 dfu package(s) left.
    2019-12-19T12:59:30.679Z INFO Waiting for device
    2019-12-19T12:59:30.698Z INFO DFU procedure starts. This may take a few seconds.
    2019-12-19T12:59:35.103Z INFO DFU for Application completed successfully!
    2019-12-19T12:59:35.103Z INFO 0 dfu package(s) left.
    2019-12-19T12:59:35.103Z INFO Waiting for device
    2019-12-19T12:59:40.105Z ERROR Reopen device failed: Timeout while waiting for device  E80388424412 to be attached and enumerated
    2019-12-19T12:59:40.105Z INFO Nordic DFU Trigger Interface was not found.Please physically reset device.
    2019-12-19T12:59:40.107Z ERROR Device not found due to failure during DFU
    2019-12-19T12:59:40.122Z INFO Target device closed.
    

  • Hi,

    I am not able to provide any explanation for this. Does this happen even if you try to program a simple application like "blinky"?

    Please note that response times will increase during the Christmas holiday, so I may not be able to get back to you until the beginning of January.

  • Blinky app is OK

    For try to debug, I have uploaded open_bootlader_usb_mbr_pca10059 (from SDK 15.3 and SDK16)  in a pca10056 dev board.

    After...

    I make the firmware update with nRF connect and all is OK.

    What is the bootloader version in PCA10059 from factory ?
    Is it possible to read the version ?
    or Is it possible to update the bootloader with nRF Connect ?

    Regards,

  • Found it!

    In the application, UART is initialized but not used... It's OK in 2018 production but generate an UART error on 2019 production !

    WorkAround: comment APP_ERROR_HANDLER() function

     /**@snippet [Handling data from UART] */
          case APP_UART_COMMUNICATION_ERROR:
              NRF_LOG_ERROR("Communication error occurred while handling UART.");
              //APP_ERROR_HANDLER(p_event->data.error_communication);
              break;
    
          case APP_UART_FIFO_ERROR:
              NRF_LOG_ERROR("Error occurred in FIFO module used by UART.");
              //APP_ERROR_HANDLER(p_event->data.error_code);
              break;

Related