Page 1 of 2

Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 2:33 pm
by enzo12401Bernard
Good morning,

I'm a novice and I don't really understand the principle of the compiler changing flowcode.

I managed to put the Arduino one.

But now I would like to put it on a pic18F87K22 with my ICD4 but it doesn't give me a compiler? yet flowcode is a compiler?

thank you for your help

Re: Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 2:46 pm
by Steve-Matrix
The download link in the toolbar above contains downloads for all the toolchains. Here is a direct link:
https://www.flowcode.co.uk/download/

For that device, you will need the 8-bit PIC toolchain.

Re: Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 2:51 pm
by enzo12401Bernard
thank you I have already installed but it tells me that it does not have a compiler?

Re: Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 3:21 pm
by Steve-Matrix
The "locations" tab of Flowcode's project options will show where Flowcode thinks the toolchain is located. If you look there and the PIC compiler toolchain entry is wrong or missing, you can manually enter it there to fix the problem.

Re: Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 3:28 pm
by enzo12401Bernard
Good morning,

I managed to create a .c file but to send it with ICD4 I need a .HEX point for the "MPLAB IPE" program

because with flowcode I can't send it

Re: Compiler PIC+ICD4

Posted: Wed Dec 13, 2023 3:51 pm
by Steve-Matrix
The error is saying the extended instruction set is not supported. You need to change this in the chip config settings (under "build...project options").

And under "build...compiler options" you can customise the options used when programming the device. The IPE is supported, but currently uses the ICD3. You might be able to change the parameters so it uses the ICD4 instead.

Re: Compiler PIC+ICD4

Posted: Thu Dec 14, 2023 7:05 pm
by lucibel
Hi,
I'm using PICKIT4 but not upload the firmware with FC but with MPLAB IPE who is very fast.
In IPE you only need to load the prog one time then each that you compile it it will ask you to update.
PICKKIT4.jpg
PICKKIT4.jpg (53.83 KiB) Viewed 4456 times
ipe.jpg
ipe.jpg (104.17 KiB) Viewed 4456 times

Re: Compiler PIC+ICD4

Posted: Fri Dec 15, 2023 9:20 am
by stefan.erni
Hi to all


Like Seb, I also use MPlab when I have to programme a serie of devices. It is simply much faster.
It would be a good idea if Flowcode had a button "Flash again HEX" and not compile again


For programming and from time to time to "flash" I prefer the ICD4 and Flowcode.

It's working fine for me with the ICD4 and flowcode with this config.
just use your MPLABX version in the text...
C:\Program Files (x86)\Microchip\MPLABX\v5.40\mplab_platform\mplab_ipe\ipecmd.exe

/P$(chip) /F"$(outdir)$(target).hex" /TPICD4 /M /OL
Snag_7e9313.png
Snag_7e9313.png (59.39 KiB) Viewed 4323 times

Re: Compiler PIC+ICD4

Posted: Fri Dec 15, 2023 11:46 am
by WingNut
For info. I use MPLAB and pickit 4. That way if i need to program multiple devices MPLAB opens the same hex file and you just download to device without going to flowcode again. MPLAB reloads the hex file each time so if you have updated it, provided its name hasn't changed, it will download to device the updated hex file

Re: Compiler PIC+ICD4

Posted: Mon Feb 05, 2024 9:37 am
by Steve-Matrix
stefan.erni wrote:
Fri Dec 15, 2023 9:20 am
It would be a good idea if Flowcode had a button "Flash again HEX" and not compile again
Have you seen this post?
viewtopic.php?p=14571#p14571

This shows how Flowcode v10's "User Defined Tools" can be used to create a custom menu command to resend a HEX file to an ESP32. You should be able to do something similar to give Flowcode a command for reprogramming using ipecmd.exe (either using your own batch file or by directly the command to the ipecmd.exe application itself.