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.

RTOS: SysBios/NoSysBios - EMIFA/EMIFB Speed differences

Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello together,

// OMAPL137BZKB3

I'm using SysBios (just the BIOS module) for my project and I am running my firmware wihtin the L2 RAM (256k).
After some years my project has become quite big and it will not fit into the L2 RAM anymore.
So since I'm not using tasks or anything special from the SysBios, my solution was to simply remove the SysBios from my project (gave me about 25k space back).
Everything worked fine so far, but I figured out that for some reason the memory accesses seems to be faster with SysBios.

I made two test projects with same code to figure that out (SysBios/NoSysBios):
(I tested this by toggleing pins and read them with an oszi)

void main(void)
{
  // INIT STUFF (SAME FOR SysBios/NoSysBios)
  // PLL 300MHz
  // SDRAM 16 MB (0xC7000000 - 0xC8000000) -> using same EMIFB configuration
  // ...
  
	Uint8 * pSdram;

  // just using a SDRAM(EMIFB) address
	pSdram = (Uint8*)0xC7FFFB00;
  
  // Writing on EMIFB
  // SysBios   -> 54ns
  // NoSysBios -> 54ns
	*pSdram = 0;      
  
  // Reading/Writing on EMIFB
  // SysBios   -> 54ns
  // NoSysBios -> 54ns
	*pSdram ^= *pSdram;
  
  // Reading from EMIFB/Writing on EMIFA
  // SysBios   -> 67ns
  // NoSysBios -> 242ns // ???
	*((volatile Uint8*)0x60000301) = *pSdram;
  
  // Writing on EMIFA
  // SysBios   -> 54ns
  // NoSysBios -> 54ns
	*((volatile Uint8*)0x60000301) = 0; 
  
  // Reading/Writing on EMIFA
  // SysBios   -> 320ns
  // NoSysBios -> 307ns
	*((volatile Uint8*)0x60000301) ^= *((volatile Uint8*)0x60000301);
}

When getting the register dump from CCS for both projects the configuration is the same.
Also the assembler code of this main.obj looks exactly the same.

Does anyone have an idea what this causes?

Best Regards, Tom