• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

STMicroelectronics Provides Full STM32 Support for Microsoft Visual Studio Code

Joined
May 30, 2015
Messages
1,951 (0.56/day)
Location
Seattle, WA
STMicroelectronics, a global semiconductor leader serving customers across the spectrum of electronics applications, has announced tool extensions that bring the advantages of Microsoft Visual Studio Code (VS Code) to STM32 microcontrollers. VS Code is a popular Integrated Development Environment (IDE), acclaimed for its ease of use and flexible features such as IntelliSense that simplifies and accelerates code editing. Access to the STM32 ecosystem, from within VS Code, now makes these features available to even more embedded developers of the wide STM32 community. It also lets developers accustomed to working on high-level and consumer applications easily create embedded solutions that are power-efficient, compact, and economical.

"Connecting VS Code with our STM32 ecosystem makes the power of the industry-leading STM32 family of microcontrollers more accessible than ever," said Daniel Colonna, Marketing Director Microcontrollers, STMicroelectronics. "Communities for whom VS Code is the preferred environment, including high-level software developers, academics, and enthusiasts and makers, can now choose to make their ideas real using STM32 MCUs without leaving their preferred development environment."




"Through our deep collaboration with STMicroelectronics we have been able to provide capabilities that allow STM32 projects to be used in Visual Studio Code," said Marc Goodner, Principal Product Manager, Microsoft. "This provides an excellent solution for existing STM32 embedded developers while expanding the reach of the STM32 platform to the millions of developers already using Visual Studio Code."

The new support extends the selection of tools available to all STM32 developers, including hardware integrators and mass-market customers that typically choose from commercial tools or ST's free Eclipse-based STM32CubeIDE environment. VS Code and the STM32 VS Code Extension are available free of charge.

Further technical information
Following integration with the STM32 ecosystem, VS Code now lets developers edit, build, program, run, and debug STM32CubeIDE projects. These include projects generated with STM32CubeMX for STM32CubeIDE, projects delivered within firmware packages, and existing projects compatible with STM32CubeIDE.

All key elements of the STM32Cube ecosystem are available within the VS Code IDE, including STM32 Developer Zone, STM32 GitHub repository, the STM32CubeMX tool for project initialization and analysis, and the ST-MCU-Finder device-selection assistant.

View at TechPowerUp Main Site | Source
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
STM32 is one of the most popular hobby ARM microcontrollers, with miniature Cortex M0+ all the way to M7, and everything in between, there's a chip in the STM32 that's appropriate for pretty much everyone's project.

I hear that VS Code is also pretty awesome, a Microsoft sponsored Notepad++ sorta speak.
 

TheLostSwede

News Editor
Joined
Nov 11, 2004
Messages
17,864 (2.43/day)
Location
Sweden
System Name Overlord Mk MLI
Processor AMD Ryzen 7 7800X3D
Motherboard Gigabyte X670E Aorus Master
Cooling Noctua NH-D15 SE with offsets
Memory 32GB Team T-Create Expert DDR5 6000 MHz @ CL30-34-34-68
Video Card(s) Gainward GeForce RTX 4080 Phantom GS
Storage 1TB Solidigm P44 Pro, 2 TB Corsair MP600 Pro, 2TB Kingston KC3000
Display(s) Acer XV272K LVbmiipruzx 4K@160Hz
Case Fractal Design Torrent Compact
Audio Device(s) Corsair Virtuoso SE
Power Supply be quiet! Pure Power 12 M 850 W
Mouse Logitech G502 Lightspeed
Keyboard Corsair K70 Max
Software Windows 10 Pro
Benchmark Scores https://valid.x86.fr/yfsd9w
STM32 is one of the most popular hobby ARM microcontrollers, with miniature Cortex M0+ all the way to M7, and everything in between, there's a chip in the STM32 that's appropriate for pretty much everyone's project.
They just launched M33 parts and they have some Coretex-A7 parts as well, for a very reasonable price.
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
They just launched M33 parts and they have some Coretex-A7 parts as well, for a very reasonable price.

