Hi ![]()
First of all, thank you for developing and supporting such a useful tool as acados.
I’m working with the latest version of acados using the Matlab interface, and have created an NMPC model that runs fine in Simulink using an acados S-function. Now, I want to test it on an embedded platform.
I’m using a DS1202 MicroLabBox and building the models with the dSPACE RTI for Matlab 2022a. I followed all the steps in Embedded Workflow — acados documentation, so I was able to build acados for the DS1202 without any issues.
However, when I build the model in Simulink after all the steps, I get the following error:
Error occurred in real-time application 'dSPACE_LCL.ppc' (process ID 741383):
In function ocp_qp_xcond_solver_opts_assign -- C:/acados/acados/ocp_qp/ocp_qp_xcond_solver.c:222 (size_t) c_ptr % 8 == 0 && "double not 8-byte aligned!" -- assertion failed [20886,1137866335]
I checked other posts on the forum that had issues with memory alignment, but since acados has been successfully tested on the DS1202, I imagined the issue could be in the settings of the Simulink model. The settings for the hardware implementation are as shown in the following picture:
What could be causing this error? Has someone else encountered it? I will highly appreciate any help that can be provided to solve it.
Many thanks in advance!
Cristóbal
