Page 1 of 3
HIDBootLoader load hex file but ntg changed??

Posted:
Mon Jul 18, 2011 10:49 pm
by FakeSheep
i follow the user manual to update my PIC firmware, the procedures shown below:
1)my laptop--->usb cable--->UIC00B--->rainbow jumper--->SK40C(power up by adapter).
2)use [PICkit 2 programmer UIC00B v1.0] and load [SK40C HID Bootloader Firmware (18F4550).hex] and write it to my PIC
3)when it is done, unplug all the devices. And i connect SK40C(with 18f4550) to my lapton, two LED blink alternating when it's in boot mode.
4)run the HIDBootLoader.exe--->open hex file--->SK40C 18F_USB Sample program---> SK40C sample code(bootloader).hex--->"program/verify"---->wait loader completed successfully--->"reset device"
when i click "Reset device", 2 LED are jz no response, no blinking no light. Why?
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 2:51 am
by A380
Make sure both of your SW are not pressed. If either one is being pressed, LEDs will stop blinking. May be you can try to press the "Reset" button to reset the device first.
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 10:07 am
by FakeSheep
yes, i try again jz now, but it still didnt work

.
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 1:09 pm
by A380
Okay, you try to load this hex file "SK40C 18F_USB Sample Program\LCD Display\SK40C_C18.hex" and see the LEDs is blinking or not.
Do make sure "SEL USB" jumper on your SK40C board is connected.
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 3:50 pm
by FakeSheep
its is blinking now~ but only LED2 is blinking and LED1 is remain light on. So is it properly work?
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 4:04 pm
by A380
Yes, it works as the written code. May be your SK40C sample code (bootloader).hex has crashed. Download it again from SK40C site.
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 4:39 pm
by FakeSheep
wow~~Oh ya u r right the hex file is crashed~ thx a lot for ur help~!

Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 4:56 pm
by FakeSheep
omg here is another question...
i add the Example_LEDblinking.c file to MPLAB source file and jz rebuild it without any editing, and i load the new generated hex file to my PIC, the problem occur again,no light no blinking= = , why i can't use the file generate from MPLAB? Besides the .c file, am i miss add any important file?= = sry that im so stupid in this =________=
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 6:07 pm
by A380
You are missing this linker file"rm18f4550 - HID Bootload.lkr" file. I think SK40C User Manual has mention it. Or you just edit your code on existing project file (SK40C sample code (bootloader).mcp) which located at ""SK40C 18F_USB Sample Program\LED Blinking.
Re: HIDBootLoader load hex file but ntg changed??

Posted:
Tue Jul 19, 2011 6:12 pm
by A380
You should add the given linker file "rm18f4550 - HID Bootload.lkr" to your project. Refer page 40, procedure 14 in SK40C User Manual.