Closed nestor-alonso closed 1 week ago
hi @nestor-alonso,
I'm surprised that someone actually uses this project, but I'm glad :smile:
And trying to check the sublw
behavior I just found out that MPASM is not supported by Microchip anymore, thus I can't compile the project.
This was another surprise for me, I tried to use the XC compiler to build the project but I haven't managed yet.
I will let you know after I can actually run something in the simulator
Yes... sadly MPASM is not supported anymore. I'm using the last archived version: MPLab 8.92.
https://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_IDE_8_92.zip
I'm using it in Windows 10. I tried to move the code to XC but no luck either. We are still using 8.92 here for other things, so it work for us.
Thanks!
hi @nestor-alonso ,
I found the problem. Can you please check the code in this PR https://github.com/spanceac/PIC18-bootloader/pull/2?
Done! It is working :100:
Tested on the actual hardware device.
Thank you!
Hello @spanceac,
First and foremost, thank you for your amazing job with this bootloader. I've tested several while trying to get a project running and yours was the best documented and the clearer to follow among all I've found.
I'm working on a bootloader for an already built device, based on PIC18F46K22. This is a 64kB flash device. I found an issue with the function check_btld_overwrite. It is not working right with addresses above 7F00. The problem seems to be with the sublw instruction, that is limited to dec(127).
I replaced that block of code with the following, that works with addresses up to FFFF. Please excuse that I'm not sending a proper patch for this.
flash_add_hi must be defined at the beginning of the asm file
I've also updated the Python code to Python 3.
Once again, thank you for your work!