2020-07-06 12:28 PM
Hi,
I'm trying to port SBSFU example (L476 Nucleo) to L475 MCU for a custom board. My user app works fine without the SBSFU but when I combine them the clock breaks and HAL_Delay gets stuck. The UserApp of the example project however works fine. I have tried the following:
I'm not sure where to proceed from here so I appreciate any hints or ideas.
Solved! Go to Solution.
2020-07-07 12:26 AM
Hello,
did you relocate the vector table of your application like it is done in system_stm32l4xx.c in the original UserApp ?
#if defined(__ICCARM__)||defined(__GNUC__)
extern uint32_t __ICFEDIT_intvec_start__;
#define INTVECT_START ((uint32_t)& __ICFEDIT_intvec_start__)
#elif defined(__CC_ARM)
extern uint32_t Image$$vector_start$$Base;
#define INTVECT_START ((uint32_t)& Image$$vector_start$$Base)
#endif
void SystemInit(void)
{
...
SCB->VTOR = INTVECT_START;
Best regards
Jocelyn
2020-07-06 10:33 PM
Hi ,
Find the HAL_IncTick function in stm32xxxx_it.c probably and disable it and try running like that
2020-07-07 12:26 AM
Hello,
did you relocate the vector table of your application like it is done in system_stm32l4xx.c in the original UserApp ?
#if defined(__ICCARM__)||defined(__GNUC__)
extern uint32_t __ICFEDIT_intvec_start__;
#define INTVECT_START ((uint32_t)& __ICFEDIT_intvec_start__)
#elif defined(__CC_ARM)
extern uint32_t Image$$vector_start$$Base;
#define INTVECT_START ((uint32_t)& Image$$vector_start$$Base)
#endif
void SystemInit(void)
{
...
SCB->VTOR = INTVECT_START;
Best regards
Jocelyn
2020-07-09 11:37 AM
Thanks, I had forgot to do it. Wish I had asked this sooner instead of spending a couple of weeks trying to debug the issue.