BSOM firmware on MSOM

Hi All,

I am trying to get my firmware, which was designed on BSOMs to work on an MSOM. When I pushed the firmware yesterday it was giving me Panic, Bus Fault error.

What should be my first steps to figure out why my firmware doesn't work on the MSOM? Should I look at libraries I am using or EEPROM usage maybe?

Thanks,

Hey
my troubleshooting in this can could go like this:

  • comment out everything in loop() or add a return; at the top - does it still Panic?
  • comment out everything in setup() or add a return; at the top - does it still Panic?
  • comment all the global classes instantiating before setup - it should not panic anymore.

That way I narrow it down to where the issue might be. Not bulletproof if there are other things at play.
Best of luck!

1 Like

Thanks Gus,

Yeah i'm currently in the process of commenting out sections one by one, just feel like I'm trying to find the broken bulb in old fashioned christmas lights. :smile:

ok so try being smart about that.
Comment out the first half, then next half, instead of line after line so you converge quicker (potentially). :muscle:

Yeah most of the code is in singletons, so makes life a bit easier. But there are still some singletons that use functions from other singletons, which probably shows up that My singletons aren't optimally abstracted.

Looks like one of the principles of Extreme Programming:
Make it work, then make it better

1 Like

I am having the same issue with the SOS+4 error message. I see it regularly on both Photon2’s and M524’s. It even happens when the only ‘user’ firmware is Particle’s Tinker code. I suspect it is not your code but an internal OS issue. Rickkas7 told me in another thread that a small number of users have reported similar problems and Particle are investigating. I sure hope a solution is forthcoming as in its current form the Photon2 and M524 are totally useless for Telehealth applications.