Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Watchy v3 does nothing after upload (Read 871 times)
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #20 - Feb 18th, 2025 at 7:06am
Print Post  
you can also enjoy that deep search yourself , it is the basic sample from here

https://github.com/sqfmi/Watchy/tree/master/examples/WatchFaces/7_SEG

hours and hours of deep, deep , DEEP search
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #21 - Feb 18th, 2025 at 7:15am
Print Post  
Output is best attached as a text file attachment so the thread is readable for other users.

Quote:
I took Watchy sample, 
successfully compiled and uploaded it from Arduino
it works


Please enable the Preferences > Verbose Output during Compile in the Arduino IDE, and attach the full log from the Arduino IDE as a text file for us to review.

  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #22 - Feb 18th, 2025 at 7:32am
Print Post  
output from Arduino IDE
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #23 - Feb 18th, 2025 at 8:00am
Print Post  
Thanks for the output.

In vMicro please change the below settings:
1) Change the Build Configuration to "Release" (this will disable the Serial Debugger which is now enabled)
2) Change vMicro > Compiler > Search Lib In Lib option to "Top Level".

If you can then recompile and attach the vMicro output as a text file (some of the strings were affected by the previous post onto the thread).
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #24 - Feb 18th, 2025 at 8:06am
Print Post  
deep search started
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #25 - Feb 18th, 2025 at 8:21am
Print Post  
Error linking for board ESP32S3 Dev Module(esp32_esp32s3)
ld.exe: 7_SEG.cpp.o:(.literal.startup._GLOBAL__sub_I_settings+0x40): undefined reference to vtable for Watchy7SEG
Build failed for project '7_SEG'

output attached

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #26 - Feb 18th, 2025 at 8:22am
Print Post  
actually my code was based on the same sample and it compiles
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #27 - Feb 18th, 2025 at 8:47am
Print Post  
Thanks for the logs, we will continue to investigate this.

I have the same 7SEG example loaded in Visual Micro, and it compiles OK for me currently but we will work through any differences.

Quote:
actually my code was based on the same sample and it compiles

Sorry, just to be clear, the sample compiles but your code does not in Visual Micro?

Either way if your own project compiles in the Arduino IDE, it should compile the same in Visual Micro.
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #28 - Feb 18th, 2025 at 8:57am
Print Post  
Simon@Visual Micro wrote on Feb 18th, 2025 at 8:47am:
Sorry, just to be clear, the sample compiles but your code does not in Visual Micro?


no, my code compiles, sample - not

but my code is based on that sample
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #29 - Feb 18th, 2025 at 9:00am
Print Post  
Simon@Visual Micro wrote on Feb 18th, 2025 at 8:47am:
I have the same 7SEG example loaded in Visual Micro, and it compiles OK for me currently but we will work through any differences.


the difference is that I copied example out of the initial folder to another place
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #30 - Feb 18th, 2025 at 9:09am
Print Post  
Quote:
the difference is that I copied example out of the initial folder to another place

That should not be an issue, my example is also a copy which has been placed in the Documents\Arduino\My Examples folder.

I'll update as soon as I understand the differences causing the example not to compile.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #31 - Feb 19th, 2025 at 2:53pm
Print Post  
Reviewing the logs, it seems that in the vMicro example the Watchy_7SEG.cpp file is not being compiled, and therefore not linked either (which it is in the Arduino IDE).

I suspect this is a due bug which has been recently fixed when opening an Existing Arduino Project (so in your Solution Explorer View the Watchy_7SEG.cpp file is not shown).  Updating your Visual Micro installation from our Downloads Page will fix this for future projects.

If you click vMicro > Ensure All Files In Project, this should add all files into the Solution Explorer View.

Then recompiling should then work as expected.
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #32 - Feb 21st, 2025 at 10:26pm
Print Post  
So I added the sources manually 

Project compiles

In serial debug mode it writes the messages but the connection disappears within about 3 seconds so it even does not write all the messages while continuing to execute code, like I hear the buzz but do not have the messages about it because connection already out.

