Skip to main content
Graduate II
September 27, 2023
Solved

STM32MP15 ECO 5.0.0 u-boot freeze stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 151

  • September 27, 2023
  • 18 replies
  • 16601 views

Freezes here at rcc setup

Looking for rcc@50000000
Looking for rcc@50000000
- result for rcc@50000000: rcc@50000000 (ret=0)
- result for rcc@50000000: rcc@50000000 (ret=0)
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 151 has

log attached.Any suggestion where to look, what to change, what to try  ?

if needed, advise what files needed ? using 2 different ECO system folders with SDK and source files. One using CubeMX generated DT's and then adjusted with additional entries and one using DT's based on the eCO provided 157a-DK1 DT files with some changes.  Exactly the same result. Discrete power, and discrete Crystal OSCs. Board runs ECO 1 fine.

Adding the log of the tree using the CubeMX generated DTS.

https://wiki.st.com/stm32mpu/wiki/Clock_overview

https://github.com/STMicroelectronics/linux/blob/v6.1-stm32mp/include/dt-bindings/clock/stm32mp1-clks.h

shows

#define UART4_K 151

This is the UART debug output  and 151 is the clock it crashes on. So perhaps the boot is continuing but there is no serial output.

Not that I expect reaction anymore from ST on this forum. Don't give me  kudo's for posting a solution. Need guidance how to find the cause. ... Sending out and SOS. message in a bottle...

 

 

 

    This topic has been closed for replies.
    Best answer by debugging

    Fixed the 151 error. Known bug in ECO code. :(

    18 replies

    debuggingAuthorAnswer
    Graduate II
    October 6, 2023

    Fixed the 151 error. Known bug in ECO code. :(

    Visitor II
    December 3, 2023

    I have the same problem on my platform with similar configuration. Can you describe more you solution? thanks

    Visitor II
    February 8, 2024

    Hi, I tried to post here yesterday but my post is not visible so I will try again, could be because i copied part of my boot log my have contained bad characters. So I try again.  

    I have the exact same problem as well, it stops u-boot uart at - DDR  (some times bad characters comes her so it seems the UART is abruptly stopped) and if I enable debugging it stops at enabling clock 151. One thing worth noting is that it seems to be the u-boot console that is not working, Linux boots just fine as long as i disable the debug log. I would like to acces the uboot console so I would be very interested in what this known bug in the ECO is, is there a place where these known bugs are written down???

    Visitor II
    February 16, 2024

    Hi, I just encountered the same issue, "stops u-boot uart at - DDR (some times bad characters comes her so it seems the UART is abruptly stopped) ", and sadly blocked here for several days after trying many different methods..can you share how you fix the problem? Many thanks for that. And one more question, using the default working stream, do you know where to insert the macro like CONFIG_LOG_MAX_LEVEL=7? Now I have to use the git and create patch file to replace the one appeared in the layer of meta-st, really cost huge amount of time. Thanks20240216224716.png

    debuggingAuthor
    Graduate II
    February 11, 2024

    This was a bug known by ST but ST somehow does not publish a (well) know issue list.

    Trying to setup a known issues list  :https://discord.gg/XgEtT4ah

     

    Visitor II
    February 12, 2024

    Thank you so much. It is finally working now. It seems like ST does not have much interest in having customers when they don't post these kinds of bugs publicly and that they don't make a new minor release as soon as such a bug is discovered.

    Visitor II
    February 19, 2024

    Hi

    I wonder if anyone using the standard ECO rev 5 have working U-Boot? Anyways @debugging  did post a link to his discord server where the issue is described. 

    I have added the patch that I use here in case you are not using Discord. 

    I have to note that this bug by ST is costing their customers a lot of time and money and when they know about the bug why do they not fix it or at least publish it. 

    Could anyone from ST comment on this issue ? @PatrickF ??

    ST Employee
    February 19, 2024
    Hi,
    This issue has been fixed in a minor release.
    so that you can download the updates that ST has released.
    Regards,
    Grégory
    Visitor II
    February 19, 2024

    Wow this explains a lot for me because I was sure I had u-boot working fine for a while and then it stopped working. Turns out I was compiling on another machine where I had 5.0.2 . While I had 5.0.0 on the other machine. 

    Anyways you should update the main link to 5.0.2 on the release page instead of 5.0.0 to avoid more people having this problem. 

    debuggingAuthor
    Graduate II
    February 19, 2024
     
    @Gregory PLANCHON  it mentions they CAN be integrated in de developer package but not HOW. the link the the developer package does not contain a section how to add changes to it. IT only refers to the distro and sources from Github. There are many folks using the developer package AFAIK, more explanation would really help. BTW this issue was long known before the minor release but it causes a major problem for many. See how many post posts there were on this topic but no help..
     
    ST Employee
    February 20, 2024

    Hi,

    For the developer package, there is a README.HOW_TOO.txt file which explains how to do this using GIT.
    For more information, see the section :
    "4. Manage <your_current_source_file> source code with GIT".
    You will then be able to update to minor release.

     

    Regards,

    Grégory