Generating code for Raspberry Pi without a connection to the board is not possible. The Raspberry Pi support package uses the compiler / linker on the Raspberry Pi itself to build a Simulink model. You would not be able to compile / link the code without a Raspberry Pi.
In your use case, I would simulate the model in "Normal" mode in the development phase and deploy the model to Raspberry Pi hardware (i.e. either through External Mode or using Run on target hardware) when the model is ready. You do not have to be connected to the board for simulation. Is there something I am missing in your use case?
Best Answer