Skip to content

Commit

Permalink
Added fix for 917SoC power cycle, enable UART pin for lib shell (#25863)
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-srishylam authored and pull[bot] committed Jul 29, 2023
1 parent 06bd74a commit 9939582
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/platform/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ declare_args() {
# Argument to force enable WPA3 security on rs91x
rs91x_wpa3_only = false

# use commissionable data for SiWx917
siwx917_commissionable_data = false

#default WiFi SSID
chip_default_wifi_ssid = ""

Expand Down Expand Up @@ -145,6 +148,10 @@ source_set("siwx917-attestation-credentials") {
}

source_set("siwx917-factory-data-provider") {
if (siwx917_commissionable_data) {
defines = [ "SIWX917_USE_COMISSIONABLE_DATA=1" ]
}

sources = [
"SiWx917DeviceDataProvider.cpp",
"SiWx917DeviceDataProvider.h",
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917DeviceDataProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ class SIWx917DeviceDataProvider : public CommissionableDataProvider,

static SIWx917DeviceDataProvider & GetDeviceDataProvider();
CHIP_ERROR GetSetupPayload(MutableCharSpan & payloadBuf);
#ifdef SIWX917_USE_COMISSIONABLE_DATA
void setupPayload(uint8_t * outBuf);
CHIP_ERROR FlashFactoryData();
#endif /* SIWX917_USE_COMISSIONABLE_DATA */
// ===== Members functions that implement the CommissionableDataProvider
CHIP_ERROR GetSetupDiscriminator(uint16_t & setupDiscriminator) override;
CHIP_ERROR SetSetupDiscriminator(uint16_t setupDiscriminator) override { return CHIP_ERROR_NOT_IMPLEMENTED; }
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/SiWx917/ldscripts/SiWx917.ld
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ SECTIONS
} > FLASH

/* Last page of flash is reserved for the manufacturing token space */
linker_nvm_end = __main_flash_end__ - 2048;
linker_nvm_end = __main_flash_end__ - 4096;
linker_nvm_begin = linker_nvm_end - SIZEOF(.nvm);
linker_nvm_size = SIZEOF(.nvm);
__nvm3Base = linker_nvm_begin;
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ void uartConsoleInit(void)

status = UARTdrv->Initialize(ARM_USART_SignalEvent);
// Setting the GPIO 30 of the radio board (TX)
// Setting the GPIO 29 of the radio board (RX)
RSI_EGPIO_HostPadsGpioModeEnable(30);
RSI_EGPIO_HostPadsGpioModeEnable(29);

// Initialized board UART
DEBUGINIT();
Expand Down

0 comments on commit 9939582

Please sign in to comment.