I have made a very simple led flasher program and it simulates perfectly. Flowcode also compiles to c ok aswell but when I try to compile to the pic mcu I get the following error.
I am using the pic16f1827 on a proto board and the Hi Tech compiler Lite. I have been through all settings a dozen times but cant seem to find what wrong.
I also tried this with the demo board included with the pickit3 (18f45k20) and adjusted the compiler setting s as needed with the same result.
I have also confirmed that the pickit 3 is fuctional on another pc that has mplab which came with the pickit.
I have attached the project file for reference. I will also attach other files if needed.
Cheers
Christian
Code: Select all
http://www.matrixmultimedia.com
Launching the compiler...
E:\Program Files\HI-TECH Software\PICC\9.81\bin\picc.exe --CHIP=16F1827 -N48 TEST.c
(1273) Omniscient Code Generation not available in Lite mode (warning)
Memory Summary:
Program space used B9h ( 185) of 1000h words ( 4.5%)
Data space used 29h ( 41) of 180h bytes ( 10.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.81
Copyright (C) 2010 Microchip Technology Inc.
Running this compiler in PRO mode, with Omniscient Code Generation enabled,
produces code which is typically 40% smaller than in Lite mode.
See http://microchip.htsoft.com/portal/pic_pro for more information.
Return code = 0
Launching the linker/assembler...
E:\Program Files\Matrix Multimedia\Flowcode V4\Tools\DoNothing\DoNothing.exe
Return code = 0
Launching the programmer...
E:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit3\PK3CMD.exe -P16F1827 -FTEST.hex -E -M -Y
Initialize Failed !!!
Return code = 1
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.
FINISHED