HardFault_Handler, array initialization (STM32f103CBTx)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-04-19 2:39 PM
Hello everyone,
MCU - STM32f103CBTx, Flash - 128Kbytes, RAM - 20kBytes.
I use MDK-ARM V5 (Keil uVision 5) and compiler is - default compiler version 5.
In my program I try to initialize float array with length of 240, ( float array[240] = {0}; ) and that's it.
But, during the execution of HAL_Init(), program goes to HardFault_Handler and stay there in an infinite loop. And Keil uVision 5 command console says - "Cannot access Memory". I don't understand why it is happening because a day ago I was able to create float array with a length of 1000 and everything was working.
- Labels:
-
DEBUG
-
Keil
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-04-19 5:04 PM
Local/auto variables will need an adequate stack. Define size is startup_stm32f10x.s
Up vote any posts that you find helpful, it shows what's working..
