I am trying to switch my project from compiler V5 to V6 as following software，as you see，I think the promble is “void adc_config(void) __attribute__ ((naked, section("adc_config")));” ,this line of software isn't set turn, but I can't find any information about how to set it, could you give me some suggest? Tks.
void rcu_config(void);void gpio_config(void);
void adc_config(void) __attribute__ ((naked, section("adc_config")));
Hi Nina,This attribute is described here:https://developer.arm.com/documentation/101754/0615/armclang-Reference/Compiler-specific-Function--Variable--and-Type-Attributes/--attribute----naked---function-attributeIs this attribute necessary for this function (I cannot see its source code)? Perhaps it can be safely removed?
Thanks. I had solved my problem. I want to place a function in a named section.The correct setup in my case is "void adc_config(void) __attribute__ ((naked, section("adc_con")));" When using Arm compiler 6, section need to be unique.
View all questions in Arm Compilers forum