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
  • There is a version of the Nordic bootloader that does not require encryption.  It's in the SDK. You can use either USB or UART version and replace it with your SPI backend.  Look in the SDK examples/dfu/open_bootloader folder. 

  • Yeah i knew i was going to regret posting this.

    I looked at this project already, but dismissed it because the project was laden with all the nrf_Crypto folders. I built it and it showed 942KB of (91%) flash usage, which confused me.

    Why does this project need any crypto libraries at all? Tracing through the build i see that it is still using crypto init. Seems to be using it for the hash function, is that all it is doing?

    I'll take another look. I need to put this stuff on here to calm down or something.

    Thanks for the re-direct.

    Now I need to sift through this site and see if I can find where the host code to go along with this , might be.

    Was that a blog post?

Reply
  • Yeah i knew i was going to regret posting this.

    I looked at this project already, but dismissed it because the project was laden with all the nrf_Crypto folders. I built it and it showed 942KB of (91%) flash usage, which confused me.

    Why does this project need any crypto libraries at all? Tracing through the build i see that it is still using crypto init. Seems to be using it for the hash function, is that all it is doing?

    I'll take another look. I need to put this stuff on here to calm down or something.

    Thanks for the re-direct.

    Now I need to sift through this site and see if I can find where the host code to go along with this , might be.

    Was that a blog post?

Children
Related