Forum Replies Created
-
AuthorPosts
-
supportKeymaster
Hi,
Thanks for the project, we have reproduced the problem. It happens because the original ARM toolchain has a bug that does not set the FPU type correctly for Cortex-M4 devices.
The toolchain that comes with VisualGDB fixes this; the original ARM one does not. You can work around this by adding -mfpu=fpv4-sp-d16 to your LDFLAGS, however the standard libraries that come with the toolchain are still compiled with the wrong FPU setting, so they may cause random crashes if your program is using hardware FP.
We would recommend switching to the toolchain shipped with VisualGDB to avoid this problem in the first place.
supportKeymasterHi,
It usually requires understanding which files belong to which component and including only the relevant ones. That’s why it takes us some time to make usable wrappers around the SDK that include the necessary files automatically, sorry.
The only alternative to thoroughly looking through the sources and figuring out which ones are needed for what would be to wait a few months until we release an updated BSP.
supportKeymasterHi,
The latest BSP for the NXP LPC devices supports the LPC1769 MCU, however it does not come with any Smoothieboard-specific drivers or samples.
You should be able to build and debug a basic project though and then you can add any Smoothieboard-specific code manually. If you encounter any problems, feel free to let us know.
supportKeymasterHi,
Looks like your toolchain might not support hardware floating point properly. Please try using the ARM toolchain that comes with VisualGDB.
supportKeymasterHi,
You can easily add custom pre-build actions that will transfer any header files (or whole directories) to Raspberry Pi (see the Build Customization page of VisualGDB Project Properties). Then simply ensure that the relative paths to the directories where the headers end up are specified on your Build Settings page and you should be able to build the project successfully.
supportKeymasterHi,
VisualGDB actually recognizes and substitutes the normal environment variables with the $(Variable) syntax. Hence you can simply use the $(USERNAME) syntax to refer to the built-in Windows variable containing the current user name.
supportKeymasterOK, we’ve fixed this. Please update your Segger debug package to version 3.3. We have added a new more reliable live memory engine based on the feedback from Segger.
Note that it’s somewhat slower than the old one, so we have also added an option that allows switching between the old and the new one. Let us know if this solves the problem.
supportKeymasterHi,
VisualGDB does not automatically configure the Python IntelliSense to match your Raspberry Pi. However you can configure it fairly easily:
- Open Tools->Python Tools->Python Environments
- Find the default environment there
- Create a copy of your Python directory used by the default environment and copy the packages from Raspberry Pi to that copy so that they don’t interfere with your regular Python installation
- Edit the Python environment settings in VS to use the new Python directory
This should get IntelliSense to display the libraries copied from Raspberry Pi.
August 22, 2016 at 04:29 in reply to: VisualGDB with Windows 10 (Anniversary Update) Linux support #8899supportKeymasterWe are looking into that and will publish a tutorial on this once we get it to work reliably.
supportKeymasterHi,
Yes, it sometimes causes Make to simply hang. VisualGDB 5.2 will come with a separate MSBuild platform that will integrate the existing toolchains directly into the Visual Studio build system, so the multi-threaded build will be automatic and it won’t trigger the Make bug.
supportKeymasterHi,
Looks like you have a typo in the MCUDefinitionFile element:
<MCUDefinitionFile>\device\nRF52.xml</MCUDefinitionFile>
According to Windows path syntax, this actually means X:\device\nRF52.xml, where X: is the drive letter of the project directory. Please try changing it to this:
<MCUDefinitionFile>device\nRF52.xml</MCUDefinitionFile>
supportKeymasterHi,
We are planning to update our mbed package after we release VisualGDB 5.2 Beta 1. The current plan is to do this by the end of September.
August 21, 2016 at 04:38 in reply to: Any way to permanently disable the "Download Newlib Source" popup? #8894supportKeymasterHi,
Yes, you can disable this, although it will require some minor XML editing. Please try removing the ‘DownloadableSourcePackage’ elements from the toolchain.xml file in your toolchain directory.
supportKeymasterYes, we got all the necessary information from Segger and are expecting to release an update next week.
supportKeymasterFirst of all, could you try debugging your existing ELF file with the Quick Debug feature? If this does not work, could you please attach the contents of the Segger J-Link window and the GDB Session window (switch view to ‘All GDB interaction’ so that we could see the internally sent commands)? This should explain what is going on.
-
AuthorPosts