Page 1 of 1

STM32CubeMX for STM32F100RCT MCU generated project in Atollic

Posted: Tue Jun 06, 2017 10:44 am
by Anani
I am having issues when debugging STM32CubeMX for STM32F100RCT MCU generated project in Atollic. The ST-Link debugger jumps to unknown code location and generated HW fault exception. It happens with Cube generated peripheral INI HAL like TIM16, TIM17 and SPI1 as well. Usually in TIMx cases it happens when tmpcr1=TIMx->CR1; line in HAL {void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)} function is executed. In the SPI1 failure case it happens when __HAL_AFIO_REMAP_SPI1_ENABLE() macro is called. I am using Cube App V4.21, FW V.1.4 and Atollic 7.1.2 Lite. Any idea? Please help.

Re: STM32CubeMX for STM32F100RCT MCU generated project in Atollic

Posted: Thu Jun 08, 2017 8:53 am
by Anani
Hi All, in the case of ST-Link freezing when __HAL_AFIO_REMAP_SPI1_ENABLE() macro is called:
The error message is:
warning: Remote failure reply: E31
Remote failure reply: E31
As a matter of fact the re-map of SPI1 affect AFIO-MAPR register where SWD re-mapping bits are located as well.
Could that be the problem?

Re: STM32CubeMX for STM32F100RCT MCU generated project in Atollic

Posted: Wed Aug 30, 2017 10:38 pm
by frank_ee
Hello,

Is your clock speed for the MCU properly setup?