This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Function getResetSource() causing error on hard reset/debugger reset

Part Number: TMS570LC4357
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