Altera_Forum
Honored Contributor
15 years ago60% performance loss when using µC/OS-II?
Hi all,
my application doesn't work anymore after integrating it into the Webserver template. In trying to find the cause, I'm using the Altera-provided Dhrystone test. When run in a stand alone example, it reports 119DMips (as you'd expect from a 100MHz NIOS-II/f). When run from a µC/OS-II template, it reports only ~35DMips. Even if called right after main(), before the creation of any Task and calling OSStart(), I don't get above 40 DMips. I already tried disabling all interrupts and disabling hardware initialisation in alt_main(), but no change. The hardware has a NIOSII, ICache, SDRAM, EPCS and CFI running at 100MHz, and some periphereals including UART, TSE&SGDMA, PIO, EPCS running at 50MHz. Periphereals are separated using Clock crossing resp. pipeline bridges, where it made sense to me. I changed the system to a minimal one (NIOS2/f, ICache, SDRAM, EPCS, JTAG-Uart, SysclkTimer, TimestampTimer), but the preformance impact doesn't change. Can someone point me to what I am missing? Thanks!