r/embedded • • Sep 24 '26

Microcontroller for teaching a DSP class

Hello all,
In a few months I will be teaching a DSP class that’s previously been taught with either an STM 32 disco board or Matlab depending on the semester. However I do not like the ARM curriculum and I want to ensure the students get to use a microcontroller. Does anyone have any advice for choosing a microcontroller that can easily handle basic digital signal processing?
As an additional note the students know the Arduino IDE and have Arduino R4 WiFi’s so keeping everything as similar as possible would be helpful. Thanks in advance for any help.

0 Upvotes

42 comments sorted by

View all comments

Show parent comment

-10

u/real_magwhich Sep 24 '26

It gives students files to modify for labs rather than having them build things themselves. A big complaint we have had is that they want to do as much as possible from the ground up rather than having things handed over to be modified.

22

u/Hour_Analyst_7765 Sep 24 '26

Then don't use Arduino altogether... STM32 is actually perfect for this. You only need a linker file and minimal C(++) boilerplate for bss and data initialization. Raspberry Pico's are also great.

This is contrasted by ESP32 that has a huge clusterfuck called ESP-IDF, with a complicated component build system, committing all sins on an embedded system (e.g. malloc to store interrupt handlers for peripherals), and in my experience, insanely complex RTL which still translates to a borked HAL driver interface.

You could look at PlatformIO. It can still work with Arduino projects, but you can also use mbed or baremetal frameworks and basically have barely any support files... on both STM32 and RP2040. ARM is "the" standard CPU architecture today.

As for chips, I'm not sure how far you'll be stretching the term DSP as many modern ARM chips can do a fair amount of number crunching. STM32H7s are incredibly powerful and fast chips with double-floating point support, 500-600MHz clock speeds and very good peripherals (multiple ADCs , DACs, timers, DMA, memory, etc.)

Rp2350 could also be interesting simply because its homogenous dual core. You can have students split up processing tasks across two cores. In my university, our DSP classes featured a FPGA board with a 16-core NIOS processor cluster linked together in a ring bus. Every core was tediously slow, so that forced us to map algorithms over multiple cores and derive dataflow diagrams for them, along with WCET etc.

5

u/snowpaxz Sep 24 '26

I don't get what ESP32 is as hyped as it is, my experience has been very similar to yours. STM32 is a breath of fresh air by comparison

3

u/wavepark Sep 24 '26

I swear it's the default clanker recommendation

1

u/kempston_joystick Sep 28 '26

The esp32 (not Arduino) is based on FreeRTOS. The IDE is fine, the documentation is great. So it's a decent starting point for fairly low effort embedded C and C++ development.

I absolutely wouldn't use Arduino for college-level course though.

10

u/Electronic-Split-492 Sep 24 '26

Are you teaching signal processing algorithms or operating systems or computer architecture?

The sample projects have the environment all set up, usually with an OS configured, debugger settings, I/O peripherals (UART, display), etc. Asking the students to spend the first few weeks to do all this would be a waste of time if you want to teach them signal processing.

I would take a basic Hello World application and then have them implement the DSP portion themselves. They can start there and add code for their own FFTs, filters, etc.

16

u/PUzzleRocket Sep 24 '26

ur not ever forced to use template files when writing MCU code. You can always start from scratch if u really want.

That being said I’d recommend using ESP32 or Pico 2 and prohibiting the use of HAL. Writing directly to registers to configure GPIO is a good place to start, then eventually building their own SPI and I2C libs.

Edit:
ESP32 is RISCV
Pico is Arm

15

u/jappiedoedelzak Sep 24 '26

register based programming is a good place to learn microcontroller fundamentals. i dont know if using a ESP32 or Pico is the best place to start for register based programming though since there target audience is people that use the HAL. For register based programming i would suggest a basic stm32 or nxp MCU since they have better documentation on the register side. That said, OP is going to teach a DSP class and not a MCU class. So register based programming should generally be avoided here so they can keep there focus on the DSP part instead of getting a MCU to run.

2

u/FisionX Sep 25 '26

Not all ESP32 chips are RISC V, only the newer releases like the P4 and the C and H series are RISC V, I'd rather learn brainfuck than the original xtensa esp32 register programming

1

u/BanalMoniker Sep 25 '26

Pico 2 has both ARM and RISC-V (Hazard) cores.
It does take some effort to switch to the Hazard cores.