Arduino IDE setup not going well

I’m following the instructions to “1a. Getting Started (Arduino Edition)” on the Daisy wiki to set up my Daisy Seed device with the Arduino IDE

I’ve performed all steps up to “Flash the Blink Example” including resetting my USB driver using Zadig

When I click “Upload” in the Blink example, the LED turns on and does not blink and I get this message in the log:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.10.0                  
      -------------------------------------------------------------------



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



Memory Programming ...
Opening and parsing file: blink.ino.bin
  File          : blink.ino.bin
  Size          : 20.57 KB 
  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.029

RUNNING Program ... 
  Address:      : 0x8000000
Start operation achieved successfully

From there, if I click upload again, the LED remains on and I get this message in the log:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.10.0                  
      -------------------------------------------------------------------



Error: Target device not found
Establishing connection with the device failed
the selected serial port Establishing connection with the device failed
 does not exist or your board is not connected

Unsure where to go from here if I want to continue setting up the Arduino IDE for Daisy Seed.
(Note: Arduino IDE is the latest version, 1.8.19)

Can you flash and run using the webprogrammer ?

Daisy Web Programmer

Flashing the Blink example on the Web Programmer via the “Flash Blink” button or the “select a platform and a program from the menu below.” section works fine

Flashing Blink.ino as a file from my computer on the Web Programmer does not work. In this case, the LED doesn’t even turn on, let alone blink.

That’s expected. the .ino is the source code - it has to be compiled before it can be flashed to the microcontroller.

“A compiler takes the program code (.ino) and converts the source code to a machine language module (called an object file). Another specialized program, called a linker, combines this object file with other previously compiled object files (in particular run-time modules) to create an executable file. (.hex/.bin/.elf)”

1 Like

Appreciated, I’m very much a newbie at stuff like this. Would the way forward be to compile my arduino sketches and use the Web Programmer that way? In a perfect world I’d like to know what’s preventing me from flashing to the Daisy from the IDE, a cursory search leads me to believe no one else has encountered this problem.

“… “extra step” of installing STM32CubeProg …”

You did that ?

1a. Getting Started (Arduino Edition) · electro-smith/DaisyWiki Wiki · GitHub

I can see that you did - doh, not quite awake yet.

1 Like

Yeah I also changed all the appropriate options in the Tool menu as well

It works for me - I just did a fresh Arduino install, following the instructions

Here’s what I get when uploading the blink example.

Sketch uses 32492 bytes (24%) of program storage space. Maximum is 131072 bytes.
Global variables use 4032 bytes (0%) of dynamic memory, leaving 520256 bytes for local variables. Maximum is 524288 bytes.
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.10.0                  
      -------------------------------------------------------------------



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



Memory Programming ...
Opening and parsing file: blink.ino.bin
  File          : blink.ino.bin
  Size          : 32.41 KB 
  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.456

RUNNING Program ... 
  Address:      : 0x8000000
Start operation achieved successfully

the wiki says " Now press the ‘Upload’ button (Not the ‘Upload using Programmer’ button) in the Arduino window, to compile and flash the example to your module. You should see the onboard LED toggle on and off each second!"

But that was not enough - I had to press “reset” on the daisy seed to start the program after “upload”.

I think that is the difference - the daisy web programmer does a software reset after uploading, and the program runs.

2 Likes

Pressing reset did the trick! Thanks so much for taking the time to help me!

1 Like