Hello and thank you for your reply.
As regards my point 1: I solved it simply calling ld_init(LI0) before l_ifc_init(LI0). ld_init(LI0) was not present in the main.c of the example project "lin_slave_s32k118".
What I found now is that initial_NAD seems to be used only in 0xB0 service, while for all the other services configured_NAD is used. So, with a CANoe simulation, if I don't perform 0xB0 service at the beginning (in order to switch from initial_NAD to configured_ND), I'm not able to access diagnostic service (because CANoe uses initial_NAD while the lin stack uses configured_NAD). If I use 0xB0 at the beginning everything works correctly then. Is that correct considering the LIN specifications?
As regards my point 2: I'm using
S32DS for S32 Platform v3.5 Build id: 230226 (Update 2)
S32SDK_S32K1XX_RTM_4.0.1
Thank you in advance and kind regards,
Francesco