I'll play with Cortex-M33 eventually. There's a ton of those floating around everywhere (I personally prefer Atmel, so I'd use SAM L10, which is M23 but close enough). The low-power specs of M23 and M33 are pretty outstanding, at least according to spec-sheets.
 

TheLostSwede

News Editor
Joined
Nov 11, 2004
Messages
17,864 (2.43/day)
Location
Sweden
System Name Overlord Mk MLI
Processor AMD Ryzen 7 7800X3D
Motherboard Gigabyte X670E Aorus Master
Cooling Noctua NH-D15 SE with offsets
Memory 32GB Team T-Create Expert DDR5 6000 MHz @ CL30-34-34-68
Video Card(s) Gainward GeForce RTX 4080 Phantom GS
Storage 1TB Solidigm P44 Pro, 2 TB Corsair MP600 Pro, 2TB Kingston KC3000
Display(s) Acer XV272K LVbmiipruzx 4K@160Hz
Case Fractal Design Torrent Compact
Audio Device(s) Corsair Virtuoso SE
Power Supply be quiet! Pure Power 12 M 850 W
Mouse Logitech G502 Lightspeed
Keyboard Corsair K70 Max
Software Windows 10 Pro
Benchmark Scores https://valid.x86.fr/yfsd9w
I'll play with Cortex-M33 eventually. There's a ton of those floating around everywhere (I personally prefer Atmel, so I'd use SAM L10, which is M23 but close enough). The low-power specs of M23 and M33 are pretty outstanding, at least according to spec-sheets.
Atmel is part of Microchip now and they've jacked up the pricing on all old Atmel parts, so you might want to consider a move to ST or even Silicon Labs or Nordic Semi.
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
Atmel is part of Microchip now and they've jacked up the pricing on all old Atmel parts, so you might want to consider a move to ST or even Silicon Labs or Nordic Semi.

"New Atmel" parts, like AVR DD, are extremely competitive. In price, in features, and in simplicity.

Checkout the AVR16DD14: 10-bit DAC, 12-bit differential ADC, Zero-crossing detector, dual-power supply (PortC operates on a 2nd supply, effectively serving as an integrated level shifter), 79-cents in large volumes. 24MHz even at 1.8V (a huge improvement over old chips), etc. etc.

AVR32DB28 (DB-series) has everything DD has, but also 3x Rail-to-Rail OpAmps onboard. Though more expensive, 3x on-board Op-Amps absolutely make it worthwhile.

-------------

SAM L10, Atmel's new low-power 32-bit Cortex-M23, remains compatible with my Atmel programmer, and is competitive in today's market.
 

TheLostSwede

News Editor
Joined
Nov 11, 2004
Messages
17,864 (2.43/day)
Location
Sweden
System Name Overlord Mk MLI
Processor AMD Ryzen 7 7800X3D
Motherboard Gigabyte X670E Aorus Master
Cooling Noctua NH-D15 SE with offsets
Memory 32GB Team T-Create Expert DDR5 6000 MHz @ CL30-34-34-68
Video Card(s) Gainward GeForce RTX 4080 Phantom GS
Storage 1TB Solidigm P44 Pro, 2 TB Corsair MP600 Pro, 2TB Kingston KC3000
Display(s) Acer XV272K LVbmiipruzx 4K@160Hz
Case Fractal Design Torrent Compact
Audio Device(s) Corsair Virtuoso SE
Power Supply be quiet! Pure Power 12 M 850 W
Mouse Logitech G502 Lightspeed
Keyboard Corsair K70 Max
Software Windows 10 Pro
Benchmark Scores https://valid.x86.fr/yfsd9w
"New Atmel" parts, like AVR DD, are extremely competitive. In price, in features, and in simplicity.

Checkout the AVR16DD14: 10-bit DAC, 12-bit differential ADC, Zero-crossing detector, dual-power supply (PortC operates on a 2nd supply, effectively serving as an integrated level shifter), 79-cents in large volumes. 24MHz even at 1.8V (a huge improvement over old chips), etc. etc.

AVR32DB28 (DB-series) has everything DD has, but also 3x Rail-to-Rail OpAmps onboard. Though more expensive, 3x on-board Op-Amps absolutely make it worthwhile.

-------------

SAM L10, Atmel's new low-power 32-bit Cortex-M23, remains compatible with my Atmel programmer, and is competitive in today's market.
Not really the kind of products I have any experience with.
I've mostly been involved with "higher end" stuff, like Cortex-A type Arm based chips, but some 32-bit MCU projects as well.
Microchip isn't competitive in that space and for example, their PCIe switches are crazy expensive, but obviously targetting the server market.
I guess it depends what one need, but Microchip isn't known as the cheap alternative they once were.
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
Not really the kind of products I have any experience with.
I've mostly been involved with "higher end" stuff, like Cortex-A type Arm based chips, but some 32-bit MCU projects as well.
Microchip isn't competitive in that space and for example, their PCIe switches are crazy expensive, but obviously targetting the server market.
I guess it depends what one need, but Microchip isn't known as the cheap alternative they once were.

I'm just at the hobby-scale. Arguably, I shouldn't be focused on $1 or $2 chips, and instead be using $5 to $10 chips like the Cortex-A... but there's something fascinating to me about this low-end side of the market.

The main benefit of Microchip, here in the hobby-scale, is their continued support of PDIPs / Through Hole. Even these latest AVR DD chips have 28-pin PDIPs available.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
27,162 (3.83/day)
Location
Alabama
System Name RogueOne
Processor Xeon W9-3495x
Motherboard ASUS w790E Sage SE
Cooling SilverStone XE360-4677
Memory 128gb Gskill Zeta R5 DDR5 RDIMMs
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 2TB WD SN850X | 2x 8TB GAMMIX S70
Display(s) 49" Philips Evnia OLED (49M2C8900)
Case Thermaltake Core P3 Pro Snow
Audio Device(s) Moondrop S8's on schitt Gunnr
Power Supply Seasonic Prime TX-1600
Mouse Razer Viper mini signature edition (mercury white)
Keyboard Monsgeek M3 Lavender, Moondrop Luna lights
VR HMD Quest 3
Software Windows 11 Pro Workstation
Benchmark Scores I dont have time for that.
Nice this is great news! I hope others follow suit.

I hear that VS Code is also pretty awesome, a Microsoft sponsored Notepad++ sorta speak.

More like Visual Studio light. Have you never tried it? I like it much more than Eclipse or IntelliJ

If you are familiar with Visual Studio then its super easy to adapt.
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
More like Visual Studio light. Have you never tried it? I like it much more than Eclipse or IntelliJ

If you are familiar with Visual Studio then its super easy to adapt.

I have tried it, though I'm not very good with Visual Studio. I'm more of a VIM / Linux command line guy.

I use VS Community when programming in Windows. Some of my coworkers use VS Code and I've been impressed with what I've seen, though I'll probably stick with VS Community for any of my personal projects (and Atmel / Microchip Studio, which are VS based).
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
27,162 (3.83/day)
Location
Alabama
System Name RogueOne
Processor Xeon W9-3495x
Motherboard ASUS w790E Sage SE
Cooling SilverStone XE360-4677
Memory 128gb Gskill Zeta R5 DDR5 RDIMMs
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 2TB WD SN850X | 2x 8TB GAMMIX S70
Display(s) 49" Philips Evnia OLED (49M2C8900)
Case Thermaltake Core P3 Pro Snow
Audio Device(s) Moondrop S8's on schitt Gunnr
Power Supply Seasonic Prime TX-1600
Mouse Razer Viper mini signature edition (mercury white)
Keyboard Monsgeek M3 Lavender, Moondrop Luna lights
VR HMD Quest 3
Software Windows 11 Pro Workstation
Benchmark Scores I dont have time for that.
I have tried it, though I'm not very good with Visual Studio. I'm more of a VIM / Linux command line guy.

I use VS Community when programming in Windows. Some of my coworkers use VS Code and I've been impressed with what I've seen, though I'll probably stick with VS Community for any of my personal projects (and Atmel / Microchip Studio, which are VS based).

I understand that lol, and in all fairness a running joke I am part of is that our preferred IDE is notepad.
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
Going the "other way" in this discussion... I recognize that STMicro is more popular these days than PIC / Atmel chips. In particular, STM32 line is all ARM Cortex, and ARM is the current hotness (and lulz at anyone who thinks that RISC-V is relevant in this space).

I've considered trying STM32 because the STM32F4 has embedded OpAmps, an exceptionally useful feature for mixed-signal processing that's common in my hobby-projects. Alas, AVR DB gave 3x rail-to-rail OpAmps to the AVR line of chips, and I'm able to just stick with Atmel (now Microchip) for a while longer. And Microchip has probably seen the writing on the wall, and has a slew of SAM / ARM chips available to anyone who wants ARM Cortex-M0+, or M23, or even M4 or M7 chips.

Not quite as big as the STM32 line going up to A processors, but still more than adequate for any of my personal plans in the reasonable future.

---------

So I guess STM32 is a good choice for people getting started today. But I got enough Atmel equipment in my homelab that it just makes more sense for me to stick with Atmel. Besides, 5V compatibility to work with all my stray 2N7000 MOSFETs laying around :)

5V compatibility is old-school, but useful given what through-hole MOSFETs can do. (seemingly stuck in 90s era, or earlier technology). Modern MOSFETs with SMD are definitely better, but require a new board design. Through hole tech is just easier IMO for home labs, for now anyway. Even if their specs are admittingly worse.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
27,162 (3.83/day)
Location
Alabama
System Name RogueOne
Processor Xeon W9-3495x
Motherboard ASUS w790E Sage SE
Cooling SilverStone XE360-4677
Memory 128gb Gskill Zeta R5 DDR5 RDIMMs
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 2TB WD SN850X | 2x 8TB GAMMIX S70
Display(s) 49" Philips Evnia OLED (49M2C8900)
Case Thermaltake Core P3 Pro Snow
Audio Device(s) Moondrop S8's on schitt Gunnr
Power Supply Seasonic Prime TX-1600
Mouse Razer Viper mini signature edition (mercury white)
Keyboard Monsgeek M3 Lavender, Moondrop Luna lights
VR HMD Quest 3
Software Windows 11 Pro Workstation
Benchmark Scores I dont have time for that.
Going the "other way" in this discussion... I recognize that STMicro is more popular these days than PIC / Atmel chips. In particular, STM32 line is all ARM Cortex, and ARM is the current hotness (and lulz at anyone who thinks that RISC-V is relevant in this space).

I've considered trying STM32 because the STM32F4 has embedded OpAmps, an exceptionally useful feature for mixed-signal processing that's common in my hobby-projects. Alas, AVR DB gave 3x rail-to-rail OpAmps to the AVR line of chips, and I'm able to just stick with Atmel (now Microchip) for a while longer. And Microchip has probably seen the writing on the wall, and has a slew of SAM / ARM chips available to anyone who wants ARM Cortex-M0+, or M23, or even M4 or M7 chips.

Not quite as big as the STM32 line going up to A processors, but still more than adequate for any of my personal plans in the reasonable future.

---------

So I guess STM32 is a good choice for people getting started today. But I got enough Atmel equipment in my homelab that it just makes more sense for me to stick with Atmel. Besides, 5V compatibility to work with all my stray 2N7000 MOSFETs laying around :)

