full functionality of this site and enable such things as forum posting.
Picadillo 35_t Bootloaders
We use Picadillo_35_t made by 4D Systems company
Now we have an idea to update our program (ProgramData) using bootloader and SD card (update by SD card: store image.hex on SD card and update via bootloader then).
Also we want to leave standard updating approach using default bootloader via usb/uart.
Therefore some questions:
Probably you have already built combined bootloader with supporting of both approaches (update by SD card and by default). And could you to provide it?
If the answer for the first questions are negative - could you please advise based on which open source project it can be quickly created (i found
https://github.com/chipKIT32/PIC32-avrdude-bootloader.git), but it will be very painful to add bootloader with SD card updating (spi driver for access SD card is needed) How do you thing if 'classic' microchip (pic32 is a 'child' of Microchip) bootloader can be used as a base and will it be okay for picadilo board. I have an idea to take original microchip SD card bootloader as a base and add UART bootloader support there. This is a plan B tbh, i hope you have bootloader i described above and could share with me
Thanks in advance!
Waiting for you answer ;)
I asked 4D System support team before and they had advised to contact you as a best persons for such issue
Sorry for the delay on this one.
What we would suggest is you make contact with Matt Jenkins, the creator of UECIDE which is what the Picadillo-35T was designed to be programmed with. He would be the best person to direct you to this sort of level of customisation, as he was heavily involved in the creation of the bootloader also.
Let me know how you go with contacting him, or posting on his forum.
If you don't have any luck, I can reach out to him also, but it would be best for you to make the first step.
Hey. Great to see you. Unfortunately I haven't got a bootloader that does SD updating, let alone a combined one. The existing bootloader is the one you link to on github. Adding SD support to that would, as you say, be a pain. The way it's written is overly complex if you ask me, so I'd be inclined to start from a known working SD card based bootloader (I haven't seen Microchip's offering on that front). Adding AN1388 support to that would probably be the easier route. AN1388 is fully supported by
pic32prog - you would just need to alter the board definition in UECIDE to use that protocol instead of stk500v2.
I do have an AN1388 based bootloader for MZ chips, which you're welcome to use as a reference for implementing the serial-based portion of it.
Thank you for the quick response
As far as I understand you propose to take SD update based bootloader (i just found one from microchip in an1388) and add serial suport there, correct?
Yeah, that's the way around I'd go. AN1388 is simple to implement, SD card support less so - so start from the most difficult aspect being already implemented, and add the simpler stuff yourself. AN1388 is a simple protocol, it just wraps the intel HEX text data and sends it.
The question here is if i'll combine two standard bootloaders from microchip an1388 (sd and serial) - do i stlil have opportunity to update programm as it's already done with standard Picadillo_35t bootloader
As long as you don't end up needing a different linker script (i.e., if you can still fit the bootloader into the boot flash and don't need a "split flash" arrangement) then there is no reason why not.
Thank you then for your support and quick answers