Skip to content

Tools->Mode->Debug appears to be stuck on #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KurtE opened this issue Jan 16, 2025 · 8 comments
Open

Tools->Mode->Debug appears to be stuck on #33

KurtE opened this issue Jan 16, 2025 · 8 comments

Comments

@KurtE
Copy link

KurtE commented Jan 16, 2025

I tried it out for a while on my first GIGA board. To see what all I could do with the
debug monitor, with a working sketch.

It now appears to be permanently in that mode. That is no matter what zephyr sketch I install, it will always
just show a prompt at the uart:~$
And wait for me to type sketch

Note: I have downloaded many versions of the firmware to this board. I have run it on both Windows and Ubuntu and I have down clean downloads, bootstrap and builds of the ArduinoCore-zephyr code base.

Also my other Giga, does not require me to enter something, at the prompt, unless there is a problem.

@KurtE
Copy link
Author

KurtE commented Mar 6, 2025

@facchinm @pillo79 - Note: I am still having this issue. That maybe on both of my GIGA boards, I have to have debug monitor open and type: sketch to get it up and running, regardless of the state of Debug/Standard

Any ideas on how to reset this?

@pillo79
Copy link

pillo79 commented Mar 6, 2025

Will publish a major update soon on this!

@mjs513
Copy link

mjs513 commented May 15, 2025

@pillo79 - @facchinm

this having this issue as of May 15. Any status - its really getting annoying. I do have a second Giga which has the same issue.

@pillo79
Copy link

pillo79 commented May 15, 2025

@mjs513 that is extremely weird and we are puzzled by this issue.
Since early March the Flash layout has changed, so it really should not be possible for the board to still be doing that.

Let me know if there's any error in my understanding of the details:

  • Any sketch loaded with Tools>Mode to "Standard" still stops after upload to the console
  • If you type sketch in the console, it runs
  • The sketch being run is the one that was just loaded, not a previous one
  • It does happen on some boards but not all of them. Switching between boards with the same sketch and IDE setup produces different results on different boards.
  • The loader is the same on all boards (do a "Burn Bootloader" on all of them)

@KurtE
Copy link
Author

KurtE commented May 15, 2025

@pillo79 @mjs513 - Yes that is the case.
Note: this happens on my older GIGA, and I think that is true with @mjs513 as well. The one I purchased later
does not have this issue.

So not sure if this has anything to do with layout and the like, or if there is some subtle hardware difference between
the earlier GIGA's, like I don't know what, maybe timing, maybe fuse settings, ...

@mjs513
Copy link

mjs513 commented May 15, 2025

@pillo79 @mjs513 - Yes that is the case (ditto)

On the older Giga going to walk you through the process

  1. Burn bootloader - no com port enumerated.
  2. Loaded blink by putting it into boot mode and loading it via standard and sketch does not run
    Image
  3. repeating by running in debug but no Com port again
    Image

typing sketch in debug window - I get com port and sketch runs
Image

@mjs513
Copy link

mjs513 commented May 15, 2025

@pillo79 - @KurtE
on my newer giga - its even worse - I com port not enumerated in standard or debug upload and nothing is shown on debug window (serial1)

Image

Note mbed does run on on the newer board

@mjs513
Copy link

mjs513 commented May 15, 2025

Here is verbose output

FQBN: arduino:zephyr:giga:debug=true
Using board 'giga' from platform in folder: C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1
Using core 'arduino' from platform in folder: C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1

