-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Vscode version:1.100.3
Core-Debug version:1.12.1
Target device:STM32U585QI
Target device SVD file: STM32U585.svd download from ST
Description:
After using the Coretex debug plug-in and specifying the SVD file, modify the IO output by directly writing to the register. It is found that the readable and writable registers only have read-only permission, and the permission configuration of viewing the SVD file is readable and writable.
launch file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Cortex Debug",
"request": "launch",
"cwd": "${workspaceFolder}",
"executable": "build/Debug/test.elf",
"servertype": "jlink",
"serverpath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe",
"serverArgs": [
"-rtos",
"GDBServer/RTOSPlugin_FreeRTOS"
],
"gdbPath": "D:/ARM Embedded GCC/bin/arm-none-eabi-gdb.exe",
"type": "cortex-debug",
"device": "STM32U585QI",
"interface": "swd",
"svdFile": "STM32U585.svd",
"runToEntryPoint": "main",
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4
}
}
]
}
Bit description of GPIO ODR register of SVD:
GPIO_ODR
GPIO_ODR
GPIO port output data register
0x14
0x20
0x00000000
0xFFFFFFFF
OD0
Port output data I/O pin y
These bits can be read and written by software.
Note: For atomic bit set/reset, these bits can be individually set and/or reset by writing to�GPIOx_BSRR or GPIOx_BRR (x = A to J).
Note: This bit is reserved and must be kept at reset value when the corresponding I/O is not available on the selected package.
0
1
read-write