This could be due to to the ARXML not exactly corresponding with the code/ARXML.
Check that the ARXML is not describing things like auto-generated Simulink data structures (model_B, model_DW, model_M) as PIMs. C Code and ARXML are only generated for these Simulink data structures when using reusable code interface, not the non-reusable (single-instance) code interface.