-
Notifications
You must be signed in to change notification settings - Fork 0
How to upload the HPUV Bootloader to any board
HUPV-Bootloader is a custom bootloader developed during H8 to allow board programming via FDCAN. This bootloader can be placed in any memory area.
Programming the bootloader is really easy. Just download the binary (*.bin) available in the latest release of HUPV-Bootloader. Once downloaded, open the STM32-Programmer and go to the Erasing & Programming window.

We then search for the binary and select it.

In the box marked in the following image you must indicate the memory address where you want to upload the bootloader, in case of H8 it must be done at 0x080E0000.

Check the boxes as in the following image and click on Start Programming.

Now we must change the option bytes so that the board will find the bootloader when it enters bootmode. To do this, go to the Option Bytes window.

Desplegaremos la pestaña de Boot address Option Bytes

Now we must change the address of the box marked in the following image to 0x80E. This way we are indicating that when the board enters bootmode it will look for the bootloader code at address 0x080E0000.

After each change to the Option Bytes it is necessary to click Apply for these changes to take effect.

Once these steps are done, the board is ready to be programmed!
| ❗ The following steps must be reversed once the tests has been finalised❗ |
With the above steps you have to go into bootmode to use the bootloader, this can be very inconvenient when you are constantly testing. To solve this we can change the box indicated in the following image to address 0x80E, this way the board will always be in bootmode. This way after every reboot you can enter the bootloader without having to do anything. It is very important after finishing testing to return this box to its original value (0x800).

