Programming failed: <6>

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Programming failed: <6>

Post by bnelson »

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.
Attachments
flowcodeprogramfailed.jpg
flowcodeprogramfailed.jpg (108.2 KiB) Viewed 7537 times

Spanish_dude
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>

Post by Spanish_dude »

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

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

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?
Attachments
oscillator.jpg
oscillator.jpg (85.45 KiB) Viewed 7534 times

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

Here is what happens when I try to program hex file from PPP.
Same Programming failed <6> error
Attachments
test1problems.jpg
test1problems.jpg (62.76 KiB) Viewed 7531 times

Spanish_dude
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>

Post by Spanish_dude »

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:
Sans titre.png
(44.55 KiB) Downloaded 3585 times
Nicolas

EDIT:
I think <6> means the 6th config byte can't be written.

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

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.

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

I would like to use the external crystal from the board.

Spanish_dude
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>

Post by Spanish_dude »

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

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

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.

Spanish_dude
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>

Post by Spanish_dude »

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.

User avatar
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>

Post by DavidA »

Hello,

Does this occur on any other chip types or just the 18f1230?

bnelson
Posts: 9
Joined: Wed Aug 01, 2012 12:04 am
Has thanked: 1 time
Contact:

Re: Programming failed: <6>

Post by bnelson »

It does samething with 16f877 chip too.

User avatar
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>

Post by DavidA »

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.

Post Reply