您的位置:首页 > 其它

STM32 学习十一 RAM下载与调试

2015-01-17 13:21 218 查看




把代码放到RAM,不使用片内FLASH。RAM分两段分别放程序代码、数据区。



修改为:









RAM2.ini

/******************************************************************************/
/* RAM.INI: RAM Initialization File                                           */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>>                           //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2007 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(0x20000000);          // Setup Stack Pointer
PC = _RDWORD(0x20000004);          // Setup Program Counter
//  _WDWORD(0xE000ED08, 0x20000000);   // Setup Vector Table Offset Register
}

LOAD ramout\164.axf INCREMENTAL      // Download

Setup();                             // Setup for Running
g, main

点Load下载,调试成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: