当前位置:网站首页>Error 65:access violation at 0x58024400: no 'read' permission

Error 65:access violation at 0x58024400: no 'read' permission

2022-06-26 00:52:00 To, violet

One 、 Problem description

I've been using STM32H750 Model single-chip microcomputer to do a small project , During debugging, it is found that the software simulation cannot be performed , After entering the simulation, an error similar to that shown in the following figure appears , And no access main function .

The author has found many methods on the Internet , But part of it is to use only STM32F10X Series of . Finally, the author summarizes the methods . The following describes the method first and then roughly describes a principle .

Two 、 resolvent

1、 Create a new project named in the project directory debug.ini The file of , Write the text in the file and save

map 0x40000000, 0x4000D3FF read write // APB1
map 0x40010000, 0x400177FF read write // APB2
map 0x50000000, 0x50003FFF read write // APB3
map 0x58000000, 0x58006BFF read write // APB4
map 0x40020000, 0x400BFFFF read write // AHB1
map 0x48020000, 0x48022BFF read write // AHB2
map 0x51000000, 0x52008FFF read write // AHB3
map 0x58020000, 0x580267FF read write // AHB4
map 0xE0000000, 0xE00FFFFF read write // CORTEX-M7 internal peripherals

FUNC void Setup (void) {
  xPSR = 1<<24;
  SP   = _RDWORD(0x08000000);
  PC   = _RDWORD(0x08000004); 
  _WDWORD(0xE000ED08, 0x08000000);
}

Setup();

2、 open KEIL, choice project->Options for Target '...' ( The sign of the magic wand above ). Open and choose Debug. stay Initalization File Add top to column Just created debug.ini File can

 

原网站

版权声明
本文为[To, violet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180601243370.html