18f4620 sd card firmware uploader

Status
Not open for further replies.

emrez

New Member
--beta --
c18 source code

Copy the bin firmware file (FIRMWARE.BIN) to a freshly formated FAT32 SDCard.
Insert the SDCard
Press RE2 buttons before power up and keep it pressed at least 1 seconds at power up.
-> Wait some seconds .... its done !
-- beta --
 

Attachments

  • sdboot.zip
    1.8 MB · Views: 180
NICE! will take a look, mind if i convert for other PICs or MCUs ? Skimmed over and seems too simple to be true but i havent tested it will test later on but cool!
 
Last edited:
code is a good idea to develop. 18f sd card series.

mimimize and good repair the software would be nice if.

next rev blink led ;

strap LED error messages:

No Error : blink 1 and Led power

Error 1 : (blink 1 time and 2 seconds pause cycle) No entry point (->no software flashed)
Error 2 : (blink 2 time and 2 seconds pause cycle) SDCard init() error.
Error 3 : (blink 3 time and 2 seconds pause cycle) FAT32 error.
Error 4 : (blink 4 time and 2 seconds pause cycle) BIN File not found!
Error 5 : (blink 5 time and 2 seconds pause cycle) Bad data crc! (file corrupt)
Error 6 : (blink 6 time and 2 seconds pause cycle) Bad data size!
Error 7 : (blink 7 time and 2 seconds pause cycle) Write error (Pic flash error)
 
loader bug fix.

RB5 pin gnd and 1 second wait and sdcard load ok.
add timer wait code and blink sample
add test file portb 1/0
test ok.
 

Attachments

  • mainb.zip
    17.6 KB · Views: 137
SD Card Bootloader for PIC18F series Microcontrollers beta

firmware bin file name control line;
if(dir_entry[0]!='F' || dir_entry[1]!='I' || dir_entry[8]!='B' || dir_entry[9]!='I'|| dir_entry[10]!='N')

next rev, code optimize and repair. add error code sample;
goto errorx;


errorx:
blink(4);
 
Last edited:
blink message support and min. fix
 

Attachments

  • error_message_support_ok.zip
    7.4 KB · Views: 132
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…