CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Bootloader MCHPUSB error

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
xuxa



Joined: 07 Jul 2009
Posts: 4

View user's profile Send private message

Bootloader MCHPUSB error
PostPosted: Mon Aug 10, 2009 2:33 pm     Reply with quote

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?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group