PIC32MZ2048 bootloader

Post Reply
Author
Message
elsing
Posts: 2
Joined: 28 Aug 2020 10:46

PIC32MZ2048 bootloader

#1 Post by elsing » 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

elsing
Posts: 2
Joined: 28 Aug 2020 10:46

Re: PIC32MZ2048 bootloader

#2 Post by elsing » 18 Oct 2021 08:26

Hello,

problem solved.

After a thorough inspection of HEX, I found a mistake. I redesigned the program for PC so that HEX looks like from Mplab - complete lines with 16 bytes arranged from the lowest to the highest.
Thanks to the authors of both examples for the reason for the problem.

Elsing

Post Reply

Return to “mikroBootloader”