Hi Andre,
OK I think I would go to square 1. Open a new window in MCS and put in only the basics, your hser defines, a byte variable, load a value into the variable and then an HSEROUT statement, also the config statements, and OSC define. see if that works, no includes, no AD enable code, in fact disable for this test, then after this works, start adding stuff back in.