Programming failed: <6>
Moderator: Benj
Programming failed: <6>
I get this message when trying to program a pic18f1230 using flowcode5 and PICmicro developement board version 3.
I have tried several new pic18f1230 chips all with same result.
Simulation works great, preprocessor shows "test1.c success"
It does state "Warning unreferenced functions removed:" and then gives a big long list of items.
I would send the complete compiler message file if I knew how save it.
I have tried several new pic18f1230 chips all with same result.
Simulation works great, preprocessor shows "test1.c success"
It does state "Warning unreferenced functions removed:" and then gives a big long list of items.
I would send the complete compiler message file if I knew how save it.
- Attachments
-
- flowcodeprogramfailed.jpg (108.2 KiB) Viewed 7537 times
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Programming failed: <6>
There should be a log file with all the info written in that compile window.
The warning you get is not an issue. To save some memory space, the compiler will only compile those functions you have used in your main program.
Have you tried programming the 18F1230 with PPPv3 ?
You can find that program in somewhere in the Flowcode v5 installation folder. Try maybe an autodetect, just to make sure PPP does see the 18F1230 microcontroller.
If that doesn't work, you'll need to wait for someone else to answer that.
If it does work, try opening your hex file and program your microcontroller.
If it still doesn't work, I'm not sure what the issue could be, you'll have to wait for someone else.
Nicolas
The warning you get is not an issue. To save some memory space, the compiler will only compile those functions you have used in your main program.
Have you tried programming the 18F1230 with PPPv3 ?
You can find that program in somewhere in the Flowcode v5 installation folder. Try maybe an autodetect, just to make sure PPP does see the 18F1230 microcontroller.
If that doesn't work, you'll need to wait for someone else to answer that.
If it does work, try opening your hex file and program your microcontroller.
If it still doesn't work, I'm not sure what the issue could be, you'll have to wait for someone else.
Nicolas
Re: Programming failed: <6>
Nicolas,
Thanks for the reply.
The PPP auto detected the chip, but did not have a file for it and asked me to to the "expert configuration" which I did but still have same problems.
Please see the configurations in the picture. what configurations should I be using for the demo board?
Thanks for the reply.
The PPP auto detected the chip, but did not have a file for it and asked me to to the "expert configuration" which I did but still have same problems.
Please see the configurations in the picture. what configurations should I be using for the demo board?
- Attachments
-
- oscillator.jpg (85.45 KiB) Viewed 7534 times
Re: Programming failed: <6>
Here is what happens when I try to program hex file from PPP.
Same Programming failed <6> error
Same Programming failed <6> error
- Attachments
-
- test1problems.jpg (62.76 KiB) Viewed 7531 times
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Programming failed: <6>
Are you using an external or internal oscillator ?
If it's just a blink led test, I'd try with the external oscillator of ~19MHz that came with the programmer board.
In Flowcode, go to 'Build' then 'Project Option'. If you haven't changed the clock speed, it should be set to 19660800-ish.
Try the following configuration:
Nicolas
EDIT:
I think <6> means the 6th config byte can't be written.
If it's just a blink led test, I'd try with the external oscillator of ~19MHz that came with the programmer board.
In Flowcode, go to 'Build' then 'Project Option'. If you haven't changed the clock speed, it should be set to 19660800-ish.
Try the following configuration:
Nicolas
EDIT:
I think <6> means the 6th config byte can't be written.
Re: Programming failed: <6>
The "XT" option you sent a picture of is not an option with the 18f1230 target.
Please look at my previous picture and you will see what is selectable.
Please look at my previous picture and you will see what is selectable.
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Programming failed: <6>
There's a slider on the right side when selecting the oscillator.
Choosing XT will tell the microcontroller to use the external oscillator.
Also, if you're using Flowcode v5, please subscribe to that forum. If it's the free version then I'll move it to the free section of the v5 forum.
Nicolas
Choosing XT will tell the microcontroller to use the external oscillator.
Also, if you're using Flowcode v5, please subscribe to that forum. If it's the free version then I'll move it to the free section of the v5 forum.
Nicolas
Re: Programming failed: <6>
Im using v5 but it is not the free version... it is the version that is packaged with the PICmicro Development board.
I do not know how to move this to another forum.
Also, it seems no matter what settings I use in the "configure chip" I cant get anything to program. Also, if I insert a new chip into the device, I can use ppp to erase data, but if I try to program it and then try to erase, it says "Picmicro has not been erased. Continue?" as though it cant delete the program I just tried (unsuccessfully) to install. I have made certain that all code protection is disabled.
I do not know how to move this to another forum.
Also, it seems no matter what settings I use in the "configure chip" I cant get anything to program. Also, if I insert a new chip into the device, I can use ppp to erase data, but if I try to program it and then try to erase, it says "Picmicro has not been erased. Continue?" as though it cant delete the program I just tried (unsuccessfully) to install. I have made certain that all code protection is disabled.
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Programming failed: <6>
You'll have to subscribe to the v5 forum : http://www.matrixmultimedia.com/mmforum ... =46&t=9958
I'll move this topic for you .
Nicolas
PS: I have no idea why it fails :/. I'm sure someone else if not the admins will be able to help you more.
I'll move this topic for you .
Nicolas
PS: I have no idea why it fails :/. I'm sure someone else if not the admins will be able to help you more.
- 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: <6>
Hello,
Are you trying to program with a hex file created in Flowcode?
If so can you post the fcf file, c file and hex file.
Are you trying to program with a hex file created in Flowcode?
If so can you post the fcf file, c file and hex file.