Compiler PIC+ICD4

For general Flowcode discussion that does not belong in the other sections.
enzo12401Bernard
Posts: 5
http://meble-kuchenne.info.pl
Joined: Sun Dec 10, 2023 12:42 pm

Compiler PIC+ICD4

Post 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
Attachments
eee.png
eee.png (17.58 KiB) Viewed 4560 times
Capture d'écran 2023-12-13 151208.png
Capture d'écran 2023-12-13 151208.png (142.06 KiB) Viewed 4560 times

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: Compiler PIC+ICD4

Post 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.

enzo12401Bernard
Posts: 5
Joined: Sun Dec 10, 2023 12:42 pm

Re: Compiler PIC+ICD4

Post by enzo12401Bernard »

thank you I have already installed but it tells me that it does not have a compiler?

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: Compiler PIC+ICD4

Post 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.

enzo12401Bernard
Posts: 5
Joined: Sun Dec 10, 2023 12:42 pm

Re: Compiler PIC+ICD4

Post 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
Attachments
a.png
a.png (216.99 KiB) Viewed 4542 times

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: Compiler PIC+ICD4

Post 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.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Compiler PIC+ICD4

Post 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 4360 times
ipe.jpg
ipe.jpg (104.17 KiB) Viewed 4360 times
Seb

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: Compiler PIC+ICD4

Post 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 4227 times

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: Compiler PIC+ICD4

Post 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

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: Compiler PIC+ICD4

Post 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.

Post Reply