Answer the question
In order to leave comments, you need to log in
How to convert code for ICCARM to GNUC?
There was a piece of code in iare.
#if defined (__ICCARM__)
#define __vectors __root const uVectorEntry __vector_table[] @ ".intvec"
#define __stack { .ui32Ptr = (uint32_t)Stack + sizeof(Stack) }
typedef union
{
void (*Handler)(void);
uint32_t ui32Ptr;
} uVectorEntry;
#endif
Answer the question
In order to leave comments, you need to log in
#define __vectors void (*const __vector_table[])(void) __attribute__((section(".isr_vector")))
+ correct linker script, or even a default startup from the cube.
It needs to be redone for GCC.
Perhaps the reaction requires only 1 line after ifa.
__attribute__((section("имя секции")))
. See _
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question