回复【楼主位】业未央: --------------------------------- CAUSE When the ?Vision Debugger loads an executable program, it creates a memory map using the program and data segments from the program. Code segments are marked as executable while data segments are marked as read/write. All other memory is unmapped and is, therefore, not marked for any type of access.
The ?Vision Debugger checks that all memory accesses are made to objects that are defined in your C program. For any access that is outside of a defined C object, the ?Vision debugger generates an error 65: access violation message.
By default, the debugger allows only memory accesses to valid data objects. This is useful for finding uninitialized or incorrectly initialized pointers, for example. Usually, there is a programming error when you try to access unexpected locations.
RESOLUTION Enable memory regions for absolute memory accesses using the MAP debugger command or the Debug - Memory Map dialog. Define all the memory ranges that your program is permitted to access. Ensure that you set the permissions (read, write, execute) for each range to match your actual hardware.
You may put the required MAP commands into a debugger INI file that can be entered under roject -> Options for Target -> Debug -> Initialization file. For example, the content of such a file may be:
MAP 0xF800, 0xF8FF READ WRITE // allow R/W access to IO space
---------------------------------
我调试是M0+内核的STM32L051K6T6
Dialog DLL 分别为:DARMSTM.DLL
和 TARMSTM.DLL, arameter 均为: -pSTM32L051K6
可还是报同样的错误
---------------------------------
CAUSE
When the ?Vision Debugger loads an executable program, it creates a memory map using the program and data segments from the program. Code segments are marked as executable while data segments are marked as read/write. All other memory is unmapped and is, therefore, not marked for any type of access.
The ?Vision Debugger checks that all memory accesses are made to objects that are defined in your C program. For any access that is outside of a defined C object, the ?Vision debugger generates an error 65: access violation message.
By default, the debugger allows only memory accesses to valid data objects. This is useful for finding uninitialized or incorrectly initialized pointers, for example. Usually, there is a programming error when you try to access unexpected locations.
RESOLUTION
Enable memory regions for absolute memory accesses using the MAP debugger command or the Debug - Memory Map dialog. Define all the memory ranges that your program is permitted to access. Ensure that you set the permissions (read, write, execute) for each range to match your actual hardware.
You may put the required MAP commands into a debugger INI file that can be entered under roject -> Options for Target -> Debug -> Initialization file. For example, the content of such a file may be:
MAP 0xF800, 0xF8FF READ WRITE // allow R/W access to IO space
试下
---------------------------------
嗯
一周热门 更多>