• AVR Freaks

SDCARD (SPI) BOOTLOAD EZBL PIC24F

Author
JeanMarc
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2016/01/02 04:46:15
  • Location: 0
  • Status: offline
2019/07/03 09:18:34 (permalink)
0

SDCARD (SPI) BOOTLOAD EZBL PIC24F

Hi Everybody
I need to use a bootloader for my design with a PIC24F and a SDCARD (using SPI protocole).
When a firmware file is detected inside the sdcard I want to reset the CPU and to download it inside the PIC24F memory.
I thought it was easy to do with EZBL but only UART / I2C and USB MMC/SD are supported and the ezbl_lib.a seems not accessible for modifications.
Could you help me how to do with EZBL or with an other solution ?
Thanks a lot
Regards
Jean-Marc
 
 
 
#1

3 Replies Related Threads

    Stampede
    Super Member
    • Total Posts : 398
    • Reward points : 0
    • Joined: 2006/10/04 05:59:28
    • Location: Germany
    • Status: offline
    Re: SDCARD (SPI) BOOTLOAD EZBL PIC24F 2019/07/03 13:11:10 (permalink)
    0
    ezbl_lib.a sources are provided as part of the EZBL download. You can compile them.
    https://www.microchip.com/SWLibraryWeb/product.aspx?product=Microchip%20Easy%20Bootloader
     
     
    #2
    JeanMarc
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2016/01/02 04:46:15
    • Location: 0
    • Status: offline
    Re: SDCARD (SPI) BOOTLOAD EZBL PIC24F 2019/07/03 13:37:34 (permalink)
    0
    Yes you are right. Many thanks
    But how to use the EZBL to read the SDCARD and program the internal Flash memory ?
    #3
    Stampede
    Super Member
    • Total Posts : 398
    • Reward points : 0
    • Joined: 2006/10/04 05:59:28
    • Location: Germany
    • Status: offline
    Re: SDCARD (SPI) BOOTLOAD EZBL PIC24F 2019/07/08 00:53:17 (permalink)
    0
    The EZBL is doing the read / write stuff. Take the MSD as an example and understand, how the data is read from the USB device and then put into the EZBL FIFO system for further processing. You "simply" need to replace the MSD routines with the correponding ones for a SD card.
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5