Souhaib
I get this error because of "PSRAM"!!! What is the SOLUTION!
 
$ /home/cherbal/Desktop/CA-IDE/editor/arduino/bin/iec2c -v
matiec version 0.1
changeset id:
$? = 0
$ /home/cherbal/Desktop/CA-IDE/editor/arduino/bin/arduino-cli-l64 --no-color version
arduino-cli Version: 1.0.3 Commit: 8b6ad258 Date: 2024-07-23T08:45:21Z
$? = 0
Checking Core and Board installation...
Core esp32:esp32 is installed
Checking required libraries...
All required libraries are already installed.
Compiling .st file...
$ /home/cherbal/Desktop/CA-IDE/editor/arduino/bin/iec2c -f -l -p plc_prog.st
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
$? = 0
Copying HAL source file...
Adding arduino sketch file /home/cherbal/Desktop/CA-IDE/editor/arduino/examples/Baremetal/ext/arduino_sketch.h...
Generating definitions file '/home/cherbal/Desktop/CA-IDE/editor/arduino/examples/Baremetal/defines.h'...
Generating binary file...
$ /home/cherbal/Desktop/CA-IDE/editor/arduino/bin/arduino-cli-l64 --no-color compile -v --clean --build-property compiler.c.extra_flags=-MMD -c --build-property compiler.cpp.extra_flags=-MMD -c --library /home/cherbal/Desktop/CA-IDE/editor/arduino/src --library /home/cherbal/Desktop/CA-IDE/editor/arduino/src/lib --export-binaries -b esp32:esp32:esp32wrover:UploadSpeed=230400,PartitionScheme=huge_app,FlashMode=qio,FlashFreq=40,PSRAM=enabled /home/cherbal/Desktop/CA-IDE/editor/arduino/examples/Baremetal/Baremetal.ino
Error during build: Invalid FQBN: getting build properties for board esp32:esp32:esp32wrover: invalid option 'PSRAM'
$? = 1
Build phase <function build.<locals>.build_project at 0x7acf6ae8d3a0> failed
Reply 1 0
thiagoralves
Did you modify your hals.json? If you did, then you’ll have to figure out the solution. If you didn’t, try selecting Mr. Proper as the build option in front of the “compile only” checkbox
Reply 1 0
Souhaib
 I did not modified it, i use ESP32 Wrover that contains a PSRAM but when i try to upload with PSRAM=ennable that problem happens, when i removed the command PSRAM=ennable the code has been uploaded successfully
Reply 0 0
thiagoralves
How did you set PSRAM=enable?
Reply 0 0
Souhaib
this is the esp32 wrover part in the hals.json file:

"ESP32 WROVER": {
"board_manager_url": "https://espressif.github.io/arduino-esp32/package_esp32_index.json",
"c_flags": [
"-MMD",
"-c"
],
"core": "esp32:esp32",
"cxx_flags": [
"-MMD",
"-c"
],
"default_ain": "34, 35, 36, 39",
"default_aout": "25, 26",
"default_din": "18, 19, 21, 22, 23, 27, 32, 33",
"default_dout": "02, 04, 05, 12, 13, 14, 15",
"define": "BOARD_ESP32",
"last_update": 0,
"platform": "esp32:esp32:esp32wrover:UploadSpeed=230400,PartitionScheme=huge_app,FlashMode=qio,FlashFreq=40,PSRAM=enabled",
"source": "esp32.cpp",
"version": "3.2.0"
}






plus, i found problems with ModBus communication RTU and TCP and the WIFI does not starts at all
Reply 0 0
thiagoralves
The code works fine on my generic ESP32 board. Maybe the wrover needs different settings then. I don’t have this board to test. If you find out what works with yours, please share with the community so everyone can benefit
Reply 0 0
Souhaib
okay, thank you for your support
Reply 1 0
kortenbach
Small detail: you wrote "ennable" instead of "enable".
Reply 0 0
Giorgos M.
I have similar problem with my ESP32 WROOVER.
Reply 0 0
thiagoralves
It seems that support for ESP32 WROOVER is broken. I don't have that particular board to test. If you remove PSRAM=enabled from your hals.json file you probably will be able to upload code to it, but as @Souhaib pointed out, it seems that Modbus RTU and TCP are not working.
Reply 0 0
Souhaib
Yes, exactly @thiagoralves
Reply 0 0
Ivanb006
Every time I edit the hals.json file and remove the PSRAM=enabled and start a new transfer to the PLC the transfer overwrites my custom file and adds the PSRAM back again. How can I bypass this?

Is this connected to this command? (Build logs when i start the transfer)
$ C:\Users\Ivan\OpenPLC_Editor\editor\arduino\bin\arduino-cli-w64.exe --no-color compile -v --build-property compiler.c.extra_flags=-MMD -c -Wno-incompatible-pointer-types --build-property compiler.cpp.extra_flags=-MMD -c --library C:\Users\Ivan\OpenPLC_Editor\editor\arduino\src --library C:\Users\Ivan\OpenPLC_Editor\editor\arduino\src\lib --export-binaries -b esp32:esp32:esp32wrover:UploadSpeed=230400,PartitionScheme=huge_app,FlashMode=qio,FlashFreq=40,PSRAM=enabled C:\Users\Ivan\OpenPLC_Editor\editor\arduino\examples\Baremetal\Baremetal.ino

If so where is this command stored and how can I change it?
Reply 0 0
Reply