Forum Replies Created
-
AuthorPosts
-
November 29, 2019 at 18:03 in reply to: Build RAM only application – does not work outside IDE #26659
support
KeymasterHi,
Depending on the SDK you are using, the VTOR might indeed not get set explicitly (not all device SDKs support this). Setting it manually from your code (guarded with #ifdef sram_layout) should fully fix the problem through.
support
KeymasterHi,
It looks like some VisualGDB-specific files got corrupt. Please try uninstalling VisualGDB via the Add/Remove Programs window and installing it back from scratch (it will preserve your setting and license information).
If this doesn’t help, please follow the steps on this page: http://visualgdb.com/support/loadfail/
support
KeymasterSorry, we were not able to reproduce the problem. We have tried creating a new project from scratch using the new toolchain and it worked.
Most likely, the issue you are experiencing is caused by incompatibility between the toolchain and a specific project, or some corrupt files. Please consider posting the logs on the Espressif forum to get further help on this.
support
KeymasterJust wanted to let you know that we have improved the BSP referencing logic in the following VisualGDB build: VisualGDB-5.5.2.3404.msi.
You can now use the VisualGDB Project Properties -> Embedded Project -> Shared Files -> Change button to switch between 2 modes of referencing a BSP:
- Using a global path shared between all projects
- Explicitly specifying the relative path to the BSP
Hope this helps. Let us know if you have any further suggestions/feedback.
support
KeymasterMost likely, you are still using different library/hardware directories between VisualGDB and Arduino IDE.
Please carefully examine both command lines with the latest settings and make sure that the -hardware, -tools and -libraries flags match. If not, please adjust the flags used by VisualGDB via VisualGDB Arduino Settings until those flags match.
support
KeymasterThis looks like a warning from the ESP-IDF that expects an earlier toolchain version. It should normally not affect the build.
Either way, we have just updated our toolchain to include the latest fixes to ESP-IDF 4.0, that should also eliminate this message. You can re-download it from http://gnutoolchains.com/esp32/
support
KeymasterThanks for the log files. It looks like the hardware directories and libraries used by VisualGDB vs. Arduino IDE are indeed different. Specifically, the following options are used by Arduino IDE, but not by VisualGDB:
-tools C:\Program Files (x86)\Arduino-1.8.9\hardware\tools\avr -tools C:\Program Files (x86)\Arduino-1.8.9\portable\packages -libraries C:\Users\Ian\Documents\Arduino\libraries
The following options are used by VisualGDB, but not by the Arduino IDE:
-hardware C:\Program Files (x86)\Arduino-1.8.9\portable\packages\STM32\hardware -hardware C:\Users\Ian\AppData\Local\Arduino15\packages -tools C:\Users\Ian\AppData\Local\Arduino15\packages -libraries C:\Program Files (x86)\Arduino-1.8.9\libraries -libraries C:\Program Files (x86)\Arduino-1.8.9\libraries\u8g2\ -libraries C:\Program Files (x86)\Arduino-1.8.9\libraries\STM32duino-bootloader-master\Arduino_STM32-Drivers
Also the STM32 tools used by the Arduino IDE vs. VisualGDB are different:
C:\Program Files (x86)\Arduino-1.8.9\portable\packages\stm32duino\tools\stm32tools\2019.10.9
vs
C:\Users\Ian\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\1.3.0
If looks like you have tried adding some of the missing directories from the Arduino IDE to the VisualGDB settings and ended up with an incompatible combination of packages.
In order to fix this, please try deleting the %LOCALAPPDATA%\VisualGDB\ArduinoSettings.xml file and the %LOCALAPPDATA%\Arduino15 directory and restarting Visual Studio. Then open VisualGDB Arduino Settings and set the following:
- Set the Arduino IDE directory
- Add $(ARDUINO_ROOT)/portable/packages (without the STM32\hardware part) to Hardware Directories.
Do not add any library or tool directories. If the project still doesn’t build afterwards, please check the command line used by VisualGDB again. Its -hardware, -tools and -libraries flags should match the ones used by the Arduino IDE. If not, use the VisualGDB Arduino Settings to adjust them until they fully match.
If this still doesn’t help, please share the updated build log and we will provide further troubleshooting instructions.
support
KeymasterHi,
Most likely, the Arduino IDE and VisualGDB are using different library directories, preventing VisualGDB from locating them. We can help you resolve this, however we would need additional information from you.
- Please capture the exact arduino-builder command line used by VisualGDB (it is shown in the build log after you build the project).
- Please try using Process Monitor to capture the command line used by Arduino IDE to build the sketch. (note that the IDE will launch arduino-builder.exe several times with shorter command lines before the actual build).
Once you capture both command lines, please share them here along with a screenshot of the VisualGDB’s Arduino Settings and the list of additional library directories defined in the project settings (if any) and we will help you replicate the build results from Arduino IDE with VisualGDB.
November 28, 2019 at 17:07 in reply to: Can't open Arduino project after manually editing boards.txt #26617support
KeymasterPlease try creating a new project from scratch. Please also update to VisualGDB-5.5.2.3403.msi. This version will download missing packages when you open the project, given that it was fully loaded before (won’t help for projects that were never loaded with the new build).
November 28, 2019 at 16:58 in reply to: Can't open Arduino project after manually editing boards.txt #26615support
KeymasterIt looks like you broke something in the platform files:
Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\avr\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
The easiest way to fix it would be to just delete the arduino\hardware\avr folder, restart VS, and let VisualGDB download all the necessary packages from scratch.
support
KeymasterThanks for pointing this out. Indeed, one of the recent VS2019 updates has changed the internal color encoding used by VS, triggering this bug.
We have fixed it in the v5.5 branch and also updated the v5.4 installer, in case you prefer fully tested stable releases.
support
KeymasterThanks for the suggestion. We have added a “File->Open->Open a Remote File via SSH” command to the following build: VisualGDB-5.5.2.3402.msi
Let us know if you have any feedback on the new feature.
support
KeymasterIndeed VisualGDB is not designed to parse a complex system of QMake-specific project files and extract the precise project structure from them, as that would basically require re-implementing most of the QMake logic inside VisualGDB. This is also the reason why we suggest using CMake for all new projects, as CMake can export the exact project structure in a machine-readable way, so VisualGDB gets a 100% precise IntelliSense setup and Solution Explorer view.
November 27, 2019 at 22:55 in reply to: Arduino – Add Existing item to Referenced Libraries does not work #26593support
KeymasterHi,
Most likely, you have not referenced the LwIP library required by the STM32Ethernet library. Please try this build: VisualGDB-5.5.2.3399.msi. It will warn about the missing dependencies when you try to reference the libraries.
We have also published a detailed tutorial on the library-related logic here: https://visualgdb.com/tutorials/arduino/libraries/. We used the STM32Ethernet library as an example, so the setup shown there should be very similar to yours.
support
KeymasterHi,
It looks like the project might contain some settings specific to the older toolchain and would hence require changes in order to be ported to the newer toolchain.
Based on the disassembly, the contents of the _init symbol is incorrect (filled with 0xFFs), so we would advise finding where it comes from using the .map file and disassembling the .a file that provides it to see if the file is corrupt, or doesn’t make sense with your core/FPU configuration. You can also try creating a new project from scratch, ensuring that the static constructors work in it, and then comparing the _init symbol contents, the .a files mentioned in the .map file and the initialization behavior.
As another alternative, you can always revert to the old toolchain via Tools->VisualGDB->Manage VisualGDB Packages.
It also looks like your technical support has expired a while ago, so please consider renewing it here (although we won’t be able to troubleshoot project-specific issues and can only advise the general direction in such cases).
-
AuthorPosts