You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a extra pair of eyes on some TinyGo code for an ESP32-C6. I'm trying to enable the power detector (PWDET), but the bits never actually seem to get set in the register.
Here is what I currently have:
const (
c6PwDetConfigReg = uintptr(0x600A0810) // see soc/esp32c6/register/soc/reg_base.h
c6PwDetSarPowerForceBit = uint32(1 << 24) // bits are defined in hal/esp32c6/include/hal/sar_ctrl_ll.h
c6PwDetSarPowerControlBit = uint32(1 << 23)
)
// code in a function
// Enable PWDET see hal at: sar_ctrl_ll_set_power_mode_from_pwdet(SAR_CTRL_LL_POWER_ON);
c6PwDetCfg := (*volatile.Register32)(unsafe.Pointer(c6PwDetConfigReg))
c6PwDetCfg.SetBits(c6PwDetSarPowerForceBit)
c6PwDetCfg.SetBits(c6PwDetSarPowerControlBit)
Has anyone run into silent register write failures like this on the ESP32? Any ideas on what I might be missing would be super helpful!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone,
I need a extra pair of eyes on some TinyGo code for an ESP32-C6. I'm trying to enable the power detector (PWDET), but the bits never actually seem to get set in the register.
Here is what I currently have:
Has anyone run into silent register write failures like this on the ESP32? Any ideas on what I might be missing would be super helpful!
All reactions