I am getting my feet wet in doing a CHDK port and to get more familiar with how things work inside a build, I am taking an existing working port for the SD400 and I am stripping it down to some simple code that just loads CHDK and flashes an LED.
All is going well, but I have found that as the code size gets smaller (less than 15KB), CHDK will not start up reliably. The camera sometimes starts OK or sometimes just extends the lens a tiny amount and shuts down or sometimes will not start at all.
Thinking that this may be related to the code starting up too fast, I lengthened the time in the loader startup delay loop by a factor of 10 and 100 with no help.
Are there any other things I should look at to make the camera start up more reliably?