cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx STM32MP135F-DK

AMend.7
Associate III
Spoiler
 

Hi,

I created a TouchGFX project for the STM32MP135F-DK board. When compiling the project, the error listed below appeared. Despite the error, I was able to load and debug the application on the board using the same procedure applied to any example running on DDR memory.
I verified that "the application binary file 'STM32MP135F-DK.stm32'" was not generated in the folder: Project Folder>\Binary\apps\STM32MP135F-DK.stm32 as per the link:

https://wiki.st.com/stm32mpu/wiki/How_to_install_X-TouchGFX_MPU_Addon

I am using a computer running Windows 11, is it necessary to install any additional software to generate this file?

 

make -j12 all

arm-none-eabi-size STM32MP135F-DK.elf

text data bss dec hex filename

530448 785264 134112 1449824 161f60 STM32MP135F-DK.elf

Finished building: default.size.stdout

 

../../Utilities/ImageHeader/postbuild_STM32MP13.sh "C:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344\tools\bin" "STM32MP135F-DK"

Postbuild with Python 3 script

<D> app_name =<>

<D> readelf_path =<C:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344\tools\bin/arm-none-eabi-readelf.exe>

<D> objcopy_path =<C:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344\tools\bin/arm-none-eabi-objcopy.exe>

<D> elf_entry_point =<0xc0000000>

<D> formatted_ep_addr =<c0000000>

 

Tue Oct 28 17:11:23 2025

Image Name : None

Input file : STM32MP135F-DK_postbuild.bin

Output file : STM32MP135F-DK.stm32

Traceback (most recent call last):

File "C:\TouchGFXProjects\MyApplication_2\Utilities\ImageHeader\Python3\Stm32ImageAddHeader.py", line 243, in <module>

main()

File "C:\TouchGFXProjects\MyApplication_2\Utilities\ImageHeader\Python3\Stm32ImageAddHeader.py", line 233, in main

ret = stm32im.generate(args.image_name, args.input_file, args.output_file)

File "C:\TouchGFXProjects\MyApplication_2\Utilities\ImageHeader\Python3\Stm32ImageAddHeader.py", line 99, in generate

self.image_name = str.encode(image_name) # Output filename is the Image Name

TypeError: descriptor 'encode' for 'str' objects doesn't apply to a 'NoneType' object

postbuild_STM32MP13.sh failed

cp -vf "STM32MP135F-DK.stm32" "../../Binary/apps/STM32MP135F-DK.stm32"

cp: can't stat 'STM32MP135F-DK.stm32': No such file or directory

make[1]: *** [makefile:128: post-build] Error 1

make: *** [makefile:95: all] Error 2

"make -j12 all" terminated with exit code 2. Build might be incomplete.

 

17:11:23 Build Failed. 2 errors, 0 warnings. (took 4s.224ms)

 

 

1 REPLY 1
bbakram
ST Employee

Hello @AMend.7 ,

The scripts in the MPU Add-on require old python 2.7 to be used. Please make sure to have this version used to succeed running the post build steps (hitting 'Run on Target' button in the Designer).

Best Regards,

Akram