Compiler ERROR PIC18F57Q84

For general Flowcode discussion that does not belong in the other sections.
medelec35
Valued Contributor
Posts: 2300
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 715 times
Been thanked: 775 times

Re: Compiler ERROR PIC18F57Q84

Post by medelec35 »

is your MCLR pin fixed to 5V or floating?
Another potential issue could be the programmer is not sending the correct configuration settings?
Can you read the microcontrollers memory including config settings and upload it within this topic.
You will need to zip up the file as hex extensions are not accepted.
Martin

seokgi
Posts: 235
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 8 times
Been thanked: 8 times

Re: Compiler ERROR PIC18F57Q84

Post by seokgi »

The hardware has been thoroughly verified.

seokgi
Posts: 235
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 8 times
Been thanked: 8 times

Re: Compiler ERROR PIC18F57Q84

Post by seokgi »

The hardware has been thoroughly reviewed and is free of issues.

seokgi
Posts: 235
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 8 times
Been thanked: 8 times

Re: Compiler ERROR PIC18F57Q84

Post by seokgi »

Here my hexa file.
Attachments
260608-18F57Q84-4.zip
(445 Bytes) Downloaded 33 times

medelec35
Valued Contributor
Posts: 2300
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 715 times
Been thanked: 775 times

Re: Compiler ERROR PIC18F57Q84

Post by medelec35 »

Was the hex file generated by Flowcode, or downloaded directly from the chip via your programmer?

You did not answer the question about the how is mclr pin is connected.
High, low or left unconnected?
Martin

seokgi
Posts: 235
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 8 times
Been thanked: 8 times

Re: Compiler ERROR PIC18F57Q84

Post by seokgi »

The MCLR signal is pulled up to 5V and connected to the MCU via a 100-ohm resistor.

I am uploading the hexadecimal file, which was compiled in FC11 and read from the downloaded file.

Thank you for your interest.
Attachments
2026-06-10 .png
2026-06-10 .png (106.53 KiB) Viewed 152 times
260608-18F57Q84-4.zip
(445 Bytes) Downloaded 32 times

medelec35
Valued Contributor
Posts: 2300
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 715 times
Been thanked: 775 times

Re: Compiler ERROR PIC18F57Q84

Post by medelec35 »

Hello
seokgi wrote:
Wed Jun 10, 2026 1:34 am
I am uploading the hexadecimal file, which was compiled in FC11 and read from the downloaded file.
No, that was not what I wanted, maybe it was my wording.
medelec35 wrote:
Tue Jun 09, 2026 5:26 pm
Can you read the microcontrollers memory including config settings and upload it within this topic.
What I require is for you to connect the programmer up to the microcontroller, read all contents and save as a hex file.
It's the microcontroller contents that I wanted you to upload.
Not interested in the hex file that Flowcode generated.
Martin

seokgi
Posts: 235
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 8 times
Been thanked: 8 times

Flowcode v11 Re: Compiler ERROR PIC18F57Q84

Post by seokgi »

Here my file

Thank you
Attachments
PIC18F57Q84.zip
(25 KiB) Downloaded 17 times

medelec35
Valued Contributor
Posts: 2300
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 715 times
Been thanked: 775 times

Re: Compiler ERROR PIC18F57Q84

Post by medelec35 »

Hello.
Thanks for the requested file.
I have check the hex file and code from the microcontroller looks correct for toggling a pin.
Decoding the hex file it looks like the correct pin is being assigned and toggled.

An issue I could potentially see with your configuration settings is LVP is enaboed.
Are you programming via LVP or HVP?
An issue with LVP, is if pins B6 and B7 are left floating hen the chip can be forced into ghost programming mode.
Can you try disabling LVP and only program in HVP mode.
It will save future issues.

My conclusion is either LVP causing issue, or agreeing with Steve, its an hardware issue.
Martin

Post Reply