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

Where is the super simple boot loader and file up loader?

I know I am going to regret posting this question, but I need to ask it.

I have an application that will be put into the nrf52840 chip. It will not be upgraded over the air. It will be upgraded through spi. It does not have a soft device and probably won't have one. It is behind another processor so it will not need any security to speak of, if someone has compromised this part of the system  there is little chance that protecting this piece will matter.

What i need is simply a boot loader that detects when NRF_POWER->GPREGRET equals a flag, which means the main application has set the flag and initiated a soft reset.

I need to check if the hosting processor really wants to talk .

Copy in a compressed .hex file with the new application , a binary version of the .hex file for the new target.

Validate that binary. (something a better then CRC16,)

Move that application to the target area , using the decoding of the addresses from the .hex file

Set a flag saying we are good, reset and jump to the new program.

Thats all I need. I don't need to sign the code or anything that excessive.

Where are the switches in all these libraries to just take in the code and move it into place...reboot

Tony

Parents Reply
  • I am pretty sure in the project I have I needed to add nrf_dfu_serial_uart.c , since it wasn't there. I alsoneeded to add the uart drivers along with adjusting the sdk_config.h to configure them.

    I got it operational, I was able to upload package through the DK virtual serial port. So that is good.

    I am currently using the project in  nRF5_SDK_16.0.0_98a08e2 . Perhaps the newer projects have this fleshed out more.

    In any case, I believe I have part of my solution now, and I can move foreword. Again, thanks for dragging me back to the open_bootloader project by the nose.

Children
No Data
Related