PIC32MZ2048 bootloader
Posted: 13 Oct 2021 09:17
Hello,
I am working on the pic32MZ bootloader using an SD card.
I used the solution from the example USB for MZ and SD for MX.
After loading HEX with my bootloader, I checked
program memory and boot and are identical to the source application.
the bootloader has the same settings as in your HID MZ example.
The application is a simple ledblink without any org, ebase 0x9F004000. / 0x9F005000 or 0x9F001000 with filtering when loading HEX /
If I put in the StartProgram jump to the main address the application will start correctly. If I put the address 0x9D000000 in the StartProgram, nothing will happen.
The bootloader works continuously without damege after a reset.
I need to boot the application with interrupts and of course it doesn't work
nor a direct jump on his main.
I'm still fighting HEX, which has a lot of disordered segments and pages. The addresses do not go sequentially, it jumps from BootF to ProgF and back. Can't turn on sorting somewhere? I made a PC application that sorts HEX and removes page breaks on a single line. It's more readable.
I need advice please.
Elsing
I am working on the pic32MZ bootloader using an SD card.
I used the solution from the example USB for MZ and SD for MX.
After loading HEX with my bootloader, I checked
program memory and boot and are identical to the source application.
the bootloader has the same settings as in your HID MZ example.
The application is a simple ledblink without any org, ebase 0x9F004000. / 0x9F005000 or 0x9F001000 with filtering when loading HEX /
If I put in the StartProgram jump to the main address the application will start correctly. If I put the address 0x9D000000 in the StartProgram, nothing will happen.
The bootloader works continuously without damege after a reset.
I need to boot the application with interrupts and of course it doesn't work
nor a direct jump on his main.
I'm still fighting HEX, which has a lot of disordered segments and pages. The addresses do not go sequentially, it jumps from BootF to ProgF and back. Can't turn on sorting somewhere? I made a PC application that sorts HEX and removes page breaks on a single line. It's more readable.
I need advice please.
Elsing