Forum Replies Created
-
AuthorPosts
-
arrow201Participant
Hi,
Thank you for looking into this. Getting interesting…
So, I first tried to compiled in VisualGDB ,and it continued to fail as expected. I then I followed the board’s tutorial. Going to this page will prompt you to download the zip file, so I don’t know if you’d want to do that, if so, the tutorial is in the “C” folder: http://freenove.com/fnk0099
– installed Arduino IDE (V2.3.4 as of this writing)
– point to the board URL: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
– get package ESP32 3.1.1 (same as selected in VisualGDB)
– select board ESP32S3 Dev Module (same as selected in VisualGDB)
– compiled and ran the Blink LED project …works!Now, I wanted to see if this affected my VisualGDB project in any way …and it did!
I loaded up the project and voila it now compiles, uploads and runs!!! That’s great but why??? I’ve never touch the “Arduino Settings”, the paths have always been at the default.You know better than me, but appears VisualGDB puts the ESP32 package off of …\Documents\ArduinoData path (yesterdays timestamp) …though the “Download Package Directories” has “$(DOCUMENTS_ROOT)/ArduinoData;$(LOCALAPPDATA)/Arduino15” …it puts it there too? ….ok …im confused.
Arduino IDE puts the package off of …\AppData\Local\Arduino15\ (has todays timestamp) (did it just overwrite VisualGDB?)Now the packages\esp32\hardware\esp32\3.1.1 appear to be the same for both (Arduino15, ArduinoData paths), however the packages\esp32\tools looks complete for the Arduino IDE but not for VisualGDB install. ie. the Arduino IDE packages\esp32\tools\esp-rv32 has a number of folders where the VisualGDB esp-rv32 folder off of ArduinoData is empty.
Thanks!
arrow201ParticipantThank you for the reply. I thought I’d do a removal of all Arduino and Arduino ESP32 libraries and do a clean start. I started first with my UNO board to make sure that basic Arduino worked ok, and yes, it downloaded the required Arduino libraries, built and ran ok. Before building a ESP32 project, I downloaded/installed the Arduino ESP32 library, which is at v3.1.1. This doesn’t install correctly, giving me errors as per enclosed jpg.
Plus, when I compile, I now get this error:
FileNotFoundError: [Errno 2] No such file or directory: ‘{runtime.tools.esp32-arduino-libs.path}\\esp32s3\\bin\\bootloader_qio_80m.elf’
Looking in the ArduinoData folder I don’t see any references to the ESP32 ‘C’ and ‘S’ series at all(?) Even though I can select them if I create a blink LED project.Checking if any source files need uploading…
C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -build-path C:\Src\ESP32_S3\ArduinoProject1\Output\ESP32S3_Dev_Module\Debug -unoptimize=sketch -code-model-file C:\Src\ESP32_S3\ArduinoProject1\.visualgdb\VisualGDBCache\ArduinoProject1-Debug-ESP32S3_Dev_Module\CodeModel.json -jobs 1 -hardware C:\Users\Arrow\Documents/ArduinoData/packages -tools C:\Users\Arrow\Documents/ArduinoData/packages -libraries C:\Users\Arrow\Documents/Arduino/Libraries -prefs=runtime.tools.esp-x32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-x32\2405 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\xtensa-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\riscv32-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esptool_py.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esptool_py\4.9.dev3 -prefs=runtime.tools.openocd-esp32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20241016 -prefs=runtime.tools.ctags.path=C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\tools-builder\ctags\5.8-arduino11 sketches/ArduinoProject1.ino
===info ||| Progress {0} ||| [0.22]
…
===info ||| Progress {0} ||| [9.38]
Traceback (most recent call last):
File “esptool.py”, line 37, in <module>
File “esptool\__init__.py”, line 1325, in _main
File “esptool\__init__.py”, line 1071, in main
File “esptool\cmds.py”, line 1075, in elf2image
File “esptool\bin_image.py”, line 1209, in __init__
FileNotFoundError: [Errno 2] No such file or directory: ‘{runtime.tools.esp32-arduino-libs.path}\\esp32s3\\bin\\bootloader_qio_80m.elf’
[2676] Failed to execute script ‘esptool’ due to unhandled exception!
Saved the code model to C:\Src\ESP32_S3\ArduinoProject1\.visualgdb\VisualGDBCache\ArduinoProject1-Debug-ESP32S3_Dev_Module\BuildCommandLines.txtAttachments:
You must be logged in to view attached files.arrow201ParticipantThank you for the support! 🙂
arrow201ParticipantHi,
The popup only occurs once going into “Manage VisualGDB Packages” the first time after the VS update. I’ll try to summarize:
– updating to 17.2.? (sorry I don’t remember what sub version I had) never showed the popup
– 17.2.? to 17.3.0 popped the msg once, this was 2 days ago. I restarted VS and the popup went away, so I thought some weird glitch and didn’t report it. Subsequent selection of “Manage VisualGDB Packages” no longer popped up the msg
– 17.3.0 to 17.3.1 popped up once again, but subsequent selection of “Manage VisualGDB Packages” does not pop up the msgThanks
arrow201ParticipantOk, I restarted my PC again, and going into “Manage VisualGDB Packages” no longer gives me the popup err. Appears something with the last two Visual Studio updates (v17.3.0 and v17.3.1) gives this error the first time going into “Manage VisualGDB Packages” but doesn’t appear after that.
arrow201ParticipantThe manual update worked fine. Great product, great support.
Thank you!
arrow201ParticipantThank you very much for the update! 🙂
May 12, 2021 at 13:04 in reply to: The best method to create STM32CubeMX based large project in VisualGDB? #30485arrow201ParticipantI would never build any sort of serious project with VGDB/STM32CubeMX. I use STM32CubeMX for configuring only. The code STM32CubeMX produces is messy, IMHO, and I can’t stand the /* USER CODE BEGIN /ENDs all over the place.
I use objects for maintainability where I can. I’ll first create a STM32CubeMX stand alone project(not VGDB) for just configuring the hardware. I then create my VGDB project and create a, ie. CHardware(.h/.cpp) class, where I’ll copy/paste the hardware configuration from STM32CubeMX into. Everything I need from STM32CubeMX, except the IRQ routines, will go in this class. I keep the handles global and pass a reference to my hardware methods, ie:
bool CHardware::InitUsart1(UART_HandleTypeDef &huart1)True, a bit of pain if making many changes in STM32CubeMX to copy/paste into your project. Maybe there’s better way, but this seems to be a pretty good trade off to write clean/maintainable code while also using the advantages of STM32CubeMX.
arrow201ParticipantI think what you want is here: https://visualgdb.com/tutorials/arm/mbed/mbed-cli/
Just before 3., click on “the official Git distribution” to start.arrow201ParticipantI was going to ask this question at some point. I thought maybe the guide lines were left out purposely to avoid clutter, since there’s already much info already. If you really must see the guide lines: Project Properties | Intellisense Settings, change the Intellisense Engine to “Regular VC++”, but of course you lose all the Clang goodies.
arrow201ParticipantIn q2-1.png, it shows “Minimal (no semihosting)”, shouldn’t “Support semihosting” instead be selected? There’s good info here: https://visualgdb.com/tutorials/arm/semihosting/
arrow201ParticipantThis is a win for VisualGDB, as from what I’ve read, it’s currently a pain to setup the Pico for proper C/C++ development. I’m also looking to evaluate the Pico at some point and as expected, variants have already started to popup(i.e. “Tiny 2040”). Curious of the debug options that will be available (Seggear J-link?, Picoprobe?). Thanks.
arrow201ParticipantHi,
I’m going to be evaluating this product soon and want to be clear with the licensing. So, if I’m reading the above correctly, if I purchase, for example, at version “VisualGDB-5.5.1.1111.msi” and there are updates during the year, I can use these updates for “free” during the year from the time of purchase. Just before the year is up, let’s say the version is now at “VisualGDB-5.5.2.2222.msi”. After the year is up, are you saying if I want to keep using it without renewing, I have to uninstall the updates and go back to version “VisualGDB-5.5.1.1111.msi”? If that’s the case, I can certainly see why the above users are confused, to me, reading the “Buy” page gives the impression that you can continue to use the product with the last update before the year was up.
-
AuthorPosts