1 现在通过示波器抓读出的数据,数据一直是固定的,周期性重复,就是第一个字节
2 DSP一直每隔16个字节发读命令 03,一直读 不知道是什么原因一直读,有可能是硬件的原因吗?????
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 现在通过示波器抓读出的数据,数据一直是固定的,周期性重复,就是第一个字节
2 DSP一直每隔16个字节发读命令 03,一直读 不知道是什么原因一直读,有可能是硬件的原因吗?????
你有没有试过用SPI接口读一下NOR flash的数据是否正确?另外你的参数设置是否正确,如果参数不对可能spi一直不能读到有效数据在做重试。
你可以把你使用的map文件和cmd文件以及SPI的参数贴出来看看
-heap 0x1000
-stack 0x2000
MEMORY
{
/* Local L2, 0.5~1MB*/
BOOT_CORE0 : o = 0x10800000, l = 0x000000c0
//VECTORS: o = 0x108000c0 l = 0x00000200
SL2: o = 0x108000c0 l = 0x000FFFFF
/* External DDR3, upto 2GB per core */
DDR3_CODE: o = 0x80000000 l = 0x01000000 /*set memory protection attribitue as execution only*/
DDR3_R_DATA: o = 0x81000000 l = 0x01000000 /*set memory protection attribitue as read only*/
DDR3_RW_DATA: o = 0x82000000 l = 0x06000000 /*set memory protection attribitue as read/write*/
}
SECTIONS
{
.text > SL2
.cinit > SL2
.const > SL2
.switch > SL2
.cio > SL2
.stack > SL2
GROUP
{
.neardata
.rodata
.bss
} > SL2
.far > SL2
.fardata > SL2
.sysmem > SL2
.myboot
{
*.*<boot.obj>(.text)
} > BOOT_CORE0
}
我工程的cmd, 我的硬件平台是6657 ,烧写工程是我根据spi读写flash的例程修改,并且写入文件后在读出数据进行比较,都是正确的
boot开关 1011 0000 0010 1000
nysh.spi.map
section {
boot_mode = 50
param_index = 0
options = 1
core_freq_mhz = 1000
exe_file = "simple.i2c.ccs"
next_dev_addr_ext = 0x0
sw_pll_prediv = 0
sw_pll_mult = 19
sw_pll_postdiv = 2
sw_pll_flags = 1
addr_width = 24
n_pins = 4
csel = 2
mode = 1
c2t_delay = 0
bus_freq_mhz = 0
bus_freq_khz = 500
}