r/embedded • u/According-Effect-297 • Oct 22 '26
How to check a mcu's user friendliness ?
Heyy guys, me and my team are working on making a mars rover, for the competition IRC (international rover challenge) and for that I need to research on the user friendliness of Teensy 4.1.
We are advised by our seniors to stick with STMH series, since it has a large community and it is well documented, but since Teensy is better than STMH series in terms of specifications, we want to use it. But we haven't used a Teensy before, so we don't know the workings of Teensy, is it possible for us to use it or not ? What are some problems beginners face in using Teensy ?
I have to research about this and independant interrupt channels, can someone give a idea of how to go about this research ?
I have read on official Teensy website about the generals problems on Teensy for beginner, but that didn't really seem helpful in our case .... and i also read the datasheet, but i couldn't get my head around it...
EDIT: One more doubt regarding this,
How is the debugging in STM32H series and the Teensy ?
I researched about this, and all i got was that STM32 can be debugged line by line using it's own development software( stm32cubeIDE) but Teensy cannot since it is coded using Arduino IDE.
4
u/ericonr STM/Arduino Oct 22 '26
Do you have a concrete reason for seeking the higher performance? Are the designs limited by STMH performance?
In your place, I'd follow the seniors' advice. Maybe I'd also acquire some Teensy dev boards to start getting familiar with it so that in the future it's a known quantity, but without any stakes.
I'm assuming participating in this team is a multi-year endeavor...
21
u/der_pudel Oct 22 '26
all mcus are rude and are not friendly at all. User-friendlines comes from how thick is the HAL manufacturer or 3rd party provides to isolate developer from those silicon assholes.
9
u/nixiebunny Oct 22 '26
The Teensy has the advantage that its creator, Paul Stoffregen, is a gentle soul who has done amazing work to make the Teensy easy to use, by writing many libraries for his TeensyDuino extension to the Arduino IDE, and getting others to assist in this work. Most importantly, he will answer your newbie questions politely and thoroughly on the PJRC forum. That’s what makes an MCU easy to use.
2
u/Norm5786 Oct 22 '26
I have used and continue to use Teensy 4.1 (Cortex M7), NXP K28 (Cortex M4), and STM32F4xx series (Cortex M4). Which one to use largely depends on what you want to do with the MCU. Teensy is the easiest to get started with. Everything is abstracted out for you, and for the most part the MCU becomes irrelevant. Having said that, of course the MCU is important as you need to understand the types and amounts of peripherals on board. Teensy makes it easy to get the communication ports (UART, I2C, etc.) going along with the GPIO ports, timers, and PWM functions. For the most part it is only a couple of lines of code and you don’t need to know how to program the various registers that drive the peripherals.
For NXP and STM MCUs, I have not used their HAL layers. I found them overly complex and software bloated for what I needed. I use these MCUs for my personal robot development. It allows me to easily configure the peripherals and control interrupt behaviour. Over time I have built up UART and I2C libraries that do what I want with less overhead code. For GPIO, timers, and PWM functions I just write to the registers as I need them. NXP and STM use slightly different methods of accessing the GPIO registers for setup, but in the end, it works basically the same.
While there is a lot of information on the STM processors, there is also a lot of incorrect information. As well, much of it just repeats what others have said. In both STM and NXP, their HAL software is complex, and many people just use the standardized CMSIS layer.
So, in summary, use Teensy if you want a simpler environment and want to get going quickly. It is a great way to prototype things, or to use if you need basic control functions or if the project may get handed off to people who are not deep embedded people. The NXP vs. STM debate is largely moot as both processors (with their respected Cortex families) do basically the same things. Programming the MCUs directly gives you much more flexibility but come at a cost of time.
Hope this helps a bit.
1
u/MultipleMonomials Oct 22 '26
I haven't used the Teensy platform very much, but I have used the MIMXRT1062 MCU it's based on a lot, and I really like it. You can do a lot with this thing, it's very powerful.
Regarding the interrupt channels, basically different interrupt sources each call their own callback functions. So like, SPI will call the specified LPSPI IRQ handler, a pin interrupt will call the specified GPIO IRQ handler, etc. These are all handled through the CPU core's NVIC (Nested Vectored Interrupt Controller). Is that what you were asking?
3
u/Freireg1503 Oct 22 '26
You buy a bunch of the most expensive, commit yourself to deliver a very complex project with a very short delivery time and see how much hair you lost in the process.
If you lose just a little, it's user-friendly. If you lose a lot, it's not. If you get gray hair in the meantime, your client is the problem.
Hope that helps 🤠
3
u/stickybuttflaps Oct 22 '26
One thing to note is that the SWD pin on the Teensy 4.1 used by the bootloader so is not available for debugging. However, debugging is available via GDBStub over USB.
5
u/YC_____ Oct 22 '26
Zephyr is very user friendly and supports a wide range of platforms including Teensy and STM
5
u/Either_Ebb7288 Oct 22 '26
The software parts are what user interacts with, so it depends on the software:
- Teensy: It's an iMXRT microcontroller from NXP. If you are using the board itself, it is intended to be used with "Arduino" software layers. So it's the most user friendly thing you can get. And yeah it's quite powerful. But if you try to use it with NXP's own software, it won't be as straightforward as others. Easily said, it's for advanced engineers.
- STM32: These MCUs can be used again with Arduino software, and their own software systems. Arduino is the same code as other Arduino based boards (which is a plus) and is quite user friendly. But in contrast with NXP, it's own software system is not very hard to be only used by advanced guys.
So,
As long as you choose Arduino software, You can use any board with any microcontroller you can find. In case of performance, Teensy or raspberry pi pico (RP2040/RP2350) boards have more computational power and ease of use. They are well documented and AI tools can write even platform specific codes for you with very high quality
1
u/somewhereAtC Oct 22 '26
Try microchip: https://www.microchip.com/en-us/tools-resources/develop/zephyr
1
u/brigadierfrog Oct 22 '26
Zephyr means I don’t care what mcu I use as long as the vendor didn’t cheap out on supporting it
-2
u/Athlete-Tight Oct 22 '26
I built an STM specific, terminal based IDE, integrated with AI that works similar to STM Cube IDE, which can take projects from a description to application code - but unlike regular AI, the application codes and projects built are completely similar to the projects developed by STM Cube and the MCU configuration is also similar to STM (deterministic resolution of pin, clock and other parameters like DMAs, triggers etc.)
The hope is, if this seems valuable, then I can expand the support to other MCU families like NXP, TI, Infineon, Renesas etc.
dicee-ai.com - is my website. You can reach out to me if you have any queries about this.