Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASR] Bump asr582x sdk to v1.9.0 #29424

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/platform/asr/init_asrPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ void init_asrPlatform(void)
// ota roll back,just for flash_remapping
ota_roll_back_pro();

// disable wdg
ota_wdg_disable();

// register uart for printf log, the used uart should be init before.
printf_uart_register(LEGA_UART1_INDEX);
// register uart for at log, the used uart should be init before.
Expand All @@ -161,6 +164,11 @@ void init_asrPlatform(void)
#if defined CFG_PLF_RV32 || defined CFG_PLF_DUET
lega_wlan_efuse_read();

#ifdef CFG_PLF_DUET
// set certifacation type before rf init, param 0x00 is old srrc, 0x10 is new srrc
lega_wlan_set_cert_type(0x00);
#endif

lega_sram_rf_pta_init();

lega_recovery_phy_fsm_config();
Expand Down
10 changes: 9 additions & 1 deletion third_party/asr/asr582x/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import("${chip_root}/src/platform/ASR/args.gni")
declare_args() {
# Build target to use for asr SDK. Use this to set global SDK defines.
asr_target_project = ""

# Must be "4M" or "2M". For matter, ASR582X use 4M flash default.
asr_flash_max_size = "4M"
}

assert(asr_target_project != "", "asr_target_project must be specified")
Expand Down Expand Up @@ -121,7 +124,6 @@ config("asr_sdk_config") {
"CONFIG_IEEE80211W",
"WFA_CERTIFICATE_N",
"CFG_DUET_5822S",
"CFG_DUET_5822T",
"MBEDTLS_HW",
"MBEDTLS_HW_RSA",
"MBEDTLS_HW_ECC",
Expand All @@ -133,6 +135,12 @@ config("asr_sdk_config") {
"CFG_EASY_LOG_MODULE_EN=1",
]

if (asr_flash_max_size == "2M") {
defines += [ "_OTA_CMP_VENDOR_" ]
} else {
defines += [ "CFG_DUET_5822T" ]
}

cflags_c = [
"-mcpu=cortex-m4",
"-Os",
Expand Down
2 changes: 1 addition & 1 deletion third_party/asr/asr582x/asr_sdk
Submodule asr_sdk updated 45 files
+2 −0 common/duet/duet_common.h
+7 −0 demo/matter_demo/app/ld/5822t/gcc.ld
+ lib/5822s/libasr_combo_v6.a
+ lib/ble/lib_ble_mesh.a
+13 −1 lib/ble/sonata_api_task.h
+1 −1 lib/ble/sonata_att.h
+5 −3 lib/ble/sonata_ble_api.h
+1 −1 lib/ble/sonata_ble_hook.h
+1 −1 lib/ble/sonata_ble_rom.h
+2 −2 lib/ble/sonata_ble_transport.h
+3 −3 lib/ble/sonata_config.h
+4 −2 lib/ble/sonata_error_api.h
+1 −1 lib/ble/sonata_gap.h
+158 −43 lib/ble/sonata_gap_api.h
+1 −1 lib/ble/sonata_gatt_api.h
+20 −2 lib/ble/sonata_ll_api.h
+1 −1 lib/ble/sonata_log.h
+4 −3 lib/ble/sonata_mesh_api.h
+1 −1 lib/ble/sonata_prf_diss_api.h
+1 −1 lib/ble/sonata_prf_hogpd_api.h
+88 −4 lib/ble/sonata_private_protocol_api.h
+1 −1 lib/ble/sonata_sec_api.h
+13 −1 lib/ble/sonata_utils_api.h
+14 −21 lib/sys/ota_port.h
+16 −2 lib/wifi/lega_wlan_api.h
+0 −1 peripheral/duet/inc/duet_gpio.h
+5 −1 peripheral/duet/inc/duet_pinmux.h
+2 −1 peripheral/duet/inc/duet_spi.h
+9 −0 peripheral/duet/inc/duet_wdg.h
+31 −13 peripheral/duet/src/duet_adc.c
+8 −2 peripheral/duet/src/duet_gpio.c
+98 −16 peripheral/duet/src/duet_i2c.c
+23 −1 peripheral/duet/src/duet_i2s.c
+45 −277 peripheral/duet/src/duet_pinmux.c
+27 −0 peripheral/duet/src/duet_spi.c
+3 −0 peripheral/duet/src/duet_uart.c
+12 −4 peripheral/duet/src/duet_wdg.c
+38 −27 platform/duet/system/include/duet_cm4.h
+2 −2 platform/duet/system/include/system_coredump.h
+3 −0 platform/duet/system/soc_init.c
+ tools/factory_bin/ASR5822_ate_v1.3.6_common_uart1.bin
+ tools/factory_bin/ASR582X/ASRATE_VERSION_582X_MX_V1.3.8_uart1.bin
+ tools/factory_bin/ASR582X/ASRBOOTLOADER-58XX-MX-V1.0.10-2M-UART1-202305291348.bin
+ tools/factory_bin/ASR582X/ASRBOOTLOADER-58XX-MX-V2.0.5-4M-UART1-202305291348.bin
+1 −1 version/duet_version.h
Loading