So it sleeps, then on button press it activates the USB connection only for short time. If VS connects to it then it gets activation reason 0 and so decides to reset, draws the deal and during this process it writes some messages to serial.

Then I compiled in hardware debug mode. The compile output is attached. So no more messages to serial. Again it wakes up on button press and makes USB connection for short time.

If I press "Attach to process" then I get the message box 

Unable to start debugging. Unexpected GDB output from command "-exec-run". Don't know how to run. Try "help target".

also in output

=thread-group-added,id="i1"
Reading symbols from .elf...
+echo vMicro: Hardware Debugging
vMicro: Hardware Debugging+echo vMicro: debug.tool = esps3usb\n
vMicro: debug.tool = esps3usb
+set mi-async on
=cmd-param-changed,param="mi-async",value="on"
+set remotetimeout 5
=cmd-param-changed,param="remotetimeout",value="5"
+set logging file _DebugGDB.log
=cmd-param-changed,param="logging p32s3\\Debug/7_SEG.ino_DebugGDB.log"
+set logging overwrite on
=cmd-param-changed,param="logging overwrite",value="on"
+set logging off
+set logging on
+echo vMicro: Initializing remote target...\n
vMicro: Initializing remote target...
+echo Running Setup Actions\n
Running Setup Actions
+target extended-remote | " -d2 -c "gdb_port pipe; telnet_port disabled" -c "adapter_khz 5000" -l no_DebugOpenOCD.log}" -s ts/" -c "set ESP_FLASH_SIZE 0" -f ts/interface/../board/esp32s3-builtin.cfg" -c "set ESP32_RTOS none" -c "init; reset halt"
=cmd-param-changed,param="pagination",value="off"
The program '' has exited with code 42 (0x2a).

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #33 - Feb 24th, 2025 at 4:06pm
Print Post  
Thanks for the update and detail.

We have updated the OpenOCD Version for the ESP32S3 USB Debugging due to a bug in OpenOCD, can you amend the board.txt entries to match the updated ESP32S3 USB Debugging page, and try the Hardware debugging again once amended?
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #34 - yesterday at 8:51am
Print Post  
Simon@Visual Micro wrote on Feb 24th, 2025 at 4:06pm:
Thanks for the update and detail.

We have updated the OpenOCD Version for the ESP32S3 USB Debugging due to a bug in OpenOCD, can you amend the board.txt entries to match the updated ESP32S3 USB Debugging page, and try the Hardware debugging again once amended?
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx


deep search started 18:58   Cheesy

uploaded 19:15 

I walk in the Watchy menu, during this time it is active and 
connected by USB, I press "Attach to process" and get 

Unable to start debugging. Unexpected GDB output from command "-exec-run". Don't know how to run.  Try "help target".

output

=thread-group-added,id="i1"
Reading symbols from .elf...
+echo vMicro: Hardware Debugging
vMicro: Hardware Debugging+echo vMicro: debug.tool = esps3usb\n
vMicro: debug.tool = esps3usb
+set mi-async on
=cmd-param-changed,param="mi-async",value="on"
+set remotetimeout 5
=cmd-param-changed,param="remotetimeout",value="5"
+set logging file _DebugGDB.log
=cmd-param-changed,param="logging p32s3\\Debug/7_SEG.ino_DebugGDB.log"
+set logging overwrite on
=cmd-param-changed,param="logging overwrite",value="on"
+set logging off
+set logging on
+echo vMicro: Initializing remote target...\n
vMicro: Initializing remote target...
+echo Running Setup Actions\n
Running Setup Actions
+target extended-remote | " -d2 -c "gdb_port pipe; telnet_port disabled" -c "adapter_khz 5000" -l no_DebugOpenOCD.log}" -s ts/" -c "set ESP_FLASH_SIZE 0" -f ts/interface/../board/esp32s3-builtin.cfg" -c "set ESP32_RTOS none" -c "init; reset halt"
=cmd-param-changed,param="pagination",value="off"
The program '' has exited with code 42 (0x2a).



  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint