2024-11-15 08:22 PM
Hello,
I have designed several custom boards based on STM32 MCUs, And are running fine problem is i have installed these across the country over 50 locations and now it very costly to go to each location for for required software updates or to debug if any issue arises.
What i thought that i will put and ESP32 and a small display on the board. So that whenever i need to debug the system i will simply ask client to connect system to the available wi-fi and will get remote debug interface and do whatever i need to do.
I can use any STM32 MCU series, cost is not an issue.. But it has to be MCU not a windows or Linux system.
1. Is it possible to do that.
2. If yes.. then how to proceed? what would be the components required and system architecture?
2024-11-16 05:01 AM - edited 2024-11-16 05:03 AM
For inspiration... memfault.com
2024-11-16 07:48 AM - edited 2024-11-16 07:49 AM
Design your stuff so it's easy to debug, diagnose, and update. Have standard (ubiquitous) modes of connectivity, observation and control
Use RemotePC
>>But it has to be MCU not a windows or Linux system
Yeah, but WHY? You can make head-less systems.
Because of familiarity? You've got a lot of experience executing?
2024-11-16 09:34 AM
Completely lost your idea. You say use ESP32 and then STM32 ? You mean next STM32 ahead your target used as STLINK between MCU1 and ESP32 ? Why not use normal STLink ?
But any choiced , i mean remote gdb can run only on host OS, that you restrict. Then ?
For simple remote debuging your remote system require only SWD conector and STlink connected to some hw with run gdbserver and forward debug session port on router.
Your idea ESP conncted on remote place to wifi is security flaw and good network admin dont allow this.
2024-11-16 10:27 AM
I'm assuming ESP32 in terms on conjuring a WiFi link, but as you point out nobody wants your equipment on their corporate network, tunnelling out to the broader internet.
Not even photocopiers or food chillers. Documented examples of vunerabilities and data exfiltration.
Cellular modems, perhaps, but definitely a walled-garden with no connectivity on to corporate network internally.
I can find Chrome / Android / LINUX / Win10 boxen for under $99 that would make a good VNC platform. Probably a RPi Pico CMSIS-DAP for "debug" if you need to single-step your own code to understand how it behaves.
2024-11-19 10:59 PM
Actually the space limitation the pc installation is not possible
2024-11-19 11:09 PM
I don't have any pc installed nearby the device, even if there was, installing cubeide and copying entire code that can be copied easily, nobody wants that.
We can connect with mobile phone hotspot no need to include system admin. That's not a problem.
And that's too obvious if it was feasible to have pc running cubeide nearby, i wouldn't be asking this question.
2024-11-19 11:11 PM
doesn't full fil my requirement
2024-11-20 05:54 AM - edited 2024-11-20 05:56 AM
I dont say about IDE remotely. Remotely is running only gdb network server. For example c:\ST\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.6.0.202101291314\
simmilar on linux... then ESP32 is low, but Rpi ok
2024-11-20 07:17 AM
Okays will work on that