How can I generate code for Raspberry Pi without the device connected?
3 views (last 30 days)
Christopher Schulenberg on 15 Oct 2014
Is it possible to generate code for the Raspberry Pi without being connected to the Pi? I would like to build the model and generate code, then deploy the executable to the Pi outside of the Mathworks external mode simulation framework. This will allow me to develop and troubleshoot the model without lugging the Pi around with me everywhere, and will also allow my (student) project team to perform HW and SW integration/testing with fewer devices.
I am using the Raspberry Pi Support Package.
When you attempt to build the model connection with components from the Simulink Support Package for Raspberry Pi Hardware without first establishing a Pi connection, the build process fails because it cannot connect to the Pi. I tried changing the Code Generation System target file to use Embedded Coder, and received a similar error.
Murat Belge on 28 Oct 2014
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?