Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to write HEX from MMC card to PIC18F4620 as self programming - MMC bootloader

Status
Not open for further replies.

homermike

Junior Member level 3
Joined
Jul 31, 2010
Messages
25
Helped
4
Reputation
10
Reaction score
4
Trophy points
1,283
Location
Cebu Philippines
Activity points
1,485
using mikroC compiler and with FLASH MEMORY and MMC Library been able to get data from a HEX file in a MMC card interfaced on the circuit and successfully written to PIC's FLASH Memory...

The problem now is that after a reset the PIC won't work anymore, thinking of wrong address write...

The code that gets data from MMC and write it to FLASH Memory seems to be acting like a BOOTLOADER and for sure located at address 0x00 of the FLASH Memory. And that code is in the MAIN() function of the program.

compared to many existing BOOTLOADER, it gets the HEX data from the serial port of the PIC from a computer.
now, what i am doing is that to create like a BOOTLOADER that get's HEX data from MMC card and write it to the PROGRAM MEMORY of the PIC, doing self programming since the MMC card is interfaced with same PIC.

anybody could help? help is so much appreciated..really need to get this function working... thanks...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top