Error in PIL testing using Arduino

Illustration
olive - 2020-12-12T12:17:19+00:00
Question: Error in PIL testing using Arduino

I am trying to run PIL simulation of a subsystem on an Arduino Uno board. I have created the PIL block but on running the simulation, I get the following error:   Data type "double" is not supported for SIL or PIL execution with the current target configuration. This is because the host size (8 bytes) and target size (4 bytes) do not match. To avoid this error, do not use this data type at the component interface. In my controller there are certain blocks which require "double" data type(dq0 to abc). Is there a way to run the test?

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

Double datatype is not supported for AVR targets. Either remove double datatype from your model or use some other targets like SAM(Arduino due) or SAMD(Arduino MKR1000/MKR1010/MKRZero).


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!