HI Laurent, Thanks for the hint. I've integrated the relevant code from StartweWareFree (https://sourceforge.net/projects/starterwarefree/)
>From there I am using: system_config/armv7a/cache.c system_config/armv7a/mmu.c system_config/armv7a/gcc/cp15.S And the respective headers. I base my app code on axamples/beaglebone/cache_mmu/uartEdma_Cache.c In there, the sequence is MMUConfigAndEnable(); CacheEnable(CACHE_ALL); I modified MMUConfigAndEnable(); to configure only DDR, the rest is left untouched (no OCMC, no Device) If I call MMUConfigAndEnable() my app gets lost. I see nothing happening. If I remove it, I can see it again working, in the crappy performance that I have reported so far. Any furhter hint? Things to keep in mind: - I am using BeagleBoard original RevC (OMAP3530 ES3.0), not BeagleBone (White, Black, or Green or any other variant). In other words, no AM335x. - Anyways, both use same Cortex-A8 and everything related to MMU or Caches is the same (is it?), therefore, it should not make any difference. I noticed, in MMUConfigAndEnable() below constant is used. What is it? What is it for? /* To configure as a section. Section Size is 1MB */ #define MMU_PGTYPE_SECTION (0xFFF04002) Thanks and regards!!! On Saturday, December 10, 2016 at 3:28:36 PM UTC+1, Laurent GONZALEZ wrote: > > On 08/12/2016 05:15, Jaime Andrés Aranguren Cardona wrote: > > - If instead I call CacheDisable(CACHE_ALL); performance gets down, but > just by little margin, see below: > > I guess that cache were never enabled at all. Performance without caches > must be dramatically lower (kind of ratio between your bare-metal and Linux) > I don't know StarterWare enough to tell you what to do , but remember that > data cache is only running when MMU is on, so make sure MMU is on. > -- > Laurent > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/adfe0607-2633-4b1c-a7a6-3a5036239b56%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
