Other Parts Discussed in Thread: HALCOGEN
Version 04.05.01 of HalCoGen generated crc.c has a bug in crcSignGen at line 135. High word goes into low PSA register and low word goes into high PSA register. Most significant byte is at the lowest address and when copied to the register the first register is the low one. The code needs to swap words when used on a big endian system, for IAR compiler at least. My guess is the same goes for CCS.
Best Regards
Henrik