Using STLink with STM32MP151 - illegal access error
We have a custom PCB application that uses the STM32MP151CAC1 as the main CPU. We have tried to use an STLink v3 to connect to the chip over SWD, but have been unable to do so. The chip (through UART4) throws the following error when I try to connect:
ERROR: Illegal access to 0xe000edf0:
ERROR: FAIL_ID = 0x2
ERROR: Non-Secure
ERROR: Privilege
ERROR: Write
PANIC at PC : 0x2ffc9b61
Exception mode=0x00000016 at: 0x2ffc9b61Meanwhile, on the STCube Programmer, depending on what settings I have, I get one of the following error messages:
Error: Cannot connect to access port 1 If you are trying to connet to a device with TrustZone enabled please try to connect with HotPlug mode
Error: DEV_UNKNOWN_MCU_TARGET
Error: Cannot identify the device
Some additional information:
The signals I'm trying to communicate over are:
JTMS (pin C20 on the STM32MP1)
JTCK (B20)
JTDI (A20)
JTDO (A19)
JTRST (19)
Of those, JTMS and JTRST are pulled up to VDD through 10K resistors. JTCK is pulled down to ground through another 10K resistor. Let me know if that shouldn't be the case.
