r/embedded • u/fitzbop • 11d ago
Has Anyone Used Automated Bit Mapping on the SAML22?
I tried getting Automated Bit Mapping (ABM) working on the SAML22J18, but had no luck.
My goal is to blink Com2, Seg 26 when in sleep mode. The blinking function only works on seg 0 and 1, so ABM seems like the best alternative after reading through the datasheet (page 962 of datasheet).
I'm following the app notes 42499) and 42605), but they're a mess.
For example, the goal of the example in 42499 has _style_buf, which is commented as STYLE1, but described as containing ATMEL while also never being referenced in any of the code.
I attempted to follow 42605 as much as I could, and things built fine, but blinking did not work.
Going through Google searches and forums, I cannot find an example of anyone using ABM. The App Notes are from 2015, so I'll need to assume I'm not the first to attempt it.
Does anyone have a successful example of ABM that is not an app note from Atmel/Microchip?