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 876 times)
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Watchy v3 does nothing after upload
Jan 28th, 2025 at 9:28pm
Print Post  
I use Visual Studio 2019 with Visual Micro,

after upload nothing happens, the screen does not change,
no reaction to buttons
I reset it by buttons
but after manual reset there is no connection to PC
so I cannot debug

I attached the output file.
  

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 #1 - Jan 29th, 2025 at 10:00am
Print Post  
Thanks for the report.

Can you try disabling the Serial Debugger (set vMicro > Debugger > Debug: Off), or change to the Release Build Configuration, and Build and Upload again?

Quote:
but after manual reset there is no connection to PC

Do you mean the COM Port will not connect, or that it no longer appears?

Also can you confirm if the source for this project is available online for us to test with on a non-Watchy device?
« Last Edit: Jan 29th, 2025 at 10:45am by Simon@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 #2 - Jan 29th, 2025 at 9:29pm
Print Post  
Simon@Visual Micro wrote on Jan 29th, 2025 at 10:00am:
change to the Release Build Configuration, and Build and Upload again


it is the same, I attached the output

Simon@Visual Micro wrote on Jan 29th, 2025 at 10:00am:
Do you mean the COM Port will not connect, or that it no longer appears?


Connection disappears after I reset by buttons.

  

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 #3 - Jan 30th, 2025 at 10:26am
Print Post  
Thanks for the detail and logs.

One option which appears non-default is "USB CDC On Boot" Board Option to "Disabled", and build and upload the code again.

From the user guide it seems the board has to be manually put into bootloader mode using the buttons (to make the COM port appear), and then manually reset to run the firmware.
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #4 - Feb 1st, 2025 at 6:46am
Print Post  
Simon@Visual Micro wrote on Jan 30th, 2025 at 10:26am:
From the user guide it seems the board has to be manually put into bootloader mode using the buttons (to make the COM port appear), and then manually reset to run the firmware.


Yes, really:
"After upload is complete, reset Watchy to run the new uploaded firmware"

Then how should I get into whatever debugging or logging mode ? 
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #5 - Feb 1st, 2025 at 4:48pm
Print Post  
I was referring to their instructions, which from their GitHub may differ depending on the Hardware version of the product you have.

Quote:

How to reset Watchy
1) Press and hold the top 2 buttons (Back & Up) for more than 4 seconds, then release the Up button first, before releasing the Back button
2) Watchy should now reset, wait a few seconds for it to boot up and refresh the screen


If it doesn't show anything after this, there may be some output in the Serial Monitor if there is an exception in the code, which can be decoded by pressing the [!] button at the bottom.

For debugging further in this scenario the Hardware debugging would be needed, which requires the v3 Hardware.  The ESP32S3 can be debugged via the USB-JTAG Interface as shown below:
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx

Can you confirm if the problem present in the Arduino IDE when uploading the same code?
« Last Edit: Feb 1st, 2025 at 6:08pm by Simon@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 #6 - Feb 2nd, 2025 at 3:50am
Print Post  
Simon@Visual Micro wrote on Feb 1st, 2025 at 4:48pm:
If it doesn't show anything after this


After reset connection disappears and nothing happens
But if I press the lower right button connection appears for short time
If I start monitor during this time that I have some logging like this:

Opening port
Port open
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
01:17:34:214 -> VMDPR_
Watchy7SEG::drawWatchFace

then connection is lost

seems like on connection it reboots, draws face, writes to port and then disconnects.

This happens if I have the "USB CDC On Boot" Enabled.

If it is disabled I cannot achieve whatever logging

Also I cannot make the same in Arduino IDE

Simon@Visual Micro wrote on Feb 1st, 2025 at 4:48pm:
Hardware debugging would be needed


I do not see the necessary pins in their schema, I attached it.

I have found only IO19 and GND

  

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 #7 - Feb 3rd, 2025 at 9:45am
Print Post  
Quote:
Also I cannot make the same in Arduino IDE

Apologies, do you mean it all works as expected in Arduino IDE?

Quote:
I do not see the necessary pins in their schema, I attached it.

Thanks, this looks different from the version 3 schematic listed in the official repository, and from your initial log you do have an ESP32-S3 chip.
https://watchy.sqfmi.com/docs/hardware

In this case you should not need to wire the USB interface manually, as the pins are already connected to the USB port available on the device.

If you install the Zadig tool and connect the watch to the PC via its usual USB Connection:
https://www.visualmicro.com/page/Zadig-Driver-Installation-Guide.aspx

Then after clicking Options > List All Devices, you can check the WinUSB Driver is installed for Interface2 of the chip as shown in the attached image.

Once that is correct you will be able to follow the rest of the ESP32S3 Page below to setup the Hardware Debugging:
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx
  

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 #8 - Feb 5th, 2025 at 3:39pm
Print Post  
Have you tried using the official Watchy Library:
https://github.com/sqfmi/Watchy/releases

Or a simple project which displays images on the screen:
https://watchy.sqfmi.com/docs/examples
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #9 - Feb 7th, 2025 at 11:35am
Print Post  
Also it may be worth downgrading the ESP32 Board package in use to 2.0.14 as it has issues with some libraries for Eink displays after this.
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #10 - Feb 16th, 2025 at 7:59am
Print Post  
Simon@Visual Micro wrote on Feb 3rd, 2025 at 9:45am:
If you install the Zadig tool and connect the watch to the PC via its usual USB Connection


The problem is that Watchy keeps connection only for about 3 seconds. This happens after I press a button.

During this time Zadig shows that driver at interface 2 as on the picture.

Of course it is impossible to debug at such connection that lasts 3 seconds.

