2022-03-07 08:22 PM
Hi everyone,
currently, I'm struggling to make interrupt working with SBSFU (STM32WB55).
If I run the program without SBSFU, interrupt event working properly.
but when I compiled it along with SBSFU, the interrupt not working.
I see on another post that is possibility its caused by interrupt vector.
I used this configuration on system_wbxx.c
#if defined(__ICCARM__)
extern uint32_t __vector_table;
#define INTVECT_START ((uint32_t)& __vector_table)
#elif defined(__CC_ARM) || defined(__ARMCC_VERSION)
extern void * __Vectors;
#define INTVECT_START ((uint32_t) & __Vectors)
#elif defined(__GNUC__)
extern void * g_pfnVectors;
#define INTVECT_START ((uint32_t)& g_pfnVectors)
#endif
actually, the program is running but interrupt still not working.
I also tried with this code:
#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
the intterupt still not working.
Any advise? Thanks in advance
2022-03-09 01:42 AM
Hello @affadli ,
what exactly do you mean by interrupt not working? Break point in callback not hit? Or not even the ISR? What is the interrupt vector pointer setting? What interrupt vector are you trying to use?
BR,
J
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.