Modelica-Arduino icon indicating copy to clipboard operation
Modelica-Arduino copied to clipboard

64 bit error under Blink example

Open carsoe2 opened this issue 2 years ago • 2 comments

Error message:

Compiling and linking the model (Visual C++).

64-bit mode activated. dsmodel.c dsmodel.c(4664): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data LINK : fatal error LNK1181: cannot open input file 'ModelicaArduino.lib'

Error generating Dymosim.

carsoe2 avatar Feb 08 '23 18:02 carsoe2

Can you provide steps to reproduce the problem including Dymola and compiler versions?

t-sommer avatar Feb 09 '23 12:02 t-sommer

Using Dymola2023X and Visual Studio 2019: After downloading the zip file: Under “Tools”, click on “Library Management”

  • Go to the “Install” tab:
  • Click on “Browse…”
  • Navigate to where you have saved the .zip file Install library to MODELICAPATH Navigate to Arduino Library to open library Close Dymola and open file explorer Locate location of unzipped folder and click on properties Unclick read only permission to gain write access Open Examples->Blink in the Arduino folder Go to Simulation tab Clicking simulate or translate->normal results in an error as shown above.

carsoe2 avatar Feb 09 '23 16:02 carsoe2