[realtek-ambz2] Fix C++ support, implement SerialClass

This commit is contained in:
Kuba Szczodrzyński
2023-05-25 14:33:38 +02:00
parent c0cc602c9a
commit 9b7d34fa65
10 changed files with 161 additions and 45 deletions

View File

@@ -16,3 +16,7 @@ The code listens on UART1 for a link-check command (`01 E0 FC 01 00`). The baudr
## Realtek AmebaZ
This only works when using [ltchiptool](ltchiptool.md) for flashing. Upon starting UART communication, the tool sends `55 AA 22 E0 D6 FC` (0x55AA followed by the `realtek-ambz` family ID). After detecting that pattern, the chip proceeds to reboot into UART download mode (using [`lt_reboot_download_mode()`](../../../ltapi/lt__device_8h.md))
## Realtek AmebaZ2
The code listens on UART2 for a `ping\n` command, that is sent by [ltchiptool](ltchiptool.md) (and possibly by the vendor flasher, too). The device is then rebooted to download mode.