We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear all, My project using code banking. I have a table that store in CODE memory(BANK1(?CO?MENUROOT(0x2000))). And my program in many Banks(Bank1, Bank2, Bank3......) reference to this table. But only program in bank1 can get the correct table value. Because a lot of reasons, I have to seperate these programs into different banks. And I don't want to create many copy of this table in defferent name to put them in each bank. How can I solve this problem? Thank you. Ovid.
Working overtime is not a cost to my company. It will be if it turns out that you need infinitely much of it, literally, i.e. never finish it, because the hardware you chose plain and simply isn't able to get your job done. Throwing more software at a task is not a universal cure. There are problems it simply won't solve. How to do it? My entire program is in nand flash, It will be fetch into onchip ram(only 16k bytes), and execute. Sorry to rain your parade, but that decision was rather obviously a bad one. You'll have to revisit that. 16 KB of real code space apparently isn't enough for what you're trying to do. Nothing will fundamentally change that.
In the end if you are going to try. Lets say the common area is 8K. then you will need 14banks of 8K each. In the banking code you will have to copy the new 8K from NAND flash to ram. I assume you have some hardware assist. If not I hope your IP core is a single clock one. 8K is kind of small for a bank so group your code wisely.