Den lørdag den 11. januar 2014 17.51.07 UTC+1 skrev Ytai: > > Glad to hear! > Re logging: you gave me an idea - the logging can be presented to the > Android as a fake UART when enabled - instead of wasting two UART > peripherals, this will use 0. >
Yes, this was the kind of hack I was thinking about, but would waste the UART in my hack. Using a fake UART would certainly be better for people needing all the UARTs. But maybe it would be prettier to add some simple logging API? One thing that is nice to have, is timestamps, but they should be as resource scarce as possible on the target, formatting can be done on the Android, or in my case on the log server. Don't know if there is a counter available in the PIC for something like this, or you have to allocate one. > Re clock calibration: well, you need some process to do that. Hard-coding > one value might be OK during development but will not give you good > precision if you're trying to run this same firmware on a different board. > Of course, you can either add an a crystal to the board, or otherwise come > up with a different calibration process (all that you need really is an > external clock provided for a short period during initial setup). > Well, I had the calibration value present in the hexfile from the board before I changed anything, but anyway, took the hardware apart to attach a USB cable to a PC. It calibrated OK, with the same value already present in the hexfile. Hopefully I am not going to change the IOIO, so I can live with this procedure. -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/groups/opt_out.
