现在我的DSP28335通过XINTF接口与FPGA进行通信
在debug模式中,从FPGA中读出的数据都是正常的
非debug模式中,上电之后,从FPGA读出来的数据都是0xffff
请问这是什么问题
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.
现在我的DSP28335通过XINTF接口与FPGA进行通信
在debug模式中,从FPGA中读出的数据都是正常的
非debug模式中,上电之后,从FPGA读出来的数据都是0xffff
请问这是什么问题
就算我运行方式修改成flash运行,而不是ram运行,debug的时候也都会在ram运行?就算debug之前也把flash都擦除了?
我修改了这几处地方
并口读写函数
#pragma CODE_SECTION(write_to_sram, "ram_function")
#pragma CODE_SECTION(read_from_sram, "ram_function")
cmd文件
ram_function : LOAD = APPLICATION, PAGE = 0
RUN = RAM_DATA, PAGE = 1
LOAD_START(_ram_functionstart),
LOAD_END(_ram_functionsend),
RUN_START(_ram_functionsrunstart)
在外设初始化之前
MemCopy(&ram_functionstart, &ram_functionsend, &ram_functionsrunstart);
InitFlash();
然后上电运行代码,就到这里了
interrupt void ILLEGAL_ISR(void)
{
//
// Insert ISR Code here
//
//
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
//
asm (" ESTOP0");
for(;;);
}
我确实是这样的先,memcpy,再Initflash(),然后才初始化各种外设