5V compatibility is old-school, but useful given what through-hole MOSFETs can do. (seemingly stuck in 90s era, or earlier technology). Modern MOSFETs with SMD are definitely better, but require a new board design. Through hole tech is just easier IMO for home labs, for now anyway. Even if their specs are admittingly worse.

Do you have any examples of projects that use any of these controllers?
 
Joined
Apr 24, 2020
Messages
2,741 (1.60/day)
Do you have any examples of projects that use any of these controllers?

My current project (pun intended), is a current monitor for currents smaller than 1mA.

At the core is an instrumentation amplifier MCP6N11, which I'll configure (with resistors) to be ~212x multiplier over a 4.7 Ohm resistor. It feeds into an AVR32DD28 PDIP (12-bit ADC), and possibly an oscilloscope pin (After the 4.7 ohm x 212 multiplier, the voltage is multiplied by 1000x evenly). So a 1mA current will show up as a 1V swing. A 0.5mA current will show up as a 0.5V swing.

Now that 0.5mA (and other small currents) are at a "visible" level of amplification, I can just use the AVR DD's 12-bit ADC to read that voltage accurately. The on-board clock is guaranteed to be +/- 1% (pretty bad, all else considered, but fine for this project). A bit of calibration / a few trimmer pots in the right spots and I should be able to get 4-digits (0.01% accuracy) on this sensor.

The output will be on a standard LED 7-segment display. Each segment requires 20mA to drive (5V over 220 resistor == around the 20mA or less). The worst case power-usage is 8x segments, or 160 mA total. The 160mA cannot be sunk by the AVR32DD28, so I'm using the 2N7000 NMOS to sink that current instead.

Each of the 20mA can be driven from the AVR32DD28, as each pin has +/- 50mA (!!!) drive strength.

-----------

A standard op-amp is a poor fit for what I'm doing, so I had to go out and buy a specific instrumentation amplifier (MCP6N11). But in many situations, a normal OpAmp could be used instead (at which point I'd use the AVR DB chip that comes with a free op-amp).
 
Last edited:
Joined
Aug 20, 2007
Messages
21,584 (3.40/day)
System Name Pioneer
Processor Ryzen R9 9950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage Intel 5800X Optane 800GB boot, +2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches + PBT DS keycaps
Software Gentoo Linux x64 / Windows 11 Enterprise IoT 2024
I hear that VS Code is also pretty awesome, a Microsoft sponsored Notepad++ sorta speak.
I still just use their full Community Edition IDE. Not missing anything, am I?
 
Top