I recreated a hardware project to test the TCM,i wrote the program with pure assembly instruction and encount a new problem:when the IDE complete dowloading the code to SRAM and TCM ,I found that the instruction code is not be download to the TCM successfully,the data in the TCM zone is not be changed at all! is it the problem of IDE? is it the problem of my hardware project? is it the problem of my simple assembly instruction program? if anyone know what the problem is ,please tell me,thanks!
in my hardware project my TCM's name is instruction_onchipmemory,the folowing is my testing assembly instruction program:
.global main
.type main, @function
main: addi sp, sp,-12
stw ra, 8(sp)
stw fp, 4(sp)
mov fp, sp
loop: call tcm_test
br loop
//the folowing instruction will be executed in tightly coupled memory
// the tightly coupled memory's name is instruction_onchipmemory
.section .instruction_onchipmemory
tcm_test: addi sp, sp,-4
stw ra, 0(sp)
movi r2,0x123
movi r3,0x345
mul r2,r2,r3
mov r4,r2
ldw ra,0(sp)
addi sp,sp,4
ret