Detecting libraries used...
C:\Users\Merli\AppData\Local\Arduino15\packages\zephyr\tools\arm-zephyr-eabi\0.16.8/bin/arm-zephyr-eabi-g++ -g -Os -std=c++17 -c -w -imacrosC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h -imacrosC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h @C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/cxxflags.txt -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit -lstdc++ -lsupc++ -lnosys -nostdlib -fdata-sections -ffunction-sections -fno-unwind-tables -DCORE_CM7 -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARDUINO_GIGA -DARDUINO_ARCH_ZEPHYR -DARDUINO_ARCH_ZEPHYR -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7 -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino/api/deprecated -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7 @C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/includes.txt C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\sketch\Blink.ino.cpp -o nul
Generating function prototypes...
C:\Users\Merli\AppData\Local\Arduino15\packages\zephyr\tools\arm-zephyr-eabi\0.16.8/bin/arm-zephyr-eabi-g++ -g -Os -std=c++17 -c -w -imacrosC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h -imacrosC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h @C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/cxxflags.txt -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit -lstdc++ -lsupc++ -lnosys -nostdlib -fdata-sections -ffunction-sections -fno-unwind-tables -DCORE_CM7 -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARDUINO_GIGA -DARDUINO_ARCH_ZEPHYR -DARDUINO_ARCH_ZEPHYR -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7 -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino/api/deprecated -IC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7 @C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\variants\arduino_giga_r1_stm32h747xx_m7/includes.txt C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\sketch\Blink.ino.cpp -o C:\Users\Merli\AppData\Local\Temp\4021847410\sketch_merged.cpp
C:\Users\Merli\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\Merli\AppData\Local\Temp\4021847410\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-g++" -g -Os -std=c++17 -c -w "-imacrosC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/generated/zephyr/autoconf.h" "-imacrosC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7/llext-edk/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h" "@C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7/cxxflags.txt" -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit -lstdc++ -lsupc++ -lnosys -nostdlib -fdata-sections -ffunction-sections -fno-unwind-tables -DCORE_CM7 -MMD -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARDUINO_GIGA -DARDUINO_ARCH_ZEPHYR -DARDUINO_ARCH_ZEPHYR -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-IC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\cores\\arduino" "-IC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7" "-IC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7" "@C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1\\variants\\arduino_giga_r1_stm32h747xx_m7/includes.txt" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\variant.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\pure_analog_pins.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\abi.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\CanMsg.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\itoa.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\Stream.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\Print.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\IPAddress.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\CanMsgRingbuffer.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\String.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\api\Common.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\new.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\USB.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\main.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\zephyrCommon.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\usb_device_descriptor.c.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\threads.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\zephyrSerial.cpp.o
Using previously compiled file: C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873\core\core.a
Archiving built core (caching) in: C:\Users\Merli\AppData\Local\arduino\cores\arduino_zephyr_giga_debug_true_a757af4cecb6f9ecef1606903d5fa4c5\core.a
Linking everything together...
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-g++" "-LC:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873" -r -e main -Wl,--gc-sections -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -std=c++17 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-unwind-tables -fno-use-cxa-atexit -lstdc++ -lsupc++ -lnosys -nostdlib "-TC:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\zephyr\\0.3.1/variants/_llext/linker_script.ld" "-Wl,-Map,C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.map" --specs=picolibc.specs --specs=nosys.specs -o "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino_debug.elf" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873\\core\\pure_analog_pins.cpp.o" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873\\core\\variant.cpp.o" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/core\\core.a"
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-strip" --strip-debug "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino_debug.elf" -o "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf"
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-objcopy" -O binary "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.bin"
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf" "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.hex"
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\zephyr-sketch-tool\\0.1.0/zephyr-sketch-tool" -debug "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf"
File C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf saved as C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf-zsk.bin
Bootloader file specified but missing: C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\0.3.1\bootloaders\zephyr-arduino_giga_r1_stm32h747xx_m7.bin
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\zephyr-sketch-tool\\0.1.0/zephyr-sketch-tool" -debug "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.bin"
File does not have an ELF header, adding empty space
File C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.bin saved as C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.bin-zsk.bin
"C:\\Users\\Merli\\AppData\\Local\\Arduino15\\packages\\zephyr\\tools\\arm-zephyr-eabi\\0.16.8/bin/arm-zephyr-eabi-size" -A "C:\\Users\\Merli\\AppData\\Local\\arduino\\sketches\\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf"
Sketch uses 2808 bytes (0%) of program storage space. Maximum is 786432 bytes.
Global variables use 1272 bytes (0%) of dynamic memory, leaving 522352 bytes for local variables. Maximum is 523624 bytes.
"C:\Users\Merli\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5/dfu-util" --device ,0x2341:0x0366 -D "C:\Users\Merli\AppData\Local\arduino\sketches\8BD1BD52ADE980F8B760A3727D216873/Blink.ino.elf-zsk.bin" -a0 --dfuse-address=0x080E0000:leave
dfu-util 0.11-arduino4

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:0366
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 = 0x080e0000, size = 10832

Erase   	[                         ]   0%            0 bytes
Erase   	[                         ]   0%            0 bytes
Erase   	[=========                ]  37%         4096 bytes
Erase   	[==================       ]  75%         8192 bytes
Erase   	[=========================] 100%        10832 bytes
Erase    done.

Download	[                         ]   0%            0 bytes
Download	[=========                ]  37%         4096 bytes
Download	[==================       ]  75%         8192 bytes
Download	[=========================] 100%        10832 bytes
Download done.
File downloaded successfully
Submitting leave request...
Transitioning to dfuMANIFEST state

Here is a zip of elf bin etc

Blink.ino.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants