Makefile targeting scratchpad


#1

Hi there,

I am just wondering if there is any makefile available in freedom-e-sdk that targets scratchpad. There were just too many things to be linked (for example, malloc, kill) and this would not be able to fit into the scratchpad. Thanks.


(Drew) #2

What target are you compiling for? There is a scratchpad target for the coreplexip-e31-arty and coreplexip-e51-arty targets. This linker file links everything into the DTIM.

There isn’t one for the HiFive1, but we should be able to make one if that is what you are asking.


#3

Oh, no worries. I thought there would be one for HiFive1, but actually it can be easy to make one. Thanks!

BTW, what exactly is DTIM (data tightly integrated memory)? Is it just caching all the instructions?


(Drew) #4

It is just a tightly integrated memory, similar to a scratchpad or TCM you may have seen on other devices. It is directly addressable and not a cache.

Let me know if you have trouble.