xuxa
Joined: 07 Jul 2009 Posts: 4
|
Bootloader MCHPUSB error |
Posted: Mon Aug 10, 2009 2:33 pm |
|
|
Hi!
I did this project http://eegeek.net/content/view/13/32/ using a 12 Mhz crystal, so I compiled this bootloader code (C18) from microchip (usually located here):
Quote: | Microchip Solutions\USB Device - Bootloaders\Vendor Class - MCHPUSB Bootloader\Bootloader - Firmware for PIC18F4550 Family Devices |
and changed this line:
Code: | #pragma config PLLDIV = 3 // (12 MHz input) |
and it is working OK, the PC recognizes the board, the PICDEM recognize the board in boot mode, but when I try to update a firmware (written in CCS) over bootload using the MCHPUSB usually located here:
Quote: | Microchip Solutions\USB Tools\Pdfsusb |
I have this message:
USB Read Failed.
Failed with error 6: Identificador inválido
The firmware works fine when I program the chip, but not over bootload, the configuration bits are identical both in firmware and bootloader.
Anyway I have this message:
Quote: | Configuration data contained in this hex file is diferent from the board's default setting.
Using a different setting could cause the bootload interface to stop functioning |
So I usually click in Cancel
I've tried to do several things without sucess:
1-add these lines to the project:
Code: | #build(reset=0x800, interrupt=0x808)#org 0x000, 0x7ff { } |
from this topic:https://www.ccsinfo.com/forum/viewtopic.php?t=25781
2-include this to the project:
Code: |
#include <usb_bootloader.h> |
3-add this lines:
Code: | // START OF bootloader definition
#define LOADER_END 0x7FF
#define LOADER_SIZE 0x6FF
#build(reset=LOADER_END+1, interrupt=LOADER_END+9)
#org 0, LOADER_END {} // nothing will replace the bootloader memory space
// END OF bootloader definition |
from this topic:http://www.ccsinfo.com/forum/viewtopic.php?p=96002
But I only had the same error message.
I don't have experience in C18, but the Vista driver for the CCS bootloader example, is not working, that is why I used the C18 one
I am from brazil, my english is not that good,Any help? |
|