Compilation is not performed successfully - PMC

Hi guys! I tried to compile my code but, it is not possible because I can see into the OUTPUT Window this response (attached the data of output block - Resources).
Can someone support whit is issue?
Code.txt (27.6 KB)

I use the PLC IDE 1.0.6.0.
I have Windows 10 in my computer.

Sorry Guys, the notepad file [Code.txt] is the Output of Resources after the code is compiled

Sorry I cannot read your screen capture.

Is there a way to help you to read my screen capture?

What part is important? Enter only that part.

ok ok .... The compilation is not performed because this output appears:

C:\Users\APT M7\Documents\PRJ_APT001\LLSketch\LLSketch.ino:22:29: error: 'm_netInterface' was not declared in this scope
 arduino::EthernetClass eth(&m_netInterface);
                             ^~~~~~~~~~~~~~
C:\Users\APT M7\Documents\PRJ_APT001\LLSketch\LLSketch.ino:22:29: note: suggested alternative: 'EthernetInterface'
 arduino::EthernetClass eth(&m_netInterface);
                             ^~~~~~~~~~~~~~
                             EthernetInterface

Using library AlPlc_PMC at version 1.0.6 in folder: C:\Users\APT M7\AppData\Local\T\A\internal\AlPlc_PMC_1.0.6_762ba494a9a1f033\AlPlc_PMC 
Using library Arduino_MachineControl at version 1.1.1 in folder: C:\Users\APT M7\AppData\Local\T\A\internal\Arduino_MachineControl_1.1.1_0b68abd64cd04e7b\Arduino_MachineControl 
Using library SPI in folder: C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\SPI (legacy)
Using library ArduinoRS485 at version 1.0.5 in folder: C:\Users\APT M7\AppData\Local\T\A\internal\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\ArduinoRS485 
Using library Wire in folder: C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\Wire (legacy)
Using library Ethernet at version 1.0.0 in folder: C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\Ethernet 
Using library SocketWrapper at version 1.0 in folder: C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\SocketWrapper 

Used library           Version Path                                                                                                           
AlPlc_PMC              1.0.6   C:\Users\APT M7\AppData\Local\T\A\internal\AlPlc_PMC_1.0.6_762ba494a9a1f033\AlPlc_PMC                          
Arduino_MachineControl 1.1.1   C:\Users\APT M7\AppData\Local\T\A\internal\Arduino_MachineControl_1.1.1_0b68abd64cd04e7b\Arduino_MachineControl
SPI                            C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\SPI          
ArduinoRS485           1.0.5   C:\Users\APT M7\AppData\Local\T\A\internal\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\ArduinoRS485                    
Wire                           C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\Wire         
Ethernet               1.0.0   C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\Ethernet     
SocketWrapper          1.0     C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\SocketWrapper

Used platform         Version Path                                                                                   
arduino:mbed_portenta 3.5.4   C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f
Error during build: exit status 1

That appears that the compiler cannot fine a library or file. Check the path of the #includes in your program.

Ok Thank you for your feedback. I will be checking the path of the #includes. Excuse my ignorance but, I do not know how to find that path in my program, I think this path is into the Project folder

Take a close look at the error codes they generally give you everything down to the file.

Ok this is :

Used platform         Version Path                                                                                   
arduino:mbed_portenta 3.5.4   C:\Users\APT M7\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f

That is a path to your file "arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f" I will take a SWAG and say it is the temporary file the compiler generates from your source code. It will add other files to your code and them compiles it as one. Sorry I have no experience in mbed.

Hi Guys! The code works!. Just change the correct IP for the PMC and I did not type the #include <PortentaEthernet.h> into the sketch. so, the compilation was performed. I am using the last version of the PLC IDE 1.0.6.0.

1 Like

Hi Leugim!, I have the same issue and tried your solution to disable #include <PortentaEthernet.h> like you but it's not working. Could you advise me in more detail?

I sorted out this issue supported by the support team. The problem was incorrect API so I modified the code from eth.begin() to Ethernet.begin() and also disabled 'arduino::EthernetClass eth(). As well as the IPAddress DNS modified (8, 8, 8, 8) because of the internal structure of the runtime (Informed me by the support team).

1 Like