Skip to content

Commit cc49560

Browse files
committed
Disable lp-ticker for STM targets which uses RTC/LSI for lp-ticker
According to the documentation of STM32F437VG76 MCU: The LSI RC acts as an low-power clock source that can be kept running in Stop and Standby mode for the independent watchdog (IWDG) and Auto-wakeup unit (AWU). The clock frequency is around 32 kHz. For more details, refer to the electrical characteristics section of the datasheets. It seems that typical LSI frequency is 32 kHz, but it may vary from 17 to 47 kHz! This means that lp-timer test may fail on the same board because lp-ticker frequency is unstable.
1 parent b08dc22 commit cc49560

File tree

1 file changed

+36
-81
lines changed

1 file changed

+36
-81
lines changed

targets/targets.json

Lines changed: 36 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,9 +3546,8 @@
35463546
"CAN",
35473547
"CRC"
35483548
],
3549-
"release_versions": [
3550-
"2"
3551-
],
3549+
"device_has_remove": ["LPTICKER"],
3550+
"release_versions": ["2"],
35523551
"device_name": "STM32F303K8"
35533552
},
35543553
"NUCLEO_F303RE": {
@@ -3739,13 +3738,9 @@
37393738
"FLASH",
37403739
"MPU"
37413740
],
3742-
"overrides": {
3743-
"lse_available": 0
3744-
},
3745-
"release_versions": [
3746-
"2",
3747-
"5"
3748-
],
3741+
"device_has_remove": ["LPTICKER"],
3742+
"overrides": { "lse_available": 0 },
3743+
"release_versions": ["2", "5"],
37493744
"device_name": "STM32F401VE"
37503745
},
37513746
"NUCLEO_F410RB": {
@@ -3984,9 +3979,8 @@
39843979
"overrides": {
39853980
"lse_available": 0
39863981
},
3987-
"inherits": [
3988-
"USI_WM_BN_BM_22"
3989-
]
3982+
"device_has_remove": ["LPTICKER"],
3983+
"inherits": ["USI_WM_BN_BM_22"]
39903984
},
39913985
"MTB_ADV_WISE_1530": {
39923986
"inherits": [
@@ -5758,6 +5752,7 @@
57585752
"CRC",
57595753
"MPU"
57605754
],
5755+
"device_has_remove": ["LPTICKER"],
57615756
"device_name": "STM32F303VC"
57625757
},
57635758
"DISCO_F334C8": {
@@ -5788,6 +5783,7 @@
57885783
"CRC",
57895784
"SERIAL_ASYNCH"
57905785
],
5786+
"device_has_remove": ["LPTICKER"],
57915787
"default_lib": "small",
57925788
"release_versions": [
57935789
"2"
@@ -5814,19 +5810,10 @@
58145810
"value": "USE_USB_OTG_FS"
58155811
}
58165812
},
5817-
"overrides": {
5818-
"lse_available": 0
5819-
},
5820-
"device_has_add": [
5821-
"ANALOGOUT",
5822-
"TRNG",
5823-
"FLASH",
5824-
"MPU"
5825-
],
5826-
"release_versions": [
5827-
"2",
5828-
"5"
5829-
],
5813+
"overrides": { "lse_available": 0 },
5814+
"device_has_add": ["ANALOGOUT", "TRNG", "FLASH", "MPU"],
5815+
"device_has_remove": ["LPTICKER"],
5816+
"release_versions": ["2", "5"],
58305817
"device_name": "STM32F407VG"
58315818
},
58325819
"OLIMEX_STM32E407_F407ZG": {
@@ -5861,9 +5848,8 @@
58615848
"CAN",
58625849
"USBDEVICE"
58635850
],
5864-
"release_versions": [
5865-
"5"
5866-
],
5851+
"device_has_remove": ["LPTICKER"],
5852+
"release_versions": ["5"],
58675853
"device_name": "STM32F407ZG"
58685854
},
58695855
"DISCO_F429ZI": {
@@ -5900,10 +5886,8 @@
59005886
"FLASH",
59015887
"MPU"
59025888
],
5903-
"release_versions": [
5904-
"2",
5905-
"5"
5906-
],
5889+
"device_has_remove": ["LPTICKER"],
5890+
"release_versions": ["2", "5"],
59075891
"device_name": "STM32F429ZI",
59085892
"bootloader_supported": true
59095893
},
@@ -6558,17 +6542,9 @@
65586542
"IAR"
65596543
]
65606544
},
6561-
"device_has_add": [
6562-
"MPU",
6563-
"FLASH"
6564-
],
6565-
"device_has_remove": [
6566-
"SERIAL_FC"
6567-
],
6568-
"release_versions": [
6569-
"2",
6570-
"5"
6571-
],
6545+
"device_has_add": ["MPU", "FLASH"],
6546+
"device_has_remove": ["SERIAL_FC", "LPTICKER"],
6547+
"release_versions": ["2", "5"],
65726548
"device_name": "STM32F411RE",
65736549
"bootloader_supported": true
65746550
},
@@ -6701,7 +6677,8 @@
67016677
"MPU"
67026678
],
67036679
"device_has_remove": [
6704-
"SERIAL_FC"
6680+
"SERIAL_FC",
6681+
"LPTICKER"
67056682
],
67066683
"post_binary_hook": {
67076684
"function": "MTSCode.combine_bins_mtb_mts_dragonfly",
@@ -6996,28 +6973,16 @@
69966973
}
69976974
},
69986975
"MTB_UBLOX_ODIN_W2": {
6999-
"inherits": [
7000-
"MODULE_UBLOX_ODIN_W2"
7001-
],
7002-
"device_has_add": [],
7003-
"overrides": {
7004-
"lse_available": 0
7005-
},
7006-
"release_versions": [
7007-
"5"
7008-
]
6976+
"inherits": ["MODULE_UBLOX_ODIN_W2"],
6977+
"device_has_remove": ["LPTICKER"],
6978+
"overrides": {"lse_available": 0},
6979+
"release_versions": ["5"]
70096980
},
70106981
"OKDO_ODIN_W2": {
7011-
"inherits": [
7012-
"MODULE_UBLOX_ODIN_W2"
7013-
],
7014-
"device_has_add": [],
7015-
"overrides": {
7016-
"lse_available": 0
7017-
},
7018-
"release_versions": [
7019-
"5"
7020-
]
6982+
"inherits": ["MODULE_UBLOX_ODIN_W2"],
6983+
"device_has_remove": ["LPTICKER"],
6984+
"overrides": {"lse_available": 0},
6985+
"release_versions": ["5"]
70216986
},
70226987
"UBLOX_C030": {
70236988
"inherits": [
@@ -7051,6 +7016,7 @@
70517016
"FLASH",
70527017
"MPU"
70537018
],
7019+
"device_has_remove": ["LPTICKER"],
70547020
"public": false,
70557021
"device_name": "STM32F437VG",
70567022
"bootloader_supported": true,
@@ -7127,22 +7093,11 @@
71277093
"core": "Cortex-M3",
71287094
"default_toolchain": "uARM",
71297095
"program_cycle_s": 1.5,
7130-
"extra_labels_add": [
7131-
"STM32L1",
7132-
"STM32L151RC"
7133-
],
7134-
"overrides": {
7135-
"lse_available": 0
7136-
},
7137-
"supported_toolchains": [
7138-
"ARM",
7139-
"uARM",
7140-
"GCC_ARM"
7141-
],
7142-
"device_has_add": [
7143-
"ANALOGOUT",
7144-
"MPU"
7145-
],
7096+
"extra_labels_add": ["STM32L1", "STM32L151RC"],
7097+
"overrides": { "lse_available": 0 },
7098+
"supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
7099+
"device_has_add": ["ANALOGOUT", "MPU"],
7100+
"device_has_remove": ["LPTICKER"],
71467101
"default_lib": "small",
71477102
"device_name": "STM32L151RC"
71487103
},

0 commit comments

Comments
 (0)