PIC32MZ Board chipKIT Wi fire Bootloader

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 1046
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

PIC32MZ Board chipKIT Wi fire Bootloader

Post 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
2024-10-25_10-23-09.PNG (213.61 KiB) Viewed 3915 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
Attachments
FC10_Bootloader_2.fcfx
(7.13 KiB) Downloaded 171 times

medelec35
Matrix Staff
Posts: 2027
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

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

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

Post 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.
Attachments
PIC32_ICD4.zip
(482 Bytes) Downloaded 134 times
2024-10-31_08-58-11.PNG
2024-10-31_08-58-11.PNG (54.61 KiB) Viewed 3675 times

medelec35
Matrix Staff
Posts: 2027
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

Post 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
Compiler settings1.png (42.02 KiB) Viewed 3668 times
Compiler settings2.png
Compiler settings2.png (53.19 KiB) Viewed 3668 times
Martin

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

Post 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
2024-10-31_15-05-53.PNG (40.01 KiB) Viewed 3651 times
Attachments
Fc8_usb_Bootloader1_IRQ.fcfx
(20.64 KiB) Downloaded 140 times

BenR
Matrix Staff
Posts: 1950
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 694 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

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

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: PIC32MZ Board chipKIT Wi fire Bootloader

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

Post Reply