Page 1 of 1

PIC12F1572 Issues Programming & UART Issues

Posted: Mon Sep 30, 2019 8:29 am
by Sanjay Singh
Hello all,

I'm facing programming issue & non-working UART with PIC12F1572 Device.

Issue1:
I'm getting "Failed to program device" error while programming the device using PK3 & the 1 sec Flasher code in the program works perfectly

Issue2:
UART not working

My compiler settings are as follows:


Compiler Options:
----------------------

Compiler Location:
$(appdir)compilers\pic\bin\xc8.exe

Compiler Parameters:
--chip=$(chip) "$(target).c" --MSGDISABLE=359,1273,1388

Linker / Assembler Location:
$(appdir)tools\DoNothing\DoNothing.exe

Linker / Assembler Location:
(blank)

Programmer Location:
C:\Program Files (x86)\Flowcode 7\tools\PICkit3\PK3CMD.exe

Programmer Parameters:
-chip $(chip:u) "$(outdir)$(target).hex"


Any help in resolving these issues will be appreciable.

Regards
Sanjay

Re: PIC12F1572 Issues Programming & UART Issues

Posted: Tue Oct 01, 2019 11:33 am
by Benj
Hello,

The difference between the config values 1A03 and 3A03 is the low voltage programming setting which is being kept on and could explain why the UART isn't working as it consumes an I/O pin.

Anyway I would install the latest MPLABX and then use the IPE software packaged with this to program the device. It will likely have new firmware for the PICkit and hopefully will solve the problem?

Instructions for Flowcode integration here.
https://www.matrixtsl.com/wiki/index.ph ... _.28NEW.29

Re: PIC12F1572 Issues Programming & UART Issues

Posted: Wed Oct 23, 2019 10:35 am
by Sanjay Singh
Thanks, Benj, Updated MPLAB X IPE to v5.25 & and the issue got resolved.