Other Parts Discussed in Thread: HALCOGEN
Hello,
I'm working with HALCoGen 04.07.00 (Windows) using arm-none-eabi (v6.3.1) from ubuntu repository.
The function is declared as:
resetSource_t getResetSource(void) __attribute__((naked));
Which makes compiler not to generate any kind of return from function which is called directly from _c_int00, then execution continues to next function which in my case is systemGetConfigValue which fails because cofig_ret is NULL.
This __attribute__((naked)) is inserted here because stack wasn't initialized, but in my version of HALCoGen stack is initialized before this function, thus removing __attribute__((naked)) resolves my issue.
Just wanted to inform you about issue I have.
Best regards,
Marko