Page 1 of 1
PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Fri Oct 25, 2024 9:44 am
by stefan.erni
Hi Ben
I am looking for a PIC 32MZ board for Flowcode.
I found the chipKIT Wi-Fire as target from Flowcode.
But I can not compile to hex.
And is it correct that I can flash it via USB?

- 2024-10-25_10-23-09.PNG (213.61 KiB) Viewed 3913 times
https://chipkit.net/wiki/index.php?tit ... T_Wi-Fire
Using <Pic32_Se> user settings for compiler
Launching the compiler...
xc32-gcc.exe: error: PIC32.32MZ.ChipKIT: No such file or directory
xc32-gcc.exe: error: Wi-FIRE: No such file or directory
xc32-gcc.exe: error: Bootloader: No such file or directory
xc32-gcc.exe: fatal error: no input files
compilation terminated.
Autoclose turned off
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Wed Oct 30, 2024 2:47 pm
by medelec35
Hi Stefan.
Your flowchart compiles for me OK.
could you have a path issue and are you fully UpToDate with components?
The compiler message for me:
Code: Select all
Target folder: D:\Flowcode Testing
Source name: D:\Flowcode Testing\FC10_Bootloader_2.fcfx
Title:
Description:
Device: PIC32.32MZ.ChipKIT Wi-FIRE Bootloader
Generated by: Flowcode v10.1.2.40
Date: Wednesday, October 30, 2024 14:38:09
Users: 10
Registered to: ********
Licence key: ********
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-gcc.exe -O1 -G1024 -Wl,--gc-sections,-Map,"FC10_Bootloader_2.map" -nostartfiles -T "C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\chipKit\MZ-application-32MZ2048ECX.ld" -T "C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\chipKit\chipKIT-application-COMMON-MZ.ld" "C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\chipKit\cpp-startup.S" -mprocessor=32MZ2048EFG100 -o "FC10_Bootloader_2.elf" "FC10_Bootloader_2.c"
. . . . . . .
c:\program files (x86)\flowcode\common\compilers\pic32\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/xc32-ld.exe:MZ-application-32MZ2048ECX.ld.01:118: warning: memory region `kseg0_eeprom_mem' not declared
Using FCD settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-bin2hex.exe "FC10_Bootloader_2.elf"
FINISHED
Since the Program options allow to select the COM port, I would assume it will work similar to ESP32 or UNO
I.e via USB connector.
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Thu Oct 31, 2024 8:10 am
by stefan.erni
Hi Martin
I suspect my compiler options are not correct.
I am using the PIC32 on my own hardware.
That works fine. But what settings should I use for the bootloader?
Could you export your settings and post them?
I will then adjust the paths.
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Thu Oct 31, 2024 8:58 am
by medelec35
Hi Stefan.
When you select a target device that has a boot loader e.g. your ChipKIT Wi-Fire Bootloader, or Arduino Uno etc then the compiler settings for the target is taken over by the relevant .fcdx file.
Therefore you should not have any compiler setting selected like you have.

- Compiler settings1.png (42.02 KiB) Viewed 3666 times

- Compiler settings2.png (53.19 KiB) Viewed 3666 times
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Thu Oct 31, 2024 2:20 pm
by stefan.erni
Hi Martin
I changed to the same setting as you and now it works. It even works very fast for flashing. Thank you very much.
But there is still a small problem with the PIC32MZ.
If it is set to microMIPS, the interrupts no longer work properly.
With the processor target PIC32MZ this is very easy to change.
Do you know how I can change this on the target bootloader Wi Fire?

- 2024-10-31_15-05-53.PNG (40.01 KiB) Viewed 3649 times
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Fri Nov 01, 2024 9:53 am
by BenR
Hello,
Do you know how I can change this on the target bootloader Wi Fire?
The bootloader firmware would probably need re-writing with the configuration bit altered. Do you have access to the bootloader source code?
Re: PIC32MZ Board chipKIT Wi fire Bootloader
Posted: Fri Nov 01, 2024 10:25 am
by stefan.erni
Hi Ben
Just to the chipKIT-WiFire-v01000303.hex
https://chipkit.net/wiki/index.php?titl ... IT_Wi-Fire
and
https://digilent.com/reference/chipkit_ ... t_wifire_b
?
that doesn't look good
The Wi-FIRE is significantly faster than its WF32 counterpart, with 200MHz operation speed, 2MB of Flash, 512kB RAM, High Speed USB and a 50MHz SPI. The PIC32MZ core includes the MIPS MicroAptiv CPU Core from Imagination Technologies. microAptiv is a highly efficient, compact, core that is optimized for cloud-connected based projects, using Imagination Technologies’ FlowCloud software.