Hi Tinotenda,
This error typically indicates a linker issue where the compiler cannot find the implementation of the “Print::write” method, which is commonly used in Arduino programming for serial communication. This can happen due to several reasons:
- Missing Library or Source Files
- Incorrect Linker Settings
- Target Hardware Configuration
Now, to resolve the issue you can try following the workarounds:
- Revisit the model configuration parameters to ensure they are set correctly for your target hardware and intended code generation settings. This includes verifying the solver settings, data type settings, and any custom code settings that might affect the build process.
- Try cleaning the build folder. Delete the contents of the “blink_simulink_ert_rtw” folder, and then attempt to rebuild the model.
- Ensure all model dependencies (such as custom code, libraries, or external files) are correctly specified and accessible in the project's path.
If the above-mentioned steps do not suffice to resolve your issue, you can try to ensure your MATLAB, Simulink, and any relevant hardware support packages (e.g., for Arduino) are up to date. Updates can resolve bugs and compatibility issues that might be causing the build to fail.
I hope this helps!
Animesh