From Thingy53 to custom board

Hi community,

I`m trying to develop a custom board with nRF5340, now comes the question how to flash it?

The application was developed with the Thingy53. On Thingy53 the bootloader mode is activated by cycling the power during press the button SW2(P1.14).

we also want to use another pin for activating the bootloader mode, therefore we also need to customize the bootloader.

so my questions are: 

1. how to customize/develop the bootloader?

2. Is it possible to use another pin for activating the bootloader mode?

3. how to flash the custom bootloader?

Thanks in advance

Danny

Parents
  • Hi AHaug,

    thanks for replying me.

    I go throgh the lessons again, It´s more about DFU. not about how to flash the Bootloader in a empty nRF5340.

    My understanding is like this, please correct me, if I´m wrong.

    The MCUboot(Bootloader) will be  automatically compiled if CONFIG_BOOTLOADER_MCUBOOT=y is set in the project conf file. 

    the Bootload can be found under project_name\build\mcuboot\zephyr\zephyr.hex

    I tried to use the Programmer from nRF Connect for Desktop to flash this hex file inito thingy53, but failed as followed:

    11:33:15.271
    Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    11:33:15.271
    MCUboot DFU failed with error: Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    11:33:15.271
    Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    In the Exercise 2 of Lesson 8, 
    Until here not explained what is built and flashed? If only the Application, then it´s also not what i`m looking for. 
    Again, I want to know how to flash the Bootloader in an empty nRF5340.
Reply
  • Hi AHaug,

    thanks for replying me.

    I go throgh the lessons again, It´s more about DFU. not about how to flash the Bootloader in a empty nRF5340.

    My understanding is like this, please correct me, if I´m wrong.

    The MCUboot(Bootloader) will be  automatically compiled if CONFIG_BOOTLOADER_MCUBOOT=y is set in the project conf file. 

    the Bootload can be found under project_name\build\mcuboot\zephyr\zephyr.hex

    I tried to use the Programmer from nRF Connect for Desktop to flash this hex file inito thingy53, but failed as followed:

    11:33:15.271
    Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    11:33:15.271
    MCUboot DFU failed with error: Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    11:33:15.271
    Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.
    In the Exercise 2 of Lesson 8, 
    Until here not explained what is built and flashed? If only the Application, then it´s also not what i`m looking for. 
    Again, I want to know how to flash the Bootloader in an empty nRF5340.
Children
Related