People at their Discord say me that it is related to the deep sleep mode but they have no idea how to switch it off. I tried to add return at the beginning of deepSleep function, in this case the connection is stable but Watchy does not react to the buttons at all.
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #11 - Feb 16th, 2025 at 8:46am
Print Post  
If I try to press Debug -> Attach to process

I get the message

Unable to start debugging. Launch options string provided by the project system is invalid. This string is null or empty.
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #12 - Feb 16th, 2025 at 8:47am
Print Post  
So what happens

it sleeps

I press button

USB connection appears

I press "Connect"

it resets

I see some log messages

it goes to sleep
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #13 - Feb 16th, 2025 at 8:50am
Print Post  
What is it about:

This currenly requires a Local board.txt to function at its best

?

Where is that board.txt and whether I need to do anything with it ?
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #14 - Feb 16th, 2025 at 11:11am
Print Post  
"The vMicro > Debugger > Compiler Optimization MUST be set to "No Optimization" for this board to function with the debugger"

Without optimization I have permanent connection with non-stop rebooting


Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40377bcc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
09:36:50:824 -> load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
09:36:51:304 -> Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed). 


Core  0 register dump:
PC      : 0x4204a3f2  PS      : 0x00060034  A0      : 0x803775f8  A1      : 0x3fc9a4e0   
A2      : 0x3fc9a4ef  A3      : 0x00000001  A4      : 0x00060021  A5      : 0x3fcf4220   
A6      : 0x4037727c  A7      : 0x3fc9a4e0  A8      : 0x80375550  A9      : 0x00000020   
A10     : 0x4004e4c0  A11     : 0x4004e4c0  A12     : 0x3fcf4220  A13     : 0x3fcf4200   
A14     : 0x3c1b0000  A15     : 0x00000008  SAR     : 0x0000000e  EXCCAUSE: 0x00000007   
EXCVADDR: 0x00000000  LBEG    : 0x40376504  LEND    : 0x40376518  LCOUNT  : 0x00000000   


Backtrace: 0x4204a3ef:0x3fc9a4e0 0x403775f5:0x3fc9a510 0x40382fa4:0x3fc9a530 0x4038193f:0x3fc9a550 0x4037a1b0:0x3fc9a570 0x40379fd5:0x3fc9a590 0x400559dd:0x3fcf41d0 0x4038493e:0x3fcf41e0 0x40377285:0x3fcf4200 0x4004e673:0x3fcf4220 0x4004ea11:0x3fcf4250 0x40376659:0x3fcf4280 0x403766d6:0x3fcf42c0 0x42056dcd:0x3fcf42f0 0x4205598e:0x3fcf4310 0x42055f79:0x3fcf4340 0x4204f25f:0x3fcf43a0 0x4205027b:0x3fcf43d0 0x42138acb:0x3fcf4400




ELF file SHA256: b6ed7fc67376739d

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Watchy v3 does nothing after upload
Reply #15 - Feb 17th, 2025 at 1:10pm
Print Post  
Tip: When you receive a stack trace error like the one posted, you can click the [!] button at the bottom of the Serial Monitor to decode the error and show the methods/files which led to it in the output window. Clicking these will take you to the relevant code.  This may be useful for when your board restarts, 

There are also reason codes within the output when the board resets which explain why it has done so:
e.g. rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Espressif Documentation: https://docs.espressif.com/projects/esptool/en/latest/esp32s3/advanced-topics/bo...
Quote:
USB connection appears
I press "Connect"
it resets


This is related to the DTR/RTS signals which can be altered at the bottom of the Serial Monitor. If you disable DTR it should no longer reset the board when connecting the Serial Monitor (this setting is per-session, so needs to be unset again after reloading Visual Studio).

Quote:
Where is that board.txt and whether I need to do anything with it ?

The Local board.txt can be added to the project from vMicro > Add Code > Add Local Board.txt.  Then the entries specified on the page can be added in and saved.  They will take effect the next time the debugging session is started from Debug > Attach to Process (if the code has already been uploaded), or Debug > Start (this will build and upload the code and then attach the debugger).

Quote:
"The vMicro > Debugger > Compiler Optimization MUST be set to "No Optimization" for this board to function with the debugger"

This has been the case in the past, however in this scenario with so many libraries involved it should work with just "Default Optimization".



The previous build log didn't include the Watchy library, which I expected to be included for this device.

So we can assist more easily can you ZIP your project (minus the .vs folder) and email it to us (info (at) visualmicro.com) with a link to this thread so we can review?

Also please include the latest buiid output, and any output shown in the Serial Monitor in full as text files?
  
Back to top
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #16 - Feb 18th, 2025 at 6:17am
Print Post  
Simon@Visual Micro wrote on Feb 17th, 2025 at 1:10pm:
So we can assist more easily can you ZIP your project (minus the .vs folder) and email it to us (info (at) visualmicro.com) with a link to this thread so we can review?


I did not want to send you my code.

I took Watchy sample, 
successfully compiled and uploaded it from Arduino
it works
in VS 2019 I clicked "open existing"
and your system gave me this message

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
Debug build failed for project '7_SEG'





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


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #17 - Feb 18th, 2025 at 6:22am
Print Post  
now I just clicked "upload" again and it again started that idiotic deep search for libraries that is expected to last 15 minutes
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #18 - Feb 18th, 2025 at 6:23am
Print Post  
What the f is that deep search and why it does it again even when the code was not changed ?
  
Back to top
 
IP Logged
 
Aleksey again
Junior Member
**
Offline


Posts: 22
Joined: Jan 27th, 2025
Re: Watchy v3 does nothing after upload
Reply #19 - Feb 18th, 2025 at 6:33am
Print Post  
Now you can check whether that deep search went right way  Cheesy
« Last Edit: Feb 18th, 2025 at 7:18am by Simon@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint