2022-03-27 08:45 AM
I ran system bootloader, I can perform the bootloader process using the STM32CubeProgrammer software via USART. But what I want is to run the bootloader software over TCP or UDP using the USART protocol. Because my UART2 line is connected to a TCP converter.
I wrote a piece of code using Python, but it's very slow and disconnects after a while. Is it possible to enable STM32CubeProgrammer to communicate with UART protocol over TCP?
Softwareally, I used TCP to Uart converters, but STM32CubeRogrammer is getting a time delay error.
My system is as follows;
Solved! Go to Solution.
2022-03-28 11:30 AM
I can't get any response, it doesn't give an error. I agree with you, I'm trying to understand why.
2022-03-28 11:43 AM
Thanks for advice,
I used https://www.serial-over-ethernet.com/ but it is very slow for STM32CubeProgrammer. I will research and write it here.
2022-03-28 10:59 PM
I was try NetBurner Virtual Comm Port Ver 2.4, however, this gave a time delay error (Timeout) like my python script.
I need more long time for waiting for acknowledgement.
How can I increase the acknowledgement wait time?
@Houda GHABRI @Imen DAHMEN
My System
2022-03-29 02:58 AM
I've been able to walk devices in via realterm, so it should be pretty tolerant of some latency.
2022-03-29 03:05 AM
Yes, but STM32CubeProgrammer is not tolerant, how can I increase the tolerance?
2022-03-30 02:10 AM
I propose to test this, hope it resolves the issue :
STM32_Programmer_CLI.exe -c port=COM36 -tm 100000
-------------------------------------------------------------------
STM32CubeProgrammer v2.10.0-RC2
-------------------------------------------------------------------
Warning: Timeout is forced to 100000 ms
STM32_Programmer_CLI.exe -c port=COM36 -tm 100000
Serial Port COM36 is successfully opened.
Can you please test it and tell me if it is OK ?
Houda
2022-03-30 05:32 AM
Hi @Houda GHABRI
I'm sorry for the late reply,
Timeout error persistsi, this method is not ok
I'm working over TCP;
I do decrease the Bauderate value over, there is a timeout error (Over TCP)
İf direct connect to system bootloader (STM32H7 UART-2)
2022-03-30 08:02 AM
STM32CubeProgrammer is designed to operate in an environment where the host and device are close and ideally directly connected. Clearly not expected to work with such latency.
So CubeProgrammer cannot help in this case, what I can suggest is to try to use STM32 Flash loader demonstrator tool available here ,may be it is more tolerant about latency.
Hope this can helps you,
Houda
2022-03-30 11:25 AM
Hi @Houda GHABRI ,
Can't you fix this problem by releasing an update for STM32CubeProgrammer? This is a very basic request.There may be many people in need and we are a loyal ST user. Please fix the problem with an update, I will be very grateful. ST is a very crowded and successful company.
2022-03-30 11:31 AM
STM32 Flash loader is not good for my request, I need STM32CubeProgrammer.