I'm building a C project for the 6424 DSP, and am currently upgrading from CGT 6.0.8 to 7.2.2.
I have this const:
const fpWhiteNoiss pdT_fnWhiteNoise[4] =
{
PD_WhiteNoise04, PD_WhiteNoise06, PD_WhiteNoise08, PD_WhiteNoise10
};
refrencing 4 different linear assembly functiuons.
in 6.0.8 this works fine:
prSt->s16Seed = (*pdT_fnWhiteNoise[(u16LpcOrd>>1)-2])
(prSt->as16Par, prSt->as16GDly, u16FrmSz, prSt->s16Seed, s16Fct, pS16Frm);
after compiling with 7.2.2 this line results in an exeption (looking at IERR reg its unknown opcode fetch if I am not mistaken).
If I change this line to a switch (without using the const array) everything works again.