I might be a bit late, but I have encountered the same problem and maybe have a solution to this problem. You should check whether 'Platform Settings' under 'STMicroelectronics.X-CUBE-AI.X.X.X' has been set before you generate the code. In my case (u...