2023-08-14 05:56 AM
Hello everyone,
I've been diving into the world of ESP32s and Arduinos for approximately 2 years now. My current project focuses on GNSS tracking combined with radio transmission. Initially, I was inclined towards using the ESP32-S3, however, as the project evolved, I find myself inclined to seek a more robust solution with a more powerful MCU, hence my interest in the STM family.
Here's where I'm hitting a roadblock:
Given the significant time and effort I've already invested in developing code for the ESP32, I'm hesitant about starting from scratch. So, my question is:
Any insights or experiences you could share would be immensely helpful. Looking forward to your feedback!
Solved! Go to Solution.
2023-08-14 09:17 AM
ESP32-S3 is a dual-core XTensa LX7 MCU, capable of running at 240 MHz.
> a more robust solution with a more powerful MCU, hence my interest in the STM family?
i dont think so. Two 32bit risc CPUs at 240Mhz - not easy to beat. :)
ad 1. not seamless at all. like jumping into a cold pool.
ad 2. no, you can adapt a lib to use, but this depends on your skills.
2023-08-14 06:18 AM
For those who worked only with Arduino software, the transition is not very easy. STM32 usually needs the programmer to understand the hardware as well.
There are 2 Arduino cores for STM32 (C++) (but the hardware may not be fully supported by the core yet). I found it better to use C language with the STM32CubeIDE, it's easier to find examples and help.
To be more compatible with ESP32-S3, see STM32WB series.
To make it easier, read all the documents (each model has specific documents too), even if you can't understand everything (to at least get an idea of where the information is) and there are also many videos on YouTube.
While Arduino users generally use the serial port to debug the program, STM32 has more advanced tools:
2023-08-14 06:24 AM
2023-08-14 09:17 AM
ESP32-S3 is a dual-core XTensa LX7 MCU, capable of running at 240 MHz.
> a more robust solution with a more powerful MCU, hence my interest in the STM family?
i dont think so. Two 32bit risc CPUs at 240Mhz - not easy to beat. :)
ad 1. not seamless at all. like jumping into a cold pool.
ad 2. no, you can adapt a lib to use, but this depends on your skills.
2023-08-14 09:27 AM - edited 2023-08-14 09:27 AM
.
2023-08-14 11:51 AM
Might just be me, but aren't the STM32H5 and H7 kinda beefier than the ESP32? From fixing gadgets, I've seen a bunch of stuff with ST MCUs. Makes me think they might be the go-to if I ever think about selling what I'm working on. Seems like getting into STM32 stuff could be cool. Thanks for the tips, everyone!
2023-08-14 12:43 PM
I concur with everyone else on this post... It's really not something you should be looking to do, it will take a very long time and can be quite pain staking given the number of years you've already put into the project.
I'm an expert in with the ESP32 (not so much with the STM32) but in any case there might be something that you can do, to keep your current solution workable.
Can you detail more about what you're trying to achieve and what the actual bottleneck is? GPS tracking + BLE / WiFi transmission shouldn't be a problem at all for the Xtensa 240 Mhz CPU's, especially considering it's dual core on the S3.
2023-08-14 01:10 PM
To get the full performance of ESP32 it is more suitable to use ESP-IDF than Arduino IDE.
2023-08-14 01:25 PM - edited 2023-08-14 01:28 PM
Yep, Ive given up on re-doing this project on STM32, still think it is a good idea to learning about it though.
About my project:
my design comprises two ESP32-S3 units designated as 'Master' and 'Slave'.
Master Unit's Responsibilities:
Slave Unit's Responsibilities:
2023-08-15 02:08 PM
I'm afraid that, in the long run, you'll be needing to port your code to a new processor anyway.
Espressif has already made comments of shifting from their XTensa cores to RISC-V.
When I was working with 8266s, and ESP32s I found that their version of FreeRTOS had diverged from the distribution a lot and was not being back ported, their code was very fragile (AT command blob), and their support seemed to have moved on from a single 3rd year CS student in Bangalore (for real) to someone in Shanghai that had to save face at every opportunity. How do you report bugs when the company rep must not present the company as ever doing anything, in any way, wrong?
Anyway, good luck with your ESP projects.