case about nRF52820 uart dfu

Hi,

1.Please help me complete example pca10100e_uart

2.I am testing the nRF52820 UART DFU example

3.The example is named pca10100e_uart based on example pca10040_uart

4.The following problems occurred in the test:

5.I suspect my memory address is set incorrectly:

6.Please give me the correct nRF52820 memory address, As shown in the figure below

https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html

sdk nRF5_SDK_17.1.0_ddde560

code:4682.nRF52820 uart dfu bootloader.zip

Thank you for all your assistance.
Kind regards,
Peter.Min

  • I don't have an nRF52820 to test on (I am on home office during the summer), and it is 3 months since this case went silent, so I didn't bring any nRF52820 devices. I tried to just plug an nRF52840 DK programmed with a standard bootloader, and it gave the response that it was an invalid object, which it is. Does the "'nonetype' to object" error come regardless whether it is connected to the nRF52820 device or not? Should I be able to replicate that error without a device connected?

    The scripts that are used are a bit too complicated. If you provide something that I can use to replicate this with an 820 device when I return to the office in August, I can test it. Ideally just one script with hardcoded paths and names.

    If this is more urgent, and can't wait until August, please create a new ticket, and it will be assigned to someone who is working this summer. The subject of this ticket has deviated enought from the original title/question, so it might be time to start a new case either way.

    Best regards,

    Edvin

  • Hi Edvin,

    1. Nonetype 'to object' must be connected to nRF52820 or nRF52833 device.

    2.You can test the nRF52820 example on nRF52833.

    3.It can wait until after the holidays.

    4.I can verify any code for you.

    5. This case is to obtain a SAMPLE of nRF52820 UART DFU. If you think it is not appropriate to continue, I can open another case.

    Kind regards,
    Peter.Min

  • Hello Perer.Min. I will be working today and tomorrow, before returning in august. If this is more urgent, please open a new case with where you summarize your new question, since this is no longer about the issue in the title.

    Edvin said:
    The scripts that are used are a bit too complicated. If you provide something that I can use to replicate this with an 820 device when I return to the office in August, I can test it. Ideally just one script with hardcoded paths and names.

    Since you can replicate it on an nRF52833, I will try to provide you a script that I used to test on the nRF52833 without any issues. Can you please provide a simiar script? Preferably for the nRF52833, since we don't have any proper nRF52820 DKs that I can test on.

    1:
    generate a key pair in the folder SDK17.1.0\examples\dfu with the private key named private.key and the public key named dfu_public_key.c (or rename the ones that you already have).

    2: Unzip the following folder so that you get the path SDK17.1.0\examples\dfu\secure\bootloader\pca10100_uart(custom)\armgcc\

    pca10100_uart(custom).zip

    3: Unzip the following folder so that you have the path: SDK17.1.0\examples\peripheral\blinky\pca10100(custom)\mbr\armgcc\

    pca10100(custom).zip

    Then run the .bat script called test.bat in SDK17.1.0\examples\dfu\secure_bootloader\pca10100_uart(custom)\armgcc\test.bat

    You can see the last line in test.bat that is commented out:

    ::nrfutil dfu serial -pkg files\dfu_img.zip -p COM11 -b 115200

    run it when the script is done (without the semi columns) and remember to change to whatever com port you are using.

    If that succeeds without errors, please provide a similar sample that fails (on the same format).

    Best regards,

    Edvin

  • Hi Edvin,

    1.I test you this script does not work

    2. Note: My own UART DFU scripts are all validated and usable on nRF52840 nRF52833 nRF52832 nRF52810. If you need verification, I can send all the scripts to you for verification.

    3. It is important that you find an nRF52820 device to verify the UART DFU example.

    Thank you for all your assistance.
    Kind regards,
    Peter.Min

  • I don't know how much point there is as long as we are using different hardware.

    Can you please try the debug version of the bootloader project, to see whether the nRF receives any of the UART packets. What does the RTT log say?

    (since you probably don't have a *_debug version of your bootloader project, try to increase the flash size, and add RTT logging to your project. What does the log say?

    BR,
    Edvin

Related