-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
100 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Projects/B-L462E-CELL1/2_Images_SECoreBin/Binary/OEM_KEY_COMPANY1_key_AES_CBC.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OEM_KEY_COMPANY1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Projects/STM32L496G-DISCO/2_Images_SECoreBin/Binary/OEM_KEY_COMPANY1_key_AES_CBC.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OEM_KEY_COMPANY1 |
1 change: 1 addition & 0 deletions
1
Projects/STM32L496G-DISCO/2_Images_SECoreBin/Binary/OEM_KEY_COMPANY1_key_AES_GCM.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OEM_KEY_COMPANY1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
# Following patch was applied to STM32U5's HAL OSPI driver to disable optimizations | ||
# for certain functions. Compiling the app in -Os mode for certain STM32CubeIDE | ||
# Following patch was applied to STM32U5's HAL OSPI driver to disable | ||
# optimizations. Compiling the app in -Os mode for certain STM32CubeIDE | ||
# versions causes the driver to not function correctly. | ||
|
||
diff --git a/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ospi.c b/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ospi.c | ||
index 3d38b50..22643c7 100644 | ||
index 3d38b50..6ef32b0 100644 | ||
--- a/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ospi.c | ||
+++ b/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ospi.c | ||
@@ -3000,6 +3000,7 @@ static void OSPI_DMAAbortCplt(DMA_HandleTypeDef *hdma) | ||
* @param Tickstart : Tick start value | ||
* @retval HAL status | ||
@@ -1,3 +1,5 @@ | ||
+#pragma GCC push_options | ||
+#pragma GCC optimize ("-O0") | ||
/** | ||
****************************************************************************** | ||
* @file stm32u5xx_hal_ospi.c | ||
@@ -3526,3 +3528,5 @@ HAL_StatusTypeDef HAL_OSPI_DLYB_GetClockPeriod(OSPI_HandleTypeDef *hospi, HAL_OS | ||
*/ | ||
+__attribute__((optimize("O0"))) | ||
static HAL_StatusTypeDef OSPI_WaitFlagStateUntilTimeout(OSPI_HandleTypeDef *hospi, uint32_t Flag, | ||
FlagStatus State, uint32_t Tickstart, uint32_t Timeout) | ||
{ | ||
@@ -3031,6 +3032,7 @@ static HAL_StatusTypeDef OSPI_WaitFlagStateUntilTimeout(OSPI_HandleTypeDef *hosp | ||
* @param cmd : structure that contains the command configuration information | ||
* @retval HAL status | ||
*/ | ||
+__attribute__((optimize("O0"))) | ||
static HAL_StatusTypeDef OSPI_ConfigCmd(OSPI_HandleTypeDef *hospi, OSPI_RegularCmdTypeDef *cmd) | ||
{ | ||
HAL_StatusTypeDef status = HAL_OK; | ||
|
||
#endif /* OCTOSPI || OCTOSPI1 || OCTOSPI2 */ | ||
+ | ||
+#pragma GCC pop_options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Following patch was applied to X-Cube-Cellular 7.1.0 to make it more | ||
# compatible with some newer revisions of the TYPE1SC firmware, in which the | ||
# AT%DNSRSLV request sometimes takes longer than 15 seconds if performed just | ||
# after attaching to the network. The timeout may cause the eventual response | ||
# to interfere with subsequent AT command requests, which causes a fatal error | ||
# in a situation where successful communication is perfectly possible. | ||
|
||
diff --git a/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Inc/at_custom_modem_specific.h b/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Inc/at_custom_modem_specific.h | ||
index 4f6924bb..258e87fc 100644 | ||
--- a/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Inc/at_custom_modem_specific.h | ||
+++ b/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Inc/at_custom_modem_specific.h | ||
@@ -71,6 +71,7 @@ extern "C" { | ||
#define TYPE1SC_SIMREADY_TIMEOUT ((uint32_t)3000U) | ||
|
||
#if (USE_SOCKETS_TYPE == USE_SOCKETS_MODEM) | ||
+#define TYPE1SC_DNSRSLV_TIMEOUT ((uint32_t)60000) /* 60 sec */ | ||
#define TYPE1SC_PING_TIMEOUT ((uint32_t)15000) /* 15 sec */ | ||
#endif /* (USE_SOCKETS_TYPE == USE_SOCKETS_MODEM)*/ | ||
|
||
diff --git a/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Src/at_custom_modem_specific.c b/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Src/at_custom_modem_specific.c | ||
index 5bd1d6a3..f7aa4ad2 100644 | ||
--- a/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Src/at_custom_modem_specific.c | ||
+++ b/Drivers/BSP/X_STMOD_PLUS_MODEMS/TYPE1SC/AT_modem_type1sc/Src/at_custom_modem_specific.c | ||
@@ -256,7 +256,7 @@ void ATCustom_TYPE1SC_init(atparser_context_t *p_atp_ctxt) | ||
fCmdBuild_SOCKETDATA_RECEIVE, fRspAnalyze_SOCKETDATA | ||
}, | ||
{ | ||
- CMD_AT_DNSRSLV, "%DNSRSLV", TYPE1SC_DEFAULT_TIMEOUT, | ||
+ CMD_AT_DNSRSLV, "%DNSRSLV", TYPE1SC_DNSRSLV_TIMEOUT, | ||
fCmdBuild_DNSRSLV, fRspAnalyze_DNSRSLV | ||
}, | ||
{ |