Tool/software: Code Composer Studio
I was trying to place a lightweight crypto code from online onto the MSP430FR5969 microcontroller but I have many instances within my code where it says "#64D - shift count is too large" .
I am using code composer studio version 8.0.0.
Any suggestions on fixing this? Here are some of the lines if it would help at all:
COMPRESS_BYTE_ARRAY(k,K0_o,K0_e);
COMPRESS_BYTE_ARRAY(k+8,K1_o,K1_e);
COMPRESS_BYTE_ARRAY(npub,N0_o,N0_e);
COMPRESS_BYTE_ARRAY(npub+8,N1_o,N1_e);
t1_e = (u32)((CRYPTO_KEYBYTES * 8) << 24 | (RATE * 8) << 16 | PA_ROUNDS << 8 | PB_ROUNDS << 0);
x0_e = t1_e << 16;
x0_o = t1_o << 16;
COMPRESS_BYTE_ARRAY(ad,in_o,in_e)
in_o |= t0_o << 16;
in_e |= t0_e << 16;
EXPAND_U32(t1_e,x0_o,x0_e);
EXPAND_U32(t1_o,x0_o>>16,x0_e>>16)
EXPAND_U32(t1_e,x3_o>>16,x3_e>>16);
((u32*)c)[0] = U32BIG(t1_e);
EXPAND_U32(t1_e,x3_o,x3_e);
((u32*)c)[1] = U32BIG(t1_e);
EXPAND_U32(t1_e,x4_o>>16,x4_e>>16);
((u32*)c)[2] = U32BIG(t1_e);
EXPAND_U32(t1_e,x4_o,x4_e);
((u32*)c)[3] = U32BIG(t1_e);
I can just link the code if that is better as well!