Programming failed 18F45K22
Programming failed 18F45K22
Good evening,
I would like to use a PIC18F45K22 with the EB006 and the LEDArray. I am using a 4 MHz Oscillator. I have build the attached Flowchart. It doesn't work and I think that something is wrong in my configuration.
Could you please give me a hint?
Thanks in advance.
Best regards
Simon
I would like to use a PIC18F45K22 with the EB006 and the LEDArray. I am using a 4 MHz Oscillator. I have build the attached Flowchart. It doesn't work and I think that something is wrong in my configuration.
Could you please give me a hint?
Thanks in advance.
Best regards
Simon
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Programming failed 18F45K22
Hi Simon,
It's best to leave extended instruction set Enabled Bit > disabled
Have you got a pull-up resistor(E.g 10K) connected between pin 1 and +5V supply?
In not then you need to either connect a pull-up resistor, or change MCLR pin Enable to disabled.
There could also be a problem with your crystal or associated components?
Make sure caps (if crystal is used) are of the correct value.
Martin
It's best to leave extended instruction set Enabled Bit > disabled
Have you got a pull-up resistor(E.g 10K) connected between pin 1 and +5V supply?
In not then you need to either connect a pull-up resistor, or change MCLR pin Enable to disabled.
There could also be a problem with your crystal or associated components?
Make sure caps (if crystal is used) are of the correct value.
Martin
Martin
Re: Programming failed 18F45K22
Hi simon
ive checked your file and its ok on my hardware(different from yours) try this attached hex file and see if it works, if it does let me know
ive checked your file and its ok on my hardware(different from yours) try this attached hex file and see if it works, if it does let me know
- Attachments
-
- simstotest.hex
- (664 Bytes) Downloaded 282 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php
Re: Programming failed 18F45K22
Hello dazz,
thank you.
But it doesn't work. I've attached my configuration. After Programming with PPPv3, I get the error: Programming failed: <1><2><3><5><6><8><9><10><11><12><13>
Thanks in advance.
Best regards
Simon
thank you.
But it doesn't work. I've attached my configuration. After Programming with PPPv3, I get the error: Programming failed: <1><2><3><5><6><8><9><10><11><12><13>
Thanks in advance.
Best regards
Simon
- Attachments
-
- Config_18F45k22.jpg
- (205.32 KiB) Downloaded 2931 times
Re: Programming failed 18F45K22
hi
try enabling the internal/external osc switchover and see what happens, if it works then its something to do with the xtal. i loaded your original hex into ppp and noticed that the configs wernt the same as in your flowchart, there is something on the forums regarding 18f config settings
hth
ythought i was ging mad for a minute here the thread http://www.matrixmultimedia.com/mmforum ... 18f#p31781
try enabling the internal/external osc switchover and see what happens, if it works then its something to do with the xtal. i loaded your original hex into ppp and noticed that the configs wernt the same as in your flowchart, there is something on the forums regarding 18f config settings
hth
ythought i was ging mad for a minute here the thread http://www.matrixmultimedia.com/mmforum ... 18f#p31781
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: Programming failed 18F45K22
Hi. That fix only applies to the new Flowcode v5.0. Looking at this file I don't think this is a v5 file - could be wrong though!
Jonny
Jonny
Re: Programming failed 18F45K22
Hello,
I'am using Flowcode v4.5. Though, I had a look at the link but didn't use the files.
@dazz
I' ve done as you told me. Programming failed stays the same, but the LEDs are flashing nearly correct. I've tried some other programming(reading from port b and write to port d). That doesn't work. But I think programming with failure is pointless.
I found a topic about the 18F25k22 here:http://www.matrixmultimedia.com/mmforum ... config+18f
I tried the config in the Flowcharts there but it ends up in programming failed.
Here is my last attempt: I would really appreciate it if you have another idea.
Best regards
Simon
I'am using Flowcode v4.5. Though, I had a look at the link but didn't use the files.
@dazz
I' ve done as you told me. Programming failed stays the same, but the LEDs are flashing nearly correct. I've tried some other programming(reading from port b and write to port d). That doesn't work. But I think programming with failure is pointless.
I found a topic about the 18F25k22 here:http://www.matrixmultimedia.com/mmforum ... config+18f
I tried the config in the Flowcharts there but it ends up in programming failed.
Here is my last attempt: I would really appreciate it if you have another idea.
Best regards
Simon
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Programming failed 18F45K22
Hi Simon,
When you fist posted about programming failed and posted your flowchart I got the impression that you can send flowchart to target device, but the hardware did not work.
E.g LED's not flashing when suppose to etc.
But since error is:
So what is your hardware set up for programming chip?
EB006 programming board, or your own purpose built hardware with ICSP connections, or HP488 Development board or PICKIT2/3 etc.?
Looks like chip may not be getting all correct voltages (e.g VPP should rise, clock, data etc)
Don't forget the following pins of chip are involved with programming:
MCLR/VPP/RE3
VDD
VSS
RB7
RB6
So if using your own hadware, caps connected between RB6 and GND or RB7 and gound would cause failure.
Also connecting VPP directly to +5V will cause failure.
What you can try within Flowcode is select chip, Configure.
then in the new window select Autodetect PICmicro. What happens. Do you get any warnings, or is your target chip displayed OK?
Reason LED's may be flashing could be due to when chip was last programmed without the errors your getting now?
Try changing the Patten, so a LED that was not lighting before lights now. Or if only 1 LED connected get it to flash every second for 5 times, then stay off.
That way you can confirm if flowchart is compiled to chip or not,
Martin
When you fist posted about programming failed and posted your flowchart I got the impression that you can send flowchart to target device, but the hardware did not work.
E.g LED's not flashing when suppose to etc.
But since error is:
Then you should be looking at comms part of your hardware rather than flowchart (assuming LVP is disabled).simsto wrote: Programming failed: <1><2><3><5><6><8><9><10><11><12><13>
So what is your hardware set up for programming chip?
EB006 programming board, or your own purpose built hardware with ICSP connections, or HP488 Development board or PICKIT2/3 etc.?
Looks like chip may not be getting all correct voltages (e.g VPP should rise, clock, data etc)
Don't forget the following pins of chip are involved with programming:
MCLR/VPP/RE3
VDD
VSS
RB7
RB6
So if using your own hadware, caps connected between RB6 and GND or RB7 and gound would cause failure.
Also connecting VPP directly to +5V will cause failure.
What you can try within Flowcode is select chip, Configure.
then in the new window select Autodetect PICmicro. What happens. Do you get any warnings, or is your target chip displayed OK?
Reason LED's may be flashing could be due to when chip was last programmed without the errors your getting now?
Try changing the Patten, so a LED that was not lighting before lights now. Or if only 1 LED connected get it to flash every second for 5 times, then stay off.
That way you can confirm if flowchart is compiled to chip or not,
Martin
Martin
Re: Programming failed 18F45K22
Hello Martin,
I am using the EB006 programming board with 4Mhz Chrystal. I've used a 18F4455 without problems. There is only the LEDArray connected to Port D. The chip is detected automatically.
The programm is written to chip. I can change the output value and it is displayed correct. But every programming shows me the above mentioned error. The chip has never been programmed correctly. Is it possible that the chip is damaged?
Best regards
Simon
I am using the EB006 programming board with 4Mhz Chrystal. I've used a 18F4455 without problems. There is only the LEDArray connected to Port D. The chip is detected automatically.
The programm is written to chip. I can change the output value and it is displayed correct. But every programming shows me the above mentioned error. The chip has never been programmed correctly. Is it possible that the chip is damaged?
Best regards
Simon
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Programming failed 18F45K22
Hi Simon,simsto wrote: The programm is written to chip. I can change the output value and it is displayed correct. But every programming shows me the above mentioned error. The chip has never been programmed correctly. Is it possible that the chip is damaged?
I could be wrong, but to me sounds like PPP cosmetic error (pure guess), since the o/p is displayed correctly and chip detects.
If all programs work and timing are correct, then I would not worry about it too much.
Staff @MM would be in a better position to say of course.
Martin
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Programming failed 18F45K22
Is this related to this post?
http://www.matrixmultimedia.com/mmforum ... k22#p28168
I could be wrong, but PPP may not be able to program the 18F4xK22 chips (the 18F2xK22 seem fine).
I've just tried here and I get some weird results. I get the "programming failed" messages and when I read back, the file is all zeros.
I haven't got time to try with PICkit at the moment, but I seem to remember there was no problem using this to program that device.
http://www.matrixmultimedia.com/mmforum ... k22#p28168
I could be wrong, but PPP may not be able to program the 18F4xK22 chips (the 18F2xK22 seem fine).
I've just tried here and I get some weird results. I get the "programming failed" messages and when I read back, the file is all zeros.
I haven't got time to try with PICkit at the moment, but I seem to remember there was no problem using this to program that device.
Re: Programming failed 18F45K22
J have the same problems with 18F46K22.
Using EB-006-00-7 and FlowCode V5, !MCLR disabled, Single-Supply ICSP disabled.
Using EB-006-00-7 and FlowCode V5, !MCLR disabled, Single-Supply ICSP disabled.
Re: Programming failed 18F45K22
Good morning,
I've got my 18F45K22 working. I bought a PICKIT3. The program is transferd from within Flowocde with the appropriate compiler options from here.
The configuration is set out of MPLAB.
It is a little bit time-consuming but it works fine.
Best regards
Simon
I've got my 18F45K22 working. I bought a PICKIT3. The program is transferd from within Flowocde with the appropriate compiler options from here.
The configuration is set out of MPLAB.
It is a little bit time-consuming but it works fine.
Best regards
Simon
Re: Programming failed 18F45K22
Hi,
The 18F45K22 is our current choice of chip for the application we're developing. We have to use a PickIt 3 to program the chip which is a shame.
Are there any plans to support the PIC18F2X/4XK22 range with PPP3?
Tb.
The 18F45K22 is our current choice of chip for the application we're developing. We have to use a PickIt 3 to program the chip which is a shame.
Are there any plans to support the PIC18F2X/4XK22 range with PPP3?
Tb.
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Programming failed 18F45K22
We do have plans for a large revision to our EB006 multiprogrammer E-block and hope to include support for this range of chips. The redevelopment is at an early stage, but I would hope to have something by the end of the year.
Re: Programming failed 18F45K22
Thanks for your quick response Steve.
Our team partnership of three companies are just starting a large commercial development project using your product range. Would you recommend we select another chip for the moment? Is it just the EB006 that needs updating or are there features that Flowcode doesn't support well at the moment?
BR,
Tb.
Our team partnership of three companies are just starting a large commercial development project using your product range. Would you recommend we select another chip for the moment? Is it just the EB006 that needs updating or are there features that Flowcode doesn't support well at the moment?
BR,
Tb.
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Programming failed 18F45K22
Hello,
I beleive that FLowcode supports the chip fine, it is PPP and the EB006 which has problems programming the device.
I beleive that FLowcode supports the chip fine, it is PPP and the EB006 which has problems programming the device.