Skip to content

Commit 47e943a

Browse files
authored
Merge pull request #13558 from jeromecoutant/PR_L4PLUS_SRAM3
STM32L4+ : SRAM3 is powered off in deepsleep
2 parents 468372e + e650470 commit 47e943a

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

targets/TARGET_STM/sleep.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ __WEAK void hal_deepsleep(void)
192192
HAL_PWREx_DisableLowPowerRunMode();
193193
}
194194

195+
#if defined(PWR_CR1_RRSTP)
196+
HAL_PWREx_EnableSRAM3ContentRetention();
197+
#endif
198+
195199
HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);
196200

197201
if (lowPowerModeEnabled) {

targets/targets.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,11 +3290,7 @@
32903290
"device_has_add": [
32913291
"USBDEVICE"
32923292
],
3293-
"device_name": "STM32L4R5ZI",
3294-
"mbed_rom_start": "0x08000000",
3295-
"mbed_rom_size": "0x200000",
3296-
"mbed_ram_start": "0x20000000",
3297-
"mbed_ram_size": "0x40000"
3293+
"device_name": "STM32L4R5ZITx"
32983294
},
32993295
"NUCLEO_L4R5ZI_P": {
33003296
"inherits": [
@@ -3308,6 +3304,7 @@
33083304
"inherits": [
33093305
"MCU_STM32L4"
33103306
],
3307+
"device_name": "STM32L4R9AIIx",
33113308
"supported_form_factors": [
33123309
"ARDUINO",
33133310
"STMOD",
@@ -3330,11 +3327,7 @@
33303327
"device_has_add": [
33313328
"QSPI",
33323329
"USBDEVICE"
3333-
],
3334-
"mbed_rom_start": "0x08000000",
3335-
"mbed_rom_size": "0x200000",
3336-
"mbed_ram_start": "0x20000000",
3337-
"mbed_ram_size": "0x40000"
3330+
]
33383331
},
33393332
"B_L4S5I_IOT01A": {
33403333
"inherits": [

0 commit comments

Comments
 (0)