STM32H750XB_RT-THREAD/26-27-LTDC—液晶显示/刷外部FLASH程序(如何恢复字库)/Project/RVMDK(uv5)/Debug_RAM.ini
2025-07-21 14:34:29 +08:00

23 lines
1.1 KiB
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/***********************************************************/
/* Debug_RAM.ini: Initialization File for Debugging from Internal RAM */
/******************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2014 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/*development tools. Nothing else gives you the right to use this software */
/***************************************************/
FUNC void Setup (void) {
SP = _RDWORD(0x24000000); // 设置栈指针SP把0x24000000地址中的内容赋值到SP。
PC = _RDWORD(0x24000004); // 设置程序指针PC把0x24000004地址中的内容赋值到PC。
XPSR = 0x01000000; // 设置状态寄存器指针xPSR
_WDWORD(0xE000ED08, 0x24000000); // Setup Vector Table Offset Register
}
LOAD %L INCREMENTAL // 下载axf文件到RAM
Setup(); //调用上面定义的setup函数设置运行环境
g, main //跳转到main函数