Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 讨论

how can i tell the IDE to carry code to TCM

Altera_Forum
名誉分销商 II
5,298 次查看

i write a program with assembly instruction,i want this program can be excuted in tightly coupled memory,but when i debug ,this code is not in the TCM,my TCM name is “onchipmemory",my program is follow: 

 

start: nop 

call test_code 

br start 

 

.section .onchipmemory 

test_code: 

addi sp,sp,-4 

stw ra,0(sp) 

 

movi r2,0x99 

movi r3,0xaa 

mul r2,r2,r3 

 

ldw ra,o(sp) 

addi sp,sp,4 

ret
0 项奖励
24 回复数
Altera_Forum
名誉分销商 II
405 次查看

Now,the problem had been solved.Anyway ,thank you for your help.:p

0 项奖励
Altera_Forum
名誉分销商 II
405 次查看

I'm sorry I couldn't help more... How did you solve it?

0 项奖励
Altera_Forum
名誉分销商 II
405 次查看

the code modified as : 

.section .instruction_onchipmemory ,"a"  

everything is ok.
0 项奖励
Altera_Forum
名誉分销商 II
405 次查看

 

--- Quote Start ---  

the code modified as : 

.section .instruction_onchipmemory ,"a"  

everything is ok. 

--- Quote End ---  

 

 

It is very good Idea!
0 项奖励
回复