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

I’ve gone through exactly the same steps as donutshoes but pressing reset doesn’t work.

Here is what Arduino IDE says (as far as i can see the same thing):

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.13.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.46 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.163

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

The Daisy Web Programmer "Flash Blink!’ weirdly does work.

I’m using Arduino IDE’s latest version, 1.8.19 and done:

Anyone can help?

Hey lelah,
I’m sorry to hear that it’s not working.
Pressing the ‘reset’ button should do the trick for that error, but it seems like it’s not unfortunately.

The Daisy Web Programmer working for you is a good sign tho :slight_smile:

I’m sure it may not make a difference, but give it a try with Arduino 2.0.
Also, could you tell us more about your computer setup, in particular your OS? Thanks!

1 Like

Hello Takumi_Ogata,
Thank you for the quick response.

Sorry for not sharing all the needed information before.
My OS is: Windows 11, 21H2

In a twist of events, Arduino IDE 2.0.4 Blink example code works (even without pressing reset afterward)!

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.13.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.44 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.192

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

I appreciate your help. I can’t wait to experiment with all the possibilities of the Daisy Seed!

1 Like

SOLVED

I had a similar problem. I kept getting the error target device not found - even if the DFU in FS mode was showing up and I had confirmed that the data cable was working.

After a few hours of debugging it turned the problem was the docking station / usb hub i was using.
When I plugged the Daisy Seed directly into USB-C → USB-A converter it worked!

So beware of USB hubs! I’m leaving this comment here in case someone else get this problem!

2 Likes