conf_restore();
int crashit = *(int*)0x76543210;
00000220: UI:Button:0x000010C2:WriteEnableMedia
Crash the camera using the bad card, retrieve the romlog using a good card.Then, once again, crash the camera using a good card then retrieve the romlog using a non-crashing CHDK.
QuoteCrash the camera using the bad card, retrieve the romlog using a good card.Then, once again, crash the camera using a good card then retrieve the romlog using a non-crashing CHDK.Files attached:
In the meantime, you can experiment with *(int*)1d60 = 1;(you can put it before conf_restore() again, for example), and see if it's permanent or not. Since WriteEnableMedia will remain false, this method will likely not help too much.
*(int*)0x1d60 = 1;conf_restore();
WithCode: [Select]*(int*)0x1d60 = 1;conf_restore();all 'bad' cards work well. File browser is OK,ptp works,Lua is loaded.I can't see any problems.
Try shooting photos and videos too to confirm.
I think bad cards would still crash the camera during formatting (due to the WriteEnableMedia issue), but that's not something the average user does.
I'd still like to get a bit more insight. The attached boot.c logs WriteEnableMedia and the value in 0x1d60, in the InitFileModules task. The logged values can be retrieved with thermem 0x40000000 6 -i32chdkptp command.Can you get me those values in a good and a bad case?(Please remove the core/main.c hack, this boot.c does set 0
bad card:> rmem 0x40000000 6 -i320x40000000 240x40000000: 0x00000000 0x00000000 0x00000000 0x000000000x40000010: 0x00000001 0x00000000good card:> rmem 0x40000000 6 -i320x40000000 240x40000000: 0x00000000 0x00000000 0x00000000 0x000000000x40000010: 0x00000001 0x00000001
No,camera after formatting works.
If you going to do patch for boot.c, can you please add MOVIE_REC.C in code-gen.
What would be your plan with that? Movie bitrate features are not implemented in any recent camera ports (yet).
QuoteWhat would be your plan with that? Movie bitrate features are not implemented in any recent camera ports (yet).I was thinking about the quality features.
Started by gvandyk CHDK Releases
Started by Jez General Help and Assistance on using CHDK stable releases
Started by ProfHankD « 1 2 » Feature Requests
Started by eaglesong General Chat
Started by duenyas General Discussion and Assistance