But CHDK is running just not showing the menus, I have been chasing through main, gui and conf in the core trying to see what could cause the crash when you activate OPT_DEBUGGING.
edit:display drawing issues could be related to RefreshPhysicalScreen (AKA ScreenUnLock) and ScreenLock.
You shouldn't have to change any of those........display drawing issues could be related to RefreshPhysicalScreen (AKA ScreenUnLock) and ScreenLock.
By the way, if you add to stubs_entry_2 I think it needs to be NHSTUB, I made that mistake.
NHSTUB(AllocateMemory, 0xFFA6954C)NHSTUB(GetSystemTime, 0xFF8606AC)NHSTUB(UpdateMBROnFlash, 0xFF857924)NHSTUB(qsort, 0xFFAAF200)NHSTUB(AllocateUncacheableMemory, 0xFF82780C)NHSTUB(EnterToCompensationEVF, 0xFF825748)NHSTUB(ExitFromCompensationEVF, 0xFF8257F4)NHSTUB(GetDrive_ClusterSize, 0xFF857ACC) // ?? not sureNHSTUB(GetDrive_FreeClusters, 0xFF857B24)NHSTUB(GetDrive_TotalClusters, 0xFF857AF8)NHSTUB(RefreshPhysicalScreen, 0xFF9D4F7C)NHSTUB(TurnOffBackLight, 0xFF889254)NHSTUB(VbattGet, 0xFF820644) // ?? not sureNHSTUB(kbd_read_keys, 0xFF821E24)NHSTUB(strchr, 0xFF88FCAC)NHSTUB(vsprintf, 0xFF81CBA0)NHSTUB(SetPropertyCase, 0xFF8741E0)NHSTUB(kbd_read_keys_r2, 0xFF847B04)NHSTUB(strrchr, 0xFF9D7430)NHSTUB(GetCurrentTargetDistance, 0xFF92F7E4)NHSTUB(GetOpticalTemperature, 0xFF84B61C)NHSTUB(kbd_p2_f, 0xFF821760)NHSTUB(PostLogicalEventForNotPowerType, 0xFF879A08)NHSTUB(LEDDrive, 0xFF847614)NHSTUB(apex2us, 0xFF9D8170)NHSTUB(WriteSDCard, 0xFF920CA4)NHSTUB(UnlockAF, 0xFF825644)NHSTUB(DoAFLock, 0xFF82560C)NHSTUB(ExpCtrlTool_StartContiAE, 0xFF8303C0)NHSTUB(ExpCtrlTool_StopContiAE, 0xFF830504)NHSTUB(GiveSemaphore, 0xFF827228)NHSTUB(UnsetZoomForMovie, 0xFFD3E94)NHSTUB(eventproc_export_PostLogicalEventToUI, 0xff879a54)NHSTUB(eventproc_export_SleepTask, 0xff827490)NHSTUB(eventproc_export_ExitTask, 0xff81b23c)NHSTUB(MakeAFScan, 0xFF93B4B8) //different from other cams but simular to SX110NHSTUB(PostLEDMessage, 0xFF847470 ) //questionable, might be wrong... simular to SX110// found by tr1stan and validatedNHSTUB(PT_PlaySound, 0xFF86046C) NHSTUB(platformsub_kbd_fetch_data, 0xFF848340)// not found so - pointed these at nullsub_1 as labelled in IDANHSTUB(SetZoomActuatorSpeedPercent, 0xFF810950) // ??????????????????? may be around FFA5BCAC SetZoomActuatorSpeedPPSNHSTUB(rewinddir, 0xFF810950) // ???????????????????NHSTUB(Unmount_FileSystem, 0xFF810950) // ???????????????????NHSTUB(Mount_FileSystem, 0xFF810950) // ???????????????????NHSTUB(kbd_pwr_off, 0xFF810950) // ???????????????????NHSTUB(kbd_pwr_on, 0xFF810950) // ??????????????????? may be around FF848340NHSTUB(TurnOffMic, 0xFF810950) // ???????????????????NHSTUB(TurnOnMic, 0xFF810950) // ???????????????????