cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257F-EV1 – Unable to Download/Debug CM33 Firmware (DDR Memory Write Error 0x80100000)

satnk
Associate

Hello Every One,

Hardware / Software Environment

Board: STM32MP257F-EV1

Device: STM32MP257FAIx

IDE: STM32CubeIDE v2.0.0 (Windows)

Firmware package: STM32Cube FW_MP2 v1.2.0

OpenSTLinux version: openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11
What I Did

Flashed OpenSTLinux image to eMMC using USB DFU with:

FlashLayout_emmc_stm32mp257f-ev1-ca35tdcid-ostl-optee.tsv

Flashing completed successfully.

Linux boots correctly and I can log in via UART:

root@stm32mp2:~#

Created a simple GPIO project for Cortex-M33 using STM32CubeMX and STM32CubeIDE:

Selected MCU: STM32MP257FAIx (not board)

Selected “M33 Master”

Toolchain: STM32CubeIDE

Project builds successfully without errors
Linker Memory Configuration

The generated linker script places CM33 firmware in DDR memory:

NS_VECTOR_TBL : ORIGIN = 0x80100000
FLASH : ORIGIN = 0x80100600
RAM : ORIGIN = 0x80A00000
VIRTIO_SHMEM : ORIGIN = 0x812F8000
IPC_SHMEM_1 : ORIGIN = 0x81200000

So the CM33 firmware is located in DDR (0x80xxxxxx region).
Problem

When attempting to debug or download the CM33 firmware using ST-LINK (Engineering mode via JTAG/SWD), I receive the following errors:

Failed to write memory at 0x80100000
Target not examined yet
gdb connection rejected

In some attempts I also see:

Error executing event gdb-attach on target STM32MP257FAIx.m33
Target not halted

The project builds correctly, but the firmware cannot be downloaded to the target.

What I Tried

Set boot switches to Engineering mode

Tried JTAG/SWD debugging

Tried “thru Linux core (Production mode)”

Stopped remoteproc from Linux using:

echo stop > /sys/class/remoteproc/remoteproc0/state

Recreated the project

Reinstalled STM32CubeIDE

The issue persists.
My Questions

1. After flashing OpenSTLinux, is it possible to debug CM33 using Engineering (JTAG) mode?

2. Is CM33 firmware expected to be loaded only via Linux remoteproc in Production mode?

3. Is standalone CM33 execution without Linux supported on STM32MP257F-EV1?

4. Is the DDR-based linker script the expected behavior when OpenSTLinux is used?

Please help me to start my journy with STM32MP257F-EV1 board.

Thanks in advance

 

0 REPLIES 0