Part Number: MSP430F6736
Tool/software:
Hello!
I hope you are doing well.
I'm actually working on the EVM430-F6736.
I downloaded its IAR project from TI website (LINK).
I download IAR (8.10.3 version) and imported the emeter-toolkit-6736.ewp to the workspace and tried to rebuild it as mentioned by the AN of the EVM430-F6736.
I got nearly 20 warnings and 38 errors.
It was the same warning and same error repeated.
Concerning the warning, it shows:
Warning[411]: A NOP needs to be added after clearing GIE, as required by the architecture ....\emeter-toolkit\imul16.s43 40

As for the error it shows:
Fatal Error[Pe035]: #error directive: Compiler not recognised. .......\emeter-toolkit\isr_compat.h 65

I tried solving the error using an online LLM.
It suggested to add print messages before the #error instruction:
#pragma message ("__IAR_SYSTEMS_ICC__ is defined")
#pragma message ("__TID__: " #__TID__)
#pragma message ("__VER__: " #__VER__)
I did that and the result was:

The LLM then said that :
__TID__:(empty) →__TID__is not defined or does not hold a valid value.__VER__:(empty) →__VER__is also not defined or invalid
and suggested to remove the condition on the TID and VER by replacing :
#elif defined(__IAR_SYSTEMS_ICC__) && (((__TID__ >> 8) & 0x7f) == 43) && (__VER__ < 800)
with :
#elif defined(__IAR_SYSTEMS_ICC__)
I did so and rebuilt the project. The build was successfully done. The errors disappeared though the warnings remained the same.
My questions :
1- How can solve the warnings problem ?
2- Should I accept the solution suggested by the LLM to the errors problem or there's a much better solution ?
Thank you in advance for your support
Have a good day!
