2011-09-01, 08:07:44
(This post was last modified: 2012-12-23, 20:02:21 by Mikael Gustavsson.)
Hi,
I am trying to send out ASCII via UART for my PIC18F4523. However it does not seem to work. Everything was done using the latest version (20 august 2011)
Is it possible to use the pic UART for comms, with the same UART port of the bootloader on the chip? If it cannot be done just ignore the below:
Steps I have taken so far:
1. edited the settings.inc and flashed my pic with ds30 project using the microchip ICD3 programmer.
2. added the goto instruction in my main code.
3. loaded the hex file into the ds30loader GUI. I can find the bootloader when i click on the 'Check BL'
"
Searching for bl .
Found PIC18F4523 fw ver. 3.0.0
"
4. manually reset the pic by power cycling the chip and flashed the new hex file within 2 seconds of reset (This is what i read on your recommendation in other threads for manual reset)
Without the bootloader I can get the PIC to echo whatever i send over the console.
I have attached the files I have used.
1. Firmware Ver 0.1.hex is the hex file I uploaded with ds30loaderGUI.exe
2. ds30loader.HEX is the file I flashed for the inital bootloader
3. main.c is the source for Firmware Ver 0.1
4. settings.inc is the ds30 bootloader settings file
5. serial.c is the source file containing the register init for the Firmware Ver 0.1
I hope you can help me with this.
Thanks!
I am trying to send out ASCII via UART for my PIC18F4523. However it does not seem to work. Everything was done using the latest version (20 august 2011)
Is it possible to use the pic UART for comms, with the same UART port of the bootloader on the chip? If it cannot be done just ignore the below:
Steps I have taken so far:
1. edited the settings.inc and flashed my pic with ds30 project using the microchip ICD3 programmer.
2. added the goto instruction in my main code.
3. loaded the hex file into the ds30loader GUI. I can find the bootloader when i click on the 'Check BL'
"
Searching for bl .
Found PIC18F4523 fw ver. 3.0.0
"
4. manually reset the pic by power cycling the chip and flashed the new hex file within 2 seconds of reset (This is what i read on your recommendation in other threads for manual reset)
Without the bootloader I can get the PIC to echo whatever i send over the console.
I have attached the files I have used.
1. Firmware Ver 0.1.hex is the hex file I uploaded with ds30loaderGUI.exe
2. ds30loader.HEX is the file I flashed for the inital bootloader
3. main.c is the source for Firmware Ver 0.1
4. settings.inc is the ds30 bootloader settings file
5. serial.c is the source file containing the register init for the Firmware Ver 0.1
I hope you can help me with this.
Thanks!