Skip to content

Error in reading and writing permissions of peripheral devices of the target device. #39

@JavenZhou9481

Description

@JavenZhou9481

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions