STM32 simulator: Blue Pill, Black Pill and Nucleo in your browser

Argynix Lab runs STM32 projects in your browser, two ways: an Arduino sketch built with the STM32 core, or an STM32 HAL project with main.c laid out as STM32CubeIDE generates it, user code blocks included.

HAL_Init, the clock setup, GPIO and EXTI interrupts, UART, I2C, the ADC, the RTC, RNG and CRC are simulated, with timers, DMA, SPI and the DAC in part. The STM32 boards run on the Lab's virtual board, labelled Lab virtual on screen.

STM32 simulator: Argynix Lab

What STM32CubeIDE code can use

Simulated works against the parts on the bench; partly runs with the limit noted; not simulated stops the build and says so.

All libraries
LibraryWhat it doesIn the Lab
HAL core
The 1 ms tick from SysTick, as its registers set it.Simulated
RCC
The clock tree from HSE, HSI or MSI through the PLL: SystemCoreClock, the bus and timer clocks.Simulated
Cortex and NVIC
An interrupt handler runs only when its NVIC line is on.Simulated
IWDG
Resets the board when it is not refreshed in time.Simulated
PWR
Sleep and stop wait for the next interrupt.Partly
FLASH
Unlock and lock.Partly
GPIO and EXTI
Pins in each family’s registers; EXTI lines through the project’s EXTIx_IRQHandler.Simulated
UART
Blocking, _IT, _DMA and ReceiveToIdle, with their callbacks.Simulated
I2C
The master side, blocking, _IT and _DMA, to the bench’s I2C parts.Simulated
ADC
Polled, _IT and _DMA conversions, with scans of several channels.Simulated
TIM
Update interrupts, and PWM on the pin set as the channel’s alternate function.Partly
DAC
A level on PA4 or PA5.Partly
DMA
Transfers and their callbacks.Partly
SPI
The calls return at once.Partly
RTC
Time, date and the backup registers.Simulated
RNG and CRC
Random numbers, and CRC-32 as the STM32 computes it.Simulated
CMSIS registers
GPIO, RCC (a clock started by hand counts), USART, SysTick and the reset request.Partly
USB, CAN, SDIO, Ethernet
Not simulated: their calls do not link.Not simulated

Questions

Can I run an STM32CubeIDE project in the browser?

Yes. Start an STM32CubeIDE project in the Lab and main.c opens as CubeIDE lays it out, with the HAL; paste your own code into the user code blocks and add more .c and .h files.

Which STM32 boards are there?

The Blue Pill, the Black Pill and the Nucleo F401RE, F446RE and L476RG, each with its chip and clock on its board page.

Is Argynix Lab free?

Yes. Every board, part and example is free to use, without an account; your projects stay in your browser. A free ARGYNIX account keeps up to 10 projects in the cloud. The Pro and Team plans add more projects and saved versions, private sharing and priority builds.

Can I flash a real board from the browser?

Yes. With Chrome or Edge on a computer, the Lab writes the program to a real Arduino, ESP32, STM32 or Raspberry Pi Pico over USB (Web Serial), or saves a UF2 file for the Pico.

Is Argynix Lab an alternative to Wokwi or Tinkercad Circuits?

Yes, it is in the same family: it simulates microcontroller projects in the browser. What the Lab brings: Arduino, ESP-IDF, STM32 HAL and MicroPython projects in one place, exact AVR and RP2040 chips, a 3D bench, flashing a real board from the browser, and a running project that sends readings to ARGYNIX Cloud.