2019-06-12 12:10 AM
Hi ST Community,
i am using STM32CubeIDE. But i can not create an example project as i am getting the following error.
But according to old posts related to STM32MP157, other users have created the example project successfully. Need some help please for getting started.
i am using STM32CubeIDE v1.0.0.
Best Regards,
Usman
Solved! Go to Solution.
2019-07-01 05:29 AM
You will find many informations in the wiki (https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_getting_started).
Note that 'Starter Package' is only Binaries for our DK1/DK2 and EV1 boards, including demo. You cannot modify the kernel, but you can already trial your own eser application (see example in wiki Create_a_simple_hello-world_application).
See also Which Package better suits your needs
2019-07-02 11:44 PM
thank you for your reply. I have question relate to loading linux images.
I used the following (https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Unpack_the_STM32MP157x-EV1_board) ST wiki page to load linux image into STM32MP15x-EVAL with STM32MP157AAA3 Processor. But when i used following command i get an error and i am sure i am using the 000 boot mode for flashing SD-Card.
$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.1.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 001A00363338511534383330
FW version : 0x0110
Device ID : 0x0500
Device name : STM32MPxxx
Device type : MPU
Device CPU : Cortex-A7
Start Embedded Flashing service
Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-ev1-trusted.stm32
File : tf-a-stm32mp157c-ev1-trusted.stm32
Size : 245360 Bytes
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:03.939
RUNNING Program ...
PartID: :0x01
Start operation done successfully at partition 0x01
Flashlayout Programming ...
[==================================================] 100%
Running Flashlayout Partition ...
Flashlayout partition started successfully
Memory Programming ...
Opening and parsing file: u-boot-stm32mp157c-ev1-trusted.stm32
File : u-boot-stm32mp157c-ev1-trusted.stm32
Size : 754169 Bytes
Partition ID : 0x03
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:11.673
RUNNING Program ...
PartID: :0x03
reconnecting the device ...
Error: unable to reconnect the target device: time out expired
Error: Start operation failed at partition 0x03
Error: TSV flashing service failed
But when i used stm32mp157a-dk1 i don't have above problem, instead i go till Flashing service completed successfully
but it do not show me the mentioned screens on board lcd.
STM32MPU_workplace/STM32MP15-Ecosystem-v1.0.0/Starter-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/images/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.1.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x0000
SN : 001A00363338511534383330
FW version : 0x0110
Device ID : 0x0500
Device name : STM32MPxxx
Device type : MPU
Device CPU : Cortex-A7
Start Embedded Flashing service
Memory Programming ...
Opening and parsing file: tf-a-stm32mp157a-dk1-trusted.stm32
File : tf-a-stm32mp157a-dk1-trusted.stm32
Size : 245360 Bytes
Partition ID : 0x04
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:00.699
RUNNING Program ...
PartID: :0x04
Start operation done successfully at partition 0x04
Memory Programming ...
Opening and parsing file: tf-a-stm32mp157a-dk1-trusted.stm32
File : tf-a-stm32mp157a-dk1-trusted.stm32
Size : 245360 Bytes
Partition ID : 0x05
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:00.705
RUNNING Program ...
PartID: :0x05
Start operation done successfully at partition 0x05
Memory Programming ...
Opening and parsing file: u-boot-stm32mp157a-dk1-trusted.stm32
File : u-boot-stm32mp157a-dk1-trusted.stm32
Size : 746903 Bytes
Partition ID : 0x06
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:02.153
RUNNING Program ...
PartID: :0x06
Start operation done successfully at partition 0x06
Memory Programming ...
Opening and parsing file: st-image-bootfs-openstlinux-weston-stm32mp1.ext4
File : st-image-bootfs-openstlinux-weston-stm32mp1.ext4
Size : 64 MBytes
Partition ID : 0x21
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:04:00.367
RUNNING Program ...
PartID: :0x21
Start operation done successfully at partition 0x21
Memory Programming ...
Opening and parsing file: st-image-vendorfs-openstlinux-weston-stm32mp1.ext4
File : st-image-vendorfs-openstlinux-weston-stm32mp1.ext4
Size : 16 MBytes
Partition ID : 0x22
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:59.268
RUNNING Program ...
PartID: :0x22
Start operation done successfully at partition 0x22
Memory Programming ...
Opening and parsing file: st-image-weston-openstlinux-weston-stm32mp1.ext4
File : st-image-weston-openstlinux-weston-stm32mp1.ext4
Size : 506324 KBytes
Partition ID : 0x23
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:30:33.024
RUNNING Program ...
PartID: :0x23
Start operation done successfully at partition 0x23
Memory Programming ...
Opening and parsing file: st-image-userfs-openstlinux-weston-stm32mp1.ext4
File : st-image-userfs-openstlinux-weston-stm32mp1.ext4
Size : 95836 KBytes
Partition ID : 0x24
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:05:38.233
RUNNING Program ...
PartID: :0x24
Start operation done successfully at partition 0x24
Flashing service completed successfully
After complete loading i changed the boot mode to b101 but still nothing. Could you please gide, where the problem could be?
2019-07-03 06:10 AM
Could you add a console log during the SD-Card Flashing of EVAL board and during the DK1 unsuccessful boot as sell ? (using the Virtual Comm Port of ST-Link)
2019-07-03 06:33 AM
Hi, it has following issue
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
NOTICE: Board: MB1263 Var1 Rev.C-01
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using SDMMC
INFO: Instance 1
INFO: Boot used partition fsbl1
ERROR: SDMMC1 init failed
PANIC at PC : 0x2ffdb96b
Exception mode=0x00000016 at: 0x2ffda000
2019-07-03 06:42 AM
i tried with another d card and now i am getting following error
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: STMicroelectronics STM32MP157C eval daughter on eval mother
NOTICE: Board: MB1263 Var1 Rev.C-01
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using SDMMC
INFO: Instance 1
INFO: Boot used partition fsbl1
WARNING: Failed to access image id=28 (-2)
ERROR: Partition ssbl not found
PANIC at PC : 0x2ffdb96b
Exception mode=0x00000016 at: 0x2ffda000
2019-07-03 06:56 AM
DK1 board is a DK2 board without the daughter board (LCD, WIFI, BT). So how could you have a LCD on your DK1 board ? I guess you have a DK2 board so should use the right TSV file.
2019-07-04 12:03 AM
on EVAL board, could you try Flashing eMMC instead of SD-Card, using FlashLayout_emmc_stm32mp157c-ev1-trusted.tsv ?
If fail during USB reconnect, could you try to add -tm 20000 to the CubeProgrammer command line ?
2019-07-04 01:04 AM
thank you so much everyone for helping me, it was very helpful. its working now.
one last question on this topic, can we debug the hello world example, which run on linux?
2019-07-04 02:19 AM
Good to hear it is working, for our knowledge, what's went wrong ?
For Linux debug, please have a look to https://wiki.st.com/stm32mpu/wiki/Linux_tracing,_monitoring_and_debugging
2019-07-04 02:48 AM
@PatrickF thank you once again. it was problem with flashing SDCard which i received with EVAL board, at first i could flash FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv on my SDCard but not FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv on it. But problem with dk1 linux images is that it wasn't booting my STM32MP15X-EVAL. I used another SD Card for flashing FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv and i had success this time. Afterwards everything went as mentioned in wiki of getting started with STM32MP157X-EVAL. I was also abled to used the first SD card after formating it, for flashing FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv and booting purposes.