Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Test programme for microC/OS II on NIOS II

Hi,

I'm using microC/OS II with Nios II ISS to analyse the execution trace of this OS running on NIOS II. Right now I'm using the default hello world and successfully generate the trace file. My question is, does anyone know a good programme (or testbench) (FFT for example) for microC/OS that I can try?

Thanks,

Kind Regards,

Fairuz

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Why not write some test programs - say do to factorials. You could perhaps play around with a couple of different math functions that use a common I/O display function to write data say to your JTAG UART.

    Try using a semaphore to enable both tasks to share the single I/O without getting a garbled output in the console debug window.

    I recommend taking a look at this book if you want to get serious with using MicroC/OS-II:

    http://www.amazon.com/microc-os-ii-real-time-jean-labrosse/dp/0879305436
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Thanks for the answer. Actually I already have the book and it really is recommended for someone who want to learn MicroC/OS-II. I will try to make programs like you suggested. I just thought that there are programs/testbench such as Mibench for MicroC/OS-II.

    Thanks,