use realloc to imporve stability

This commit is contained in:
Lyon 2021-09-26 12:06:28 +08:00
parent 7e73b3ad7d
commit 1a3cbcb7eb
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void NMI_Handler(void) {
*/
void HardFault_Handler(void) {
/* USER CODE BEGIN HardFault_IRQn 0 */
printf("[error]: Hard fault. Please reset the device.");
/* USER CODE END HardFault_IRQn 0 */
while (1) {
/* USER CODE BEGIN W1_HardFault_IRQn 0 */

View File

@ -313,7 +313,7 @@
</ArmAdsMisc>
<Cads>
<interw>1</interw>
<Optim>1</Optim>
<Optim>5</Optim>
<oTime>0</oTime>
<SplitLS>0</SplitLS>
<OneElfS>1</OneElfS>
@ -332,7 +332,7 @@
<v6LangP>3</v6LangP>
<vShortEn>1</vShortEn>
<vShortWch>1</vShortWch>
<v6Lto>0</v6Lto>
<v6Lto>1</v6Lto>
<v6WtE>0</v6WtE>
<v6Rtti>0</v6Rtti>
<VariousControls>