cancel
Showing results for 
Search instead for 
Did you mean: 

Issue running STM32DDRFW-UTIL

Vijay_kumar
Associate II

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

Vijay_kumar_0-1762416665196.png

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.

 

3 REPLIES 3
PatrickF
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@PatrickF 
Thanks for the reply..
I have setted DDR_INTERACTIVE as per REAMME.md 

Vijay_kumar_0-1762506767479.png

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

 

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.