Dumping output/Logging in CHDK firmware

  • 1 Replies
  • 815 Views
Dumping output/Logging in CHDK firmware
« on: 28 / February / 2015, 20:05:47 »
Advertisements
Hi everyone:

I am current dealing with CHDK firmware for a project. During my debug procedure, I want to log some of the data during the runtime so that it can help me understand it better. However, it seems that in CHDK the fprintf didn't compile. Is there any special API/function for me to use on CHDK(the firmware itself, not the Lua script) so that I can dump the output into a file? ::)

*

Offline reyalp

  • ******
  • 11583
Re: Dumping output/Logging in CHDK firmware
« Reply #1 on: 28 / February / 2015, 20:21:56 »
sprintf to a buffer, fwrite() or write() the buffer to the file.

Some other useful debugging tips may be found in http://chdk.wikia.com/wiki/Debugging
On dryos cameras you can use uart redirection and use the cameras Printf function.
Don't forget what the H stands for.

 

Related Topics