HIDBootLoader load hex file but ntg changed??

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

HIDBootLoader load hex file but ntg changed??

Postby FakeSheep » Mon Jul 18, 2011 10:49 pm

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?
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: HIDBootLoader load hex file but ntg changed??

Postby A380 » Tue Jul 19, 2011 2:51 am

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.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: HIDBootLoader load hex file but ntg changed??

Postby FakeSheep » Tue Jul 19, 2011 10:07 am

yes, i try again jz now, but it still didnt work :cry: .
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: HIDBootLoader load hex file but ntg changed??

Postby A380 » Tue Jul 19, 2011 1:09 pm

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.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: HIDBootLoader load hex file but ntg changed??

Postby FakeSheep » Tue Jul 19, 2011 3:50 pm

its is blinking now~ but only LED2 is blinking and LED1 is remain light on. So is it properly work?
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: HIDBootLoader load hex file but ntg changed??

Postby A380 » Tue Jul 19, 2011 4:04 pm

Yes, it works as the written code. May be your SK40C sample code (bootloader).hex has crashed. Download it again from SK40C site.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: HIDBootLoader load hex file but ntg changed??

Postby FakeSheep » Tue Jul 19, 2011 4:39 pm

wow~~Oh ya u r right the hex file is crashed~ thx a lot for ur help~! :D :D
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: HIDBootLoader load hex file but ntg changed??

Postby FakeSheep » Tue Jul 19, 2011 4:56 pm

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 =________=
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: HIDBootLoader load hex file but ntg changed??

Postby A380 » Tue Jul 19, 2011 6:07 pm

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.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: HIDBootLoader load hex file but ntg changed??

Postby A380 » Tue Jul 19, 2011 6:12 pm

You should add the given linker file "rm18f4550 - HID Bootload.lkr" to your project. Refer page 40, procedure 14 in SK40C User Manual.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 3 guests

cron