STM32H533 Cannot Load Flash Programming Algorithm

Hello

I have a problem with the creation of a .FLM to program external flash with STM32H533RETx

Setup:

  • MCU: STM32H533RETx, TZEN disabled (verified via option bytes, Product State = Open)
  • Debugger: ST-Link V3, latest firmware
  • Keil MDK 5.43.0.0, Arm Compiler 6.24
  • Pack: Keil::STM32H5xx_DFP@2.2.0
  • External target: MX25L6433F (SPI NOR, 8MB) on SPI2

Every time I try to load I get this message

and build output say this

Load "Test_H533v2\\Test_H533v2.axf"
Erase Failed!
Invalid Access Port selected
Error: Flash Download failed - "Cortex-M33"

The access port is set at 1 by the pdsc file, I changed it to 0 and I got this

With the same board I am able to program external flash with Cube Programmer and a custom .stldr file
Cube programmer connects both with AP = 0 and AP = 1

I am not able to get any different result from "invalid port access" and I can not find a reference in how to fix this

Thanks