Skip to main content
anthony.harivel.emtrion.GmbH
Associate III
October 16, 2019
Question

Using Uboot for CubeProgrammer

  • October 16, 2019
  • 3 replies
  • 1762 views

Hi ST team !

During the process of finding a way to put our custom boards in production, I tried to use the STM32Prog mode on Uboot.

This failed because in SPL, spl_board_load_image() is empty and can't download via USB OTG the SSBL.

I found another way to produce our board but I would like in the futur using CubeProgrammer.

My question is do you have any plan to fill this function ?

https://github.com/STMicroelectronics/u-boot/blob/v2018.11-stm32mp/arch/arm/mach-stm32mp/spl.c

=> /* TODO : add download support in SPL without TF-A */

Thanks!

Regards

Anthony Harivel

This topic has been closed for replies.

3 replies

Olivier GALLIEN
Technical Moderator
October 17, 2019

Hi @anthony.harivel.emtrion.GmbH​ 

The serial boot mode, used by STM32CubeProgrammer, is indeed not supported with U-Boot SPL. This was recently better documented in the article https://wiki.st.com/stm32mpu/index.php/Boot_chains_overview#Boot_chains_features_set to make this clearer for customers.

We do not have any plan to add this feature in the basic boot chain (U-Boot SPL) and rather plan to re-inforce our strategy on the trusted boot chain (Arm TF-A).

For people using basic boot chain, a new article is under preparation to help the customer building a minimalist TF-A enabling to flash.

Is it replying to your question ?

Else please thanks to elaborate further the need.

Thanks

Olivier

Olivier GALLIEN 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.
anthony.harivel.emtrion.GmbH
Associate III
October 17, 2019

Hi @Community member​ ,

yes this answer greatly my question!

Basic Boot chain is useful for us for the homogénéity of our product range (dev kit). Nevertheless, Trusted boot chain is quite important for final product and I undertstand your strategy. I will definitly have a look at this really soon.

"building a minimalist TF-A enabling to flash" : this is a great idea and could be very useful fur us. Could you give me a link to the wiki (even if it is still "permission denied") so that I can check it out as soon as it is released ? or is it too early ?

Thank you again for your answer.

Best Regards

Anthony Harivel

Bernard PUEL
Technical Moderator
January 31, 2020

Here is the wiki article to help customer to enable a first boot on their board. I hope it can help you to replace your u-boot-spl with a minimalist TF-A and therefore to use the cube programmer to flash any flash of your board.

https://wiki.st.com/stm32mpu/index.php/How_to_create_your_board_device_tree