Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9939582

Browse files
silabs-srishylampull[bot]
authored andcommittedJul 29, 2023
Added fix for 917SoC power cycle, enable UART pin for lib shell (#25863)
1 parent 06bd74a commit 9939582

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed
 

‎examples/platform/silabs/SiWx917/BUILD.gn

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ declare_args() {
3535
# Argument to force enable WPA3 security on rs91x
3636
rs91x_wpa3_only = false
3737

38+
# use commissionable data for SiWx917
39+
siwx917_commissionable_data = false
40+
3841
#default WiFi SSID
3942
chip_default_wifi_ssid = ""
4043

@@ -145,6 +148,10 @@ source_set("siwx917-attestation-credentials") {
145148
}
146149

147150
source_set("siwx917-factory-data-provider") {
151+
if (siwx917_commissionable_data) {
152+
defines = [ "SIWX917_USE_COMISSIONABLE_DATA=1" ]
153+
}
154+
148155
sources = [
149156
"SiWx917DeviceDataProvider.cpp",
150157
"SiWx917DeviceDataProvider.h",

‎examples/platform/silabs/SiWx917/SiWx917DeviceDataProvider.h

+2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ class SIWx917DeviceDataProvider : public CommissionableDataProvider,
3939

4040
static SIWx917DeviceDataProvider & GetDeviceDataProvider();
4141
CHIP_ERROR GetSetupPayload(MutableCharSpan & payloadBuf);
42+
#ifdef SIWX917_USE_COMISSIONABLE_DATA
4243
void setupPayload(uint8_t * outBuf);
4344
CHIP_ERROR FlashFactoryData();
45+
#endif /* SIWX917_USE_COMISSIONABLE_DATA */
4446
// ===== Members functions that implement the CommissionableDataProvider
4547
CHIP_ERROR GetSetupDiscriminator(uint16_t & setupDiscriminator) override;
4648
CHIP_ERROR SetSetupDiscriminator(uint16_t setupDiscriminator) override { return CHIP_ERROR_NOT_IMPLEMENTED; }

‎examples/platform/silabs/SiWx917/ldscripts/SiWx917.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ SECTIONS
203203
} > FLASH
204204

205205
/* Last page of flash is reserved for the manufacturing token space */
206-
linker_nvm_end = __main_flash_end__ - 2048;
206+
linker_nvm_end = __main_flash_end__ - 4096;
207207
linker_nvm_begin = linker_nvm_end - SIZEOF(.nvm);
208208
linker_nvm_size = SIZEOF(.nvm);
209209
__nvm3Base = linker_nvm_begin;

‎examples/platform/silabs/SiWx917/uart.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ void uartConsoleInit(void)
8282

8383
status = UARTdrv->Initialize(ARM_USART_SignalEvent);
8484
// Setting the GPIO 30 of the radio board (TX)
85+
// Setting the GPIO 29 of the radio board (RX)
8586
RSI_EGPIO_HostPadsGpioModeEnable(30);
87+
RSI_EGPIO_HostPadsGpioModeEnable(29);
8688

8789
// Initialized board UART
8890
DEBUGINIT();

0 commit comments

Comments
 (0)
Please sign in to comment.