Electronics > Microcontrollers

How to program/debug MCU/DSP in VSCode

(1/4) > >>


I would like to ask if you program MCU/DSP in VSCode? I've tried to run NXP microcontrollers there (I followed: https://mcuoneclipse.com/2021/05/01/visual-studio-code-for-c-c-with-arm-cortex-m-part-1/) and  everything works without problems. It uses GCC with cmake/make to build the program, and debug via J-link.

I wanted to replicate this procedure on a DSP from TI (specifically the C2000 series, TMS320Fxxx), but I haven't managed to make it work - specifically, I don't know how to configure the "launch.json" correctly. For now, I'm doing the build with a command/script from their CCS IDE ("C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake -k", "-j", "8", "all", "  -O) although I'd rather do the same process as it was with NXP above (GCC, cmake).

TI uses very different approach against NXP/STM. As a debug probe, C2000 boards have XDS100, probably openocd which supports this debug probe. However, I have no idea how to set everything correctly in launch.json that debugging can subsequently be done in VSCode without problems.

Thanks for any help.

I don't do anything in VSCode. I can't imagine why anyone would want to.


--- Quote from: artag on September 30, 2023, 05:49:25 pm ---I don't do anything in VSCode. I can't imagine why anyone would want to.

--- End quote ---

I do lots of programming in VS Code and prefer it to any other IDE I use.  I do C# and web dev stuff in Visual Studio, but all Python and C++ in VS Code.  It's super lightweight, customizable, fast, nicely integrated with Github, etc. - what's not to like?!?

@Rinnake have you tried using the PlatformIO extension for VSCode?  It is more geared towards dev boards (vs bare metal stuff) but it can and is used successfully by folks for bare metal/custom stuff too.

No, platformio.io is missing DSPs from TI. I've just realized, that when I will create and build a project in CCS, it creates "makefile" which informs about the compiler and linker which should be used during the building. So now I know how to build the project in VSCode, but I do not know, how to debug it - I mean, how to correctly set "launch.json" for debugging/communicating with the target DSP.


--- Quote from: meshtron on September 30, 2023, 08:53:38 pm ---what's not to like?!?

--- End quote ---

Dark mode, for a start. Yes, I do know how to fix that.
2nd biggest dislike is the overcrowded tiled interface. Can I get rid of that and have floating windows ? It amazes me that we all use flexible overlapping windowed interfaces and then some applications stuff everything into a box with unusably tiny subboxes for every subtask..


[0] Message Index

[#] Next page

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod