Customers may request access to the source-code of the firmware to modify it for their needs.
Commands & Registers (I2C)
I2C-Address: 0x40 (7-bit) | ||||
Register | Name | Access | Description | Default Value |
0x01 | REG_ID | read | ID-Register | 0xA5 |
0x02 | REG_CONTROL | write | Restart and boot with BOOT_MODE= 0x04 - Power Off | - |
0x03 | REG_CONFIG | - | - | - |
0x04 | REG_PIN_CONFIG | write | <Pin> <Parameter> 1: Input, NoPull 20: Output PushPull, init low level | - |
0x05 | REG_PIN_SET | write | <Pin> <Level> | - |
0x06 | REG_PIN_GET | write | <Pin> | - |
0x07 | REG_PWM_CONFIG | write | <Pin> <Duty Cycle [%]> | - |
0x08 | REG_SECO_CODE | read | Read SECO_CODE | 0x40 |
0x09 | REG_INT_STATUS | read | Read INT_STATUS register, clear it and reset EC_IRQ#_OD to “1” 0x01: RTC_INT# | 0x00 |
0x0A | REG_INT_ENABLE | write | Enable or disable interrupts. 0x01: RTC_INT# | - |
0x0B | REG_ALTERNATE_ | write | Set Pin to specific alternate function. <Pin> <Alternate Function> Alternate Functions: | - |
0xF0 | REG_VERSION | read | Read firmware version | 0x01 |
Configurable GPIO Pins (I2C)
The following Pins are configurable via I2C:
...
*: Not available on RevA0
Carrier board BOOT_SEL configuration
The BOOT_SEL[2:0] Configuration on the carrier board is used to determine the boot device by setting the BOOT_MODE[3:0] pins:
...
Connecting FORCE_RECOV# to GND will cause the STM32 to always set the BOOT_MODE to Serial Download Mode.
Other Functions
Holding the RESET button for >= 10 seconds will cause the system to reboot into serial download mode rather than rebooting into the mode selected by the BOOT_SEL configuration of the carrier board.