I appreciate the ease of "burning" new firmware that the mbed platform provides.
However, for my current application, I'd like to be able to modify the power-on sequence so that it doesn't wait for a button-press when power is first applied, nor use a long button press for power-off.
We're using the gcc-arm toolchain.
Does anyone have a simple suggestion for the "cleanest, most in-the-spirit-of-mbed" means to modify the power-up sequence so that it bypasses the "deep sleep until button press interrupt" and just continues on to start main() when power is applied?
I cannot find where the system is waiting for a button-press rather than for a "power-on" event to start; rather, it seems to set up the button as an interrupt and then puts itself to sleep. (GPIO Port 2, pin 1).
The "startup_max32620.S" seems to be _the_ power-up task, and it calls "SystemInit()" in system_max32620.c which contains some reference to the power register around line 74. Best I can tell, though, is that it exits this and then copies the actual program from FLASH into working RAM in the lower part of startup_max32620.S.
I can't see where gpio_irq_wud_config is called to set the button to enable wake-up, but I'm assuming that's what's happening.
Any suggestions how best to proceed?
-Tom
I appreciate the ease of "burning" new firmware that the mbed platform provides. However, for my current application, I'd like to be able to modify the power-on sequence so that it doesn't wait for a button-press when power is first applied, nor use a long button press for power-off.
We're using the gcc-arm toolchain.
Does anyone have a simple suggestion for the "cleanest, most in-the-spirit-of-mbed" means to modify the power-up sequence so that it bypasses the "deep sleep until button press interrupt" and just continues on to start main() when power is applied?
I cannot find where the system is waiting for a button-press rather than for a "power-on" event to start; rather, it seems to set up the button as an interrupt and then puts itself to sleep. (GPIO Port 2, pin 1).
The "startup_max32620.S" seems to be _the_ power-up task, and it calls "SystemInit()" in system_max32620.c which contains some reference to the power register around line 74. Best I can tell, though, is that it exits this and then copies the actual program from FLASH into working RAM in the lower part of startup_max32620.S.
I can't see where gpio_irq_wud_config is called to set the button to enable wake-up, but I'm assuming that's what's happening.
Any suggestions how best to proceed?
-Tom