Author Topic: STM32L4 beginner-What's the easiest dev environment to start with?  (Read 1225 times)

0 Members and 1 Guest are viewing this topic.

Offline djsbTopic starter

  • Super Contributor
  • ***
  • Posts: 1122
  • Country: gb
I'm thinking of buying a STM32L4 Discovery kit for the IoT node (B-L475E-IOT01A) as I've found a series of tutorials for digital signal processing that start in the June 2025 edition of Practical Electronics (a UK/Australian electronics magazine) which I want to try out later. This uses the STM32CubeIDE which I have NO experience of. I have read on this forum that the IDE is problematic.

I would like to start using this board with the traditional blinky LED/button/hello world example. I have the new second edition of the Beginning STM32 book by Warren Gay, which uses the blue pill (STM32F103C8T6). This book uses libopencm3 and GCC, which I also have NOT used before. I haven't started using the book yet and have only read the first chapter.

I want to start off as simply as possible, and maybe the book is the best way to start. And then maybe move onto the STM32L4 and the STM32CubeIDE. I have had a VERY quick look at PlatformIO, but I'm not sure. I don't know if I can use the STM32L4 discovery board with libopencm3 or GCC? I have attached the datasheet for the dev board. Any guidance welcome. Thanks.
David
Hertfordshire, UK
Retired University Electronics Technician, London, PIC16/18, CCS PCM C, Arduino UNO, NANO,ESP32, KiCad V10+, Altium Designer 21.4.1, Alibre Design Expert 28 & FreeCAD beginner. LPKF S103,S62 Operator, Electronics instructor. Credited KiCad French to English translator.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 6464
  • Country: nz
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #1 on: August 10, 2025, 05:01:52 pm »
The easiest way would be using the Arduino IDE. Just add the following URL in Preferences / Board Manager

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

I see they even went to the trouble of including Arduino Uno-compatible connectors on the board!
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 3854
  • Country: gb
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #2 on: August 10, 2025, 05:07:24 pm »
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 6093
  • Country: gb
  • Doing electronics since the 1960s...
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #3 on: August 10, 2025, 08:40:21 pm »
Cube IDE is fine once you go up the learning curve of setting it up. Then, when set up for your CPU etc, it is very easy to use.

Unfortunately we are 40 years past the days of the Z80 when life was so simple :) Everything has a significant learning curve now, and the debates are basically around the various learning curves.

And none of the tools are "perfect" even when set up and working.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 6464
  • Country: nz
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #4 on: August 10, 2025, 11:36:25 pm »
Unfortunately we are 40 years past the days of the Z80 when life was so simple :) Everything has a significant learning curve now, and the debates are basically around the various learning curves.

My repeated experience with new boards with a variety of ISAs is that if they have an onboard USB/UART/JTAG chip (or USB built in to the MCU) then the Arduino set up process goes:

- plug it in

- go to preferences / board manager add the URL of the board (family) support package

- select the board type from the appropriate menu

- select new / project / examples / blinky

- hit "Run".

This has worked across at least AVR, Arm (e.g. Teensy 4), XTensa (ESP32), and RISC-V (HiFive1) ISAs and taken less than five minutes. Maybe more like two minutes with fast internet for the toolchain to download.

If you need to connect an external USB/JTAG/SWD adapter to the board properly using Dupont jumper wires then this of course makes it take a little longer.

Quote
And none of the tools are "perfect" even when set up and working.

"Perfect" is not required in tools and women.

And the Z80 will have required figuring out how to deal with a freaking EPROM burner, UV eraser, getting a chip out and back in of a non-ZIF socket without destroying pins, and mucking about manually with hex files.
« Last Edit: August 10, 2025, 11:38:43 pm by brucehoult »
 

Offline John Coloccia

  • Super Contributor
  • ***
  • Posts: 1620
  • Country: us
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #5 on: August 10, 2025, 11:46:54 pm »
It's hard to argue with Arduino for getting started. Even engineers should stand on the shoulders of giants. Plenty of time to get lost in the weeds later.
« Last Edit: August 10, 2025, 11:50:45 pm by John Coloccia »
 

Offline djsbTopic starter

  • Super Contributor
  • ***
  • Posts: 1122
  • Country: gb
Re: STM32L4 beginner-What's the easiest dev environment to start with?
« Reply #6 on: August 11, 2025, 04:05:50 am »
Thanks everyone for your replies. Just bought the dev board on mouser. Total cost £48.35 inc VAT and free postage. I'll post here about any customs duties I may have to pay if the board is imported into the UK. I'll set up a new topic if I have anything noteworthy or interesting to talk about my experiences with it.
David
Hertfordshire, UK
Retired University Electronics Technician, London, PIC16/18, CCS PCM C, Arduino UNO, NANO,ESP32, KiCad V10+, Altium Designer 21.4.1, Alibre Design Expert 28 & FreeCAD beginner. LPKF S103,S62 Operator, Electronics instructor. Credited KiCad French to English translator.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->