Hi, I am trying to create a project using a raspberry pi, I have added the modules for the Pi and MCP3008.
I have encountered som errors that I don't know how to track down.
1. The GPIOs give preprocessor errors, but I read that this does not prevent compiling. This seems to be true. I can build the empty project with no errors.
2. After adding a SPI master and MCP3008, the preprocessor errors double, but seem similar and the project again builds with no errors.
3. I add a DUT and GVL, with a function, and I get the following errors. They remain even if I delete these things.
------ Build started: Application: Device.Application -------
Typify code... [ERROR] crr: C0032: Cannot convert type 'Unknown type: 'ADR(GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7.Io_17160064_c083_41f8_9e53_208be7537753_HPS_7)'' to type 'POINTER TO IoConfigParameter' [ERROR] crr: C0077: Unknown type: 'GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7.Io_17160064_c083_41f8_9e53_208be7537753_HPS_7' [ERROR] crr: C0046: Identifier 'GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7' not defined
Compile complete -- 3 errors, 0 warnings
I started over.
I saved progress at each step. all compiled zero errors, zero warnings.
Pre-processor messages remain, but I can make progress.
Until I try to re- load the project file in Codesys. Re-loaded files error as above when compiled, even though they compiled error-free immediately before saving.
Is my installation borked? (Not easy to re-install due to IT madness...)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is either my installation is bad, or there is a bug.
I re-created the project in 3.5 SP19 and there are no errors or warnings. Compiles with no errors or warnings.
The original was done in 3.5 SP20.
Thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am trying to create a project using a raspberry pi, I have added the modules for the Pi and MCP3008.
I have encountered som errors that I don't know how to track down.
1. The GPIOs give preprocessor errors, but I read that this does not prevent compiling. This seems to be true. I can build the empty project with no errors.
2. After adding a SPI master and MCP3008, the preprocessor errors double, but seem similar and the project again builds with no errors.
3. I add a DUT and GVL, with a function, and I get the following errors. They remain even if I delete these things.
------ Build started: Application: Device.Application -------
Typify code...
[ERROR] crr: C0032: Cannot convert type 'Unknown type: 'ADR(GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7.Io_17160064_c083_41f8_9e53_208be7537753_HPS_7)'' to type 'POINTER TO IoConfigParameter'
[ERROR] crr: C0077: Unknown type: 'GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7.Io_17160064_c083_41f8_9e53_208be7537753_HPS_7'
[ERROR] crr: C0046: Identifier 'GVL_Io_17160064_c083_41f8_9e53_208be7537753_HPS_7' not defined
Compile complete -- 3 errors, 0 warnings
I attach the project.
What am I doing wrong?
Thanks!
Update:
I found my error in the Scale function, where I used UINT_TO_REAL instead of DWORD_TO_REAL. I fixed it, errors unchanged.
Update:
I started over.
I saved progress at each step. all compiled zero errors, zero warnings.
Pre-processor messages remain, but I can make progress.
Until I try to re- load the project file in Codesys. Re-loaded files error as above when compiled, even though they compiled error-free immediately before saving.
Is my installation borked? (Not easy to re-install due to IT madness...)
It is either my installation is bad, or there is a bug.
I re-created the project in 3.5 SP19 and there are no errors or warnings. Compiles with no errors or warnings.
The original was done in 3.5 SP20.
Thoughts?