campech
Joined: 08 Nov 2009 Posts: 1 Location: MX
|
Incompatibility between HID bootloader and CCSv4.105 code |
Posted: Tue Mar 30, 2010 6:21 am |
|
|
Hello everybody:
I'm programming a PIC18F4550 using the Microchip USB HID bootloader v2.6a
When I use the old CCS 4.084 version to compile my code everything it´s ok the LED is blinking every 500mS, but when I compile the same code with version 4.105, nothing happened, the pic is dead
Here is my code :
Code: |
//-------------------------------------------------------------------------------
#include "18f4550.h"
#fuses HSPLL,NOWDT,NOBROWNOUT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN,MCLR,NOPBADEN,WRTB,CPB
#use delay(clock=48000000)
#build(reset=0x1000,interrupt=0x1008)
#org 0x0000,0x0FFF {}
//-------------------------------------------------------------------------------
#define LED PIN_B1
void main(void)
{
set_tris_b(0b11111101);
do{
output_toggle(LED);
delay_ms(500);
}while(true);
}
//-------------------------------------------------------------------------------
|
And these are the captured images using HID Bootloader :
Code compiled with CCSv4.084
Code compiled with CCSv4.105
In the second image the lines "Erase complete" and "Programming started" not appearing
I hope somebody could help me
Thanks in advance
campech |
|