2025-11-06 12:13 AM
Hi team,
I am able to successfully use pre-build binary from this https://github.com/STMicroelectronics/STM32DDRFW-UTIL.git repo for DDR4 with stm32mp257f-evk . but the generated artifacts with stm32 header by manually compiling in stm32cubeide I am facing the issue, After flashing I am not able to enter any command in the serial monitor window.
I followed the build procedure explained in the repo's README.md
As you can see in attached image only this DDR> prompt line is printed in serial port but not accepting any input from user , when I try to enter some command it reinitialized stdin to the same DDR> prompt line.
Thank you in advance...!!
hoping for a quick reply.
2025-11-06 2:24 AM
Hi,
maybe just a local echo issue.
Did you have set the DDR_INTERACTIVE ?
Did you try blindly typing 'help' to see if any output ?
Regards.
2025-11-07 1:27 AM - edited 2025-11-07 1:48 AM
@PatrickF
Thanks for the reply..
I have setted DDR_INTERACTIVE as per REAMME.md
If I am using serial_putchar() I can able to flush data to my promt line but If I am using printf statements i can't getting any terminal output , Its getting stuck there .
I have created my own _write() function , __io_putchar() and tried using __attribute__(( weak )) this function for multiple definitions to make my function as priority.
I am suspecting printf() is not flushing data and getting stuck there it self. Can you help on this ?
Regards,
Vijay
2025-11-07 7:55 AM
Hi,
code should compile without any modifications. Please clarify you used the default github code as first intent.
Did you ensure the specific aarch64 prerequisites has been made ?
https://github.com/STMicroelectronics/STM32DDRFW-UTIL?tab=readme-ov-file#222-add-local-aarch64-toolchain
Did you tried to debug the code with CubeIDE ?
https://github.com/STMicroelectronics/STM32DDRFW-UTIL?tab=readme-ov-file#224-launch-project
Regards.