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

Viewing log in Python (pc-nrfutil)

I am using pc-nrfutil to perform FW upgrade (transport is serial), The target is custom board with 52840 processor, running Bootloader adapted from the SDK.

For most of the boards, it works fine. On certain board, I consistently got "Did not receive checksum response from DFU target.

I can see the message from "logger.info()" in my command prompt terminal in PC.

Sorry for the dumb question, but how do I see the message from "logger.log()"?

Any idea how to see logger.log() message? I would like to see SLIP raw messages to debug.

Parents
  • Hi Edvin,

    I found where the log is initialized, and I set the level, I saw the SLIP packet now.

    Regarding debugging Bootloader, yes, I have been trying to do it, but no luck. I will try to run the Bootloader from address 0x0000 and see if I can step through it.

  • I believe I just realized what you wanted, which was the verbose flag:

    "nrfutil -v -v -v -v (up to 4) dfu serial ..."

    I don't remember how many "-v"s you need in order to see the packets, but 4 of them will give the maximum information.

    Harry said:
    I will try to run the Bootloader from address 0x0000 and see if I can step through it.

     Address 0x0000 will be the softdevice, or MBR if you do not use the softdevice. If you use the debug project, the bootloader is moved a proper portion down, so that you can turn off optimization and enable logging. This will allow you to step through the code, and actually monitor the different values.

    BR,

    Edvin

Reply
  • I believe I just realized what you wanted, which was the verbose flag:

    "nrfutil -v -v -v -v (up to 4) dfu serial ..."

    I don't remember how many "-v"s you need in order to see the packets, but 4 of them will give the maximum information.

    Harry said:
    I will try to run the Bootloader from address 0x0000 and see if I can step through it.

     Address 0x0000 will be the softdevice, or MBR if you do not use the softdevice. If you use the debug project, the bootloader is moved a proper portion down, so that you can turn off optimization and enable logging. This will allow you to step through the code, and actually monitor the different values.

    BR,

    Edvin

Children
Related