Issues when uploading to Arduino

When I try compiling and uploading an example file to the Daisy I get the errors below on upload. I’ve matched all the settings to what’s described in the ‘Getting Started’ guide for Arduino (screenshot below)

The compile goes through fine. I tested and the browser USB programmer works too - can’t be a hardware issue.
Any help would be appreciated.
Thanks!

Daniel

Error when upload using programmer:

java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:295)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2086)
at java.lang.Thread.run(Thread.java:748)

Error when uploading using ‘Upload’ (not as the Getting Started explains it)

                   STM32CubeProgrammer v2.4.0                  

USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 200364500000
FW version : 0x011a
Device ID : 0x0450
Device name : STM32H7xx
Flash size : 2 MBytes (default)
Device type : MCU
Device CPU : Cortex-M7

Memory Programming …
Opening and parsing file: autowah.ino.bin
File : autowah.ino.bin
Size : 60892 Bytes
Address : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
erasing sector 0000 @: 0x08000000 done
Download in Progress:

File download complete
Time elapsed during download operation: 00:00:01.542

RUNNING Program …
Address: : 0x8000000
Error: Start operation failed

Screenshot of my settings:

Same problem here. Seems to be a non-issue.Meaning: a false error. The program runs (try the bilking LED example).

Thanks for your reply DragonSF but it’s not uploading in my case. Still running the project I tested uploading through the browser earlier.
Tried a few more examples and always the same.

Actually … @DragonSF … you are right!

It’s just that you HAVE to use ‘Upload’ and NOT (as described here: https://github.com/electro-smith/DaisyWiki/wiki/1a.-Getting-Started-(Arduino-Edition) ) ‘Upload Using Programmer’. @andrewikenberry might be good to get this updated for other starters.

Still erroring out with “Error: Start operation failed” but I guess that’s just the main program not being able to start by itself?

Let me know in case I’m missing something.

I just fixed the wiki to properly mention using the ‘Upload’ button, and also included a note to not use the ‘Upload Using Programmer’ button.

Hope that helps some people avoid this issue in the future!

2 Likes

Another working upload alternative from the Arduino IDE:

Connecting an ST-Link v2 https://www.st.com/en/development-tools/st-link-v2.html
via an ARM JTAG Adapter https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/

and uploading with Tools > Upload Method > STM32CubeProgrammer (SWD)

1 Like