DSP28335复位向量(0X3FFFC0)处放的是 TRAP #31 ,能改为跳转到BOOT引导区吗,在什么文件中,另外在FLASH中运行程序要延时吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
1.DSP reset后运行的起始地址是多少?
0x3FFFC0
2.仿真器烧写程序的步骤是?
根据cmd文件把程序烧到指定位置,然后执行。
3.DSP的Flash启动过程是什么?
首先硬件配置GPIO84~87上拉为1,即处于Flash启动过程。当DSP复位后,会从复位向量0x3FFFC0处取得复位向量,并跳转到InitBoot处开始执行,InitBoot会读GPIO84~87的值发现全为1判断为Flash启动方式。然后会跳到0x33FFF6处执行。在CCS5.2工程的cmd文件中有如下代码:
MEMORY
{
PAGE 0 :
BEGIN : origin = 0x33FFF6, length = 0x000002 /* Boot to M0 will go here */
...
}
SECTIONS
{...
codestart : > BEGIN PAGE = 0
...}
即表示把codestart段放到0x33FFF6位置处,文件“DSP2833x_CodeStartBranch.asm”中有codestart段的定义,实际上codestart段只是包含了一个跳转指令,是程序跳转到_c_int00处,_c_int00在boot.asm in RTS library中有定义,_c_int00的代码最终会调用c的main函数,之后就是main函数的执行。