Hi all,
I use Visual Micro extension for Visual Studio 2022 (both are updated to the latest available versions) to build and upload code to many Arduino boards.
In this period I am developing some pilot applications for the Portenta Machine Control (PMC) board (
https://docs.arduino.cc/tutorials/portenta-machine-control/user-manual/); it is based on the Portenta H7 architecture.
Code compilation succeeds but the upload process fails systematically with the following output:
Compiling 'OPTA-PMC_SerialRTU' for 'Arduino Portenta H7 (envie_m7)'
Build Folder: "file:///D:/Junk/VMBuilds/OPTA-PMC_SerialRTU/envie_m7/Release"
Uploading 'OPTA-PMC_SerialRTU' to 'Arduino Portenta H7 (envie_m7)' using 'COM13'
Uploader started for board Arduino Portenta H7 (envie_m7)
Upload method will be: bootloader
Uploading via Bootloader
uino1\dfu-util --device 0x2341:0x035b -D " -a0 --dfuse-address=0x08040000:leave
dfu-util 0.10-dev
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
The uploader process failed
Warning: Invalid DFU suffix signature
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
A valid DFU suffix will be required in a future dfu-util release
This program is Free Software and has ABSOLUTELY NO WARRANTY
No DFU capable USB device available
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
The same sketch compiled with the Arduino IDE for the same board connected to the same USB port is correctly uploaded with the following output:
Performing 1200-bps touch reset on serial port COM13
Waiting for upload port...
Upload port found on COM14
duino1/dfu-util" --device 0x2341:0x035b -D PTA-PMC_SerialRTU.ino.bin" -a0 --dfuse-address=0x08040000:leave
dfu-util 0.10-dev
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 2341:035b
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash 2MB "
Downloading element to address = 0x08040000, size = 204860
Erase [ ] 0% 0 bytes
Erase [ ] 0% 0 bytes
Erase [= ] 5% 12288 bytes
Erase [== ] 9% 20480 bytes
Erase [=== ] 13% 28672 bytes
Erase [==== ] 17% 36864 bytes
Erase [===== ] 21% 45056 bytes
Erase [====== ] 25% 53248 bytes
Erase [======= ] 29% 61440 bytes
Erase [======== ] 33% 69632 bytes
Erase [========= ] 37% 77824 bytes
Erase [========== ] 41% 86016 bytes
Erase [=========== ] 45% 94208 bytes
Erase [============ ] 49% 102400 bytes
Erase [============= ] 53% 110592 bytes
Erase [============== ] 57% 118784 bytes
Erase [=============== ] 61% 126976 bytes
Erase [=============== ] 63% 131072 bytes
Erase [================ ] 65% 135168 bytes
Erase [================= ] 69% 143360 bytes
Erase [================== ] 73% 151552 bytes
Erase [=================== ] 77% 159744 bytes
Erase [==================== ] 81% 167936 bytes
Erase [===================== ] 85% 176128 bytes
Erase [====================== ] 89% 184320 bytes
Erase [======================= ] 93% 192512 bytes
Erase [======================== ] 97% 200704 bytes
Erase [=========================] 100% 204860 bytes
Erase done.
Download [ ] 0% 0 bytes
Download [= ] 5% 12288 bytes
Download [== ] 9% 20480 bytes
Download [=== ] 13% 28672 bytes
Download [==== ] 17% 36864 bytes
Download [===== ] 21% 45056 bytes
Download [====== ] 25% 53248 bytes
Download [======= ] 29% 61440 bytes
Download [======== ] 33% 69632 bytes
Download [========= ] 37% 77824 bytes
Download [========== ] 41% 86016 bytes
Download [=========== ] 45% 94208 bytes
Download [============ ] 49% 102400 bytes
Download [============= ] 53% 110592 bytes
Download [============== ] 57% 118784 bytes
Download [=============== ] 61% 126976 bytes
Download [=============== ] 63% 131072 bytes
Download [================ ] 65% 135168 bytes
Download [================= ] 69% 143360 bytes
Download [================== ] 73% 151552 bytes
Download [=================== ] 77% 159744 bytes
Download [==================== ] 81% 167936 bytes
Download [===================== ] 85% 176128 bytes
Download [====================== ] 89% 184320 bytes
Download [======================= ] 93% 192512 bytesWarning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
Download [======================== ] 97% 200704 bytes
Download [=========================] 100% 204860 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
I also tried to launch VS with administrative privileges, but the upload to PMC always fails.
May I ask for some help with this problem?
Is there any other user who uses VM to compile/upload code for/to a PMC?
Any help wil be appreciated.
Cheers.
Francesco - Italy