Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Data from a sensor must be copied in limited time to SDRAM. If I allow IRQs then I don't receive all the data from sensor. In this time any other master access on the SDRAM leads to loss of data. --- Quote End --- So in your case the IRQ issue would be present even if you didn't use TCM and mapped the code into sdram, sram or anything else. Right? I tried with irq disable and infact this is not my case. --- Quote Start --- How do you create the tc_code section? The TCM section I'm using has the same name like the SOPC component (onchip_ram). --- Quote End --- That's what I did. I still have the same problem: simple function in TCM works, complete function hangs. - simple function: for loop which sums the first n integers, where n is the function parameter; 0x2C bytes code - complete function: 0xbc bytes code; this function works perfectly if I map it into sdram - tc_code : 8kbytes space I will try now to progressively increase the size of the simple test function in order to find out if the problem is with code size or with function content Cris