Dear colleagues,
My design requires over than 64KB of SRAM . Is it possible to use L2 Memory ( 256KB ) as user memory ? In positive case, how can I do this ? Can I handle this memory portion ?
Tks in advance,
Fabio Cervone
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.
Dear colleagues,
My design requires over than 64KB of SRAM . Is it possible to use L2 Memory ( 256KB ) as user memory ? In positive case, how can I do this ? Can I handle this memory portion ?
Tks in advance,
Fabio Cervone
If you have NOR flash in the design which processor can address and cache in to L2. You can lock the cache except 1-way (32KB) and use it like fast internal memory. SYS/BIOS has APIs to do cache locking and this feature is demonstrated in industrial sdk for AM335x
Thanks for correcting me Pratheesh. I didn't know this, it's good to learn.
Hi Fabio,
We have tried a couple of different techniques to use L2 cache as RAM, but have not been successful. On the cortex-A8, the 256K L2 was not designed to be used as RAM.
There are two internal 64K rams on the AM335x, so you can have 128K.
I guess to be accurate there is one 64K and one 63K RAM. The first 1K of one of the internal RAMs is not available.
Fabio,
Please look at the the: AM335x Technical Reference Manual. One memory is called "Internal SRAM", it is part of the MPU subsystem and accessible by the Cortex-A8 only. The other memory is a shared memory called OCMC RAM and is on the L3 interface and is accessible by all Masters.