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...
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...