Program check failed

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
keesp
Posts: 17
Joined: Wed Sep 22, 2010 11:53 am
Contact:

Program check failed

Post by keesp »

Hi,

Can anyone give me some clues to solve the problem listed below. Compiling and linking seems to work fine, but the program does not seem to be sent to the PIC 16F877a. I have tried to disable the appropriate settings in the PPP, but it doesn't seem to make a difference.

Thanks in advance,

Kees

Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F877A "ex1.c"

........

BoostC Optimizing C Compiler Version 6.95 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited


ex1.c
Starting preprocessor: C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\pp.exe D:\Archief\projects\Dirksen\flowcode\ex1.c -i C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\include -d _PIC16F877A -la -c2 -o D:\Archief\projects\Dirksen\flowcode\ex1.pp -v -d _BOOSTC -d _PIC16


..............................................................................................................................................................................................

ex1.c success

success

Return code = 0

Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -ld "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic16.lib flowcode.pic16.lib rand.pic16.lib float.pic16.lib "ex1.obj" -t PIC16F877A -d "D:\Archief\projects\Dirksen\flowcode" -p "ex1"
BoostLink Optimizing Linker Version 6.95
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday


.....................


Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_msDelay in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h

Building CASM file
Memory Usage Report
===================
RAM available:368 bytes, used:35 bytes (9.6%), free:333 bytes (90.4%),
Heap size:333 bytes, Heap max single alloc:110 bytes
ROM available:8192 words, used:78 words (1.0%), free:8114 words (99.0%)



success

Return code = 0

Launching the programmer...
C:\Program Files\Matrix Multimedia\Flowcode V4\tools\PPP\PPPv3.exe -cs 2 -chip PIC16F877A -nogui "ex1.hex"

................

Sending program...

.........

Erasing the PICmicro
NOTE: EEPROM data will also be erased!
Writing program memory
Writing configuration memory
Writing id-locations
Reading program memory
Reading configuration memory
Finished reading PICmicro contents
Programming failed:

Program memory check failed

(NOTE: if the PIC is code-protected, this message will be
displayed even if the program has been sent correctly)
That took 6,739 seconds

Return code = 0

FINISHED

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Program check failed

Post by Benj »

Hello,

You may want to check your chip configuration settings. If you have a setting such as code protect enabled then the verification process will fail anyway because the code cannot be read back to be confirmed. Other then this the device may be damaged. Do you have another device you could try?

keesp
Posts: 17
Joined: Wed Sep 22, 2010 11:53 am
Contact:

Re: Program check failed

Post by keesp »

Hi Benj,

I take it that the chip configuration settings are the ones you can access through ppp? Or are these dip switches (or other hardware settings) on E-blocks? I am fearing that maybe the problem is in the micro-controller itself...

Cheers

Kees

Post Reply