I am trying to get a timer counter example to work for days now. I cannot figure out at all why it is not working. At this time, I am thinking that either my yagarto setup is creating bad code (very unlikely) or that my board is faulty (also very unlikely)…
So, I created a bin file by compiling the example from http://www.ethernut.de/en/documents/at91-timer-irq.html. It downloads, and outputs meaningful values at the beginning (mcu speed, etc…), however when it comes to the main loop that should display the counter ticks, it always says: “0 counter ticks”. It is driving me crazy.
I have attached the bin file at http://www.vidrica.com/prz/timer.bin (compiled to download into flash). If someone with the board can download this file and let me know if it is outputting anything other than 0 ticks, I would really appreciate it. The serial port setting should be at 115200.
There is also another file (http://www.vidrica.com/prz/timer_dbg.bin) that is the same thing with more debug information. It also dumps zeroes all over, where it shouldn’t.
I’m not familiar about Ethernut so I do not know do you need to enable those clocks via PMC or are those enabled by default by some initialisation routine?