programming failed

Programmer, In-Circuit Debugger, PIC Start-Up Kit, Memory Interface...

programming failed

Postby nilhdaf » Tue Mar 30, 2010 6:41 pm

hello, i have a problem when i try to write hex file into PIC16F877A in SK40C using PICkit2 and USB ICSP PIC Programmer."programming failed at program memory address 0x000008" appear at PICkit2. which device is problem?
nilhdaf
Freshie
 
Posts: 6
Joined: Thu Oct 08, 2009 2:47 am

Re: programming failed

Postby ober » Wed Mar 31, 2010 9:48 am

Is the UIC00A successfully detected PIC16F877A on SK40C using PICkit2? You might verify the problem by changing the PIC16F877A on SK40C, and use the UIC00A to program other PIC.

Anyway it might also be configuration bits in your hex code. Are you sure you are loading the correct program for PIC16F877A? Please download the sample hex code given in SK40C product page.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: programming failed

Postby nilhdaf » Thu Apr 01, 2010 12:06 am

thank to your suggestion, now i can program my PIC. then, i want to ask about sk40c uart programming. if i remove lcd on sk40c board without changing the programming, it is possible the board is not function? i try but the circuit did not function according to manual (hyperterminal is blank). it same when i try with KC wirefree bluetooth module.
nilhdaf
Freshie
 
Posts: 6
Joined: Thu Oct 08, 2009 2:47 am

Re: programming failed

Postby ober » Thu Apr 01, 2010 9:54 am

nilhdaf WROTE:thank to your suggestion, now i can program my PIC. then, i want to ask about sk40c uart programming.

So what is the actual cause of the programming fail? Do share with others as they might faced the same problem too.

if i remove lcd on sk40c board without changing the programming, it is possible the board is not function? i try but the circuit did not function according to manual (hyperterminal is blank). it same when i try with KC wirefree bluetooth module.

LCD is independent, but you might need to study the code a bit as it might have instruction on LCD to ask user to press switches to output UART string. Another thing is interface between SK40C to your computer.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: programming failed

Postby nilhdaf » Thu Apr 01, 2010 11:58 am

the actual cause of problem is simple, i didnt supply voltage to sk40c.haha
nilhdaf
Freshie
 
Posts: 6
Joined: Thu Oct 08, 2009 2:47 am

Re: programming failed

Postby nilhdaf » Sat Apr 03, 2010 4:40 am

i have another question. i have try replace UC00A with SKKCA21 and then a little modification in baudrate from 129(9600) to 0x0A(115200) in USART programming but the SKKCA21 seems cannot transfer data from PIC to laptop. it is device problem or programming? when i try using UC00A, it works well.
nilhdaf
Freshie
 
Posts: 6
Joined: Thu Oct 08, 2009 2:47 am

Re: programming failed

Postby ober » Mon Apr 05, 2010 9:26 am

nilhdaf WROTE:i have another question. i have try replace UC00A with SKKCA21 and then a little modification in baudrate from 129(9600) to 0x0A(115200) in USART programming but the SKKCA21 seems cannot transfer data from PIC to laptop. it is device problem or programming? when i try using UC00A, it works well.


I don get you, are you saying this:
1. Original setup: SK40C ---- UC00A ------ Computer

2. New setup: SK40C ---- SKKCA-21 --------wireless ------- Bluetooth dongle (computer)

If that is the case, have you tested:
computer (USB) ---- SKKCA-21 ------wireless ------- Bluetooth dongle (computer)

test this first, it might be you have yet establish connection between Bluetooth.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: programming failed

Postby gbb » Tue Apr 06, 2010 2:51 pm

hi. my first posting here. managed to program the pic using the sk40c and UIC00A. The leds are blinking. problem is, when i removed the usb connection, but the external power is still on, the blinking stops. when i reconnect to the usb, it blinks again. Is it necessary for the board to be always connected to the usb port? or does it require, two power supply. i thought its a stand-alone board once PIC is programmed. i am using the 16f877a and the sample program provided in your site.
gbb
Freshie
 
Posts: 4
Joined: Tue Apr 06, 2010 2:43 pm

Re: programming failed

Postby hyng » Tue Apr 06, 2010 5:56 pm

Hi, the led should blink with the supply from DC adapter. It is not necessary to plug in the USB. Can you further elaborate with detail about your problem? what LED blinking code that you program? Do you switch ON the power?
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: programming failed

Postby gbb » Wed Apr 07, 2010 12:00 pm

the program i tested it with is the SK40C 16F877A Sample Program. Power switch is ON. its working nicely, its blinking, except that i have to put both USB and and DC adapter on. the Adapter i am using is 12VDC, 500mA. Is there a current requirement for this SK40C? so far, all my program is working but it has to be with the two power supply, the USB and the adapter. i tested the MCLR line. When both usb and adapter are connected and on, when SW0 is pressed, it drops to 0, when released, it reach 4+VDC. when i remove the usb, just the adapter on, when SW0 is pressed, drops to zero but when release, it just goes up to 1.7VDC.
gbb
Freshie
 
Posts: 4
Joined: Tue Apr 06, 2010 2:43 pm

Next

Return to PIC Development Tool

Who is online

Users browsing this forum: No registered users and 20 guests