HumanDynamics / openbadge

MIT License
49 stars 19 forks source link

Badge tester code does not work in firmware 2.0 #82

Closed OrenLederman closed 6 years ago

OrenLederman commented 7 years ago

The badge keep restarting

temporary fix - use code from the old version

OrenLederman commented 7 years ago

It looks like an event handler, storer_on_sys_evt, ends up calling the function flash_erase_success_callback. These is a series of calls (Storer_ScheduleBufferedDataStorage -> StorerSchedulerCallbackHandler_StoreBufferedData ) that eventually calls Storer_StoreBufferedData. I think that this function fails because we do not initialize the storer when running the tester code.

For now, I'm just going to comment the internal flash test and wait until we decouple the storer from flash management.