2011-03-26, 16:46:45
(This post was last modified: 2012-12-23, 19:55:49 by Mikael Gustavsson.)
Hi all,
I've been looking at bootloaders for a few days, and landed on this ds30 loader which appears to be the most promising so far. Even though it appears perfect for my situation, I seem to need a bit of help on getting it to work.
Here's my scenario:
- Using CCS compiler for my applications
- Using CCSLoad with an ICD-U64 for programming
- Using Mplab for compiling this bootloader
- I do not have access to pull any pins high or low manually for using the bootloader, it should all be done in software. The ICSP is intended to only be used for programing the bootloader itself
- I have access to 2 serial ports, the main port (RC6-7) is through an FTDI
Here's where I'm at:
Despite the trivial configurations, I cannot get the bootloader to respond using the loader GUI.
When programing the configuration fuses (option in CCSLoad), I get errors:
Actual Expected
NOMCLR MCLR
PROTECT NOPROTECT
It programs fine when disabling the programing of the fuses, but either way, the bootloader doe not respond to the "Check for bl" despite trying different baudrates (matching in the bootloader and GUI).
As for hardware, as mentioned my serial port is through an FTDI, and I'm using the internal oscillator at 16MHz.
I've been using this hardware for a while, but never used any bootloaders.
All help would be very welcomed.
Thanks!
Using version from Jan 15th, PIC16F
I've been looking at bootloaders for a few days, and landed on this ds30 loader which appears to be the most promising so far. Even though it appears perfect for my situation, I seem to need a bit of help on getting it to work.
Here's my scenario:
- Using CCS compiler for my applications
- Using CCSLoad with an ICD-U64 for programming
- Using Mplab for compiling this bootloader
- I do not have access to pull any pins high or low manually for using the bootloader, it should all be done in software. The ICSP is intended to only be used for programing the bootloader itself
- I have access to 2 serial ports, the main port (RC6-7) is through an FTDI
Here's where I'm at:
Despite the trivial configurations, I cannot get the bootloader to respond using the loader GUI.
When programing the configuration fuses (option in CCSLoad), I get errors:
Actual Expected
NOMCLR MCLR
PROTECT NOPROTECT
It programs fine when disabling the programing of the fuses, but either way, the bootloader doe not respond to the "Check for bl" despite trying different baudrates (matching in the bootloader and GUI).
As for hardware, as mentioned my serial port is through an FTDI, and I'm using the internal oscillator at 16MHz.
I've been using this hardware for a while, but never used any bootloaders.
All help would be very welcomed.
Thanks!
Using version from Jan 15th, PIC16F
Code:
#define FOSC 16000000
#define BAUDRATE 9600
#define BLTIME 3000
#define HELLOTRIES 3