Hi guys
im trying to move a sketch from the arduino UNO over to the portenta, i wrote it on the UNO because I hadnt updated the IDE for years and was getting very slow compile times on even blinkwithnodelay for the portenta, but now I need to use the protenta,
i updated to 1.8.19
but when I compile the sketch it gives the following error:
SoftwareSerial.h: No such file or directory
i have gone through the sketch and changed all references to pin 13 to LED_BUILTIN in an attempt to avoid problem as I read that pin 13 is used for serial on the portenta?
Is there anything I can try to fix this without posting the sketch ? I cannot publically share it.
thanks in advance for any help
thanks for your reply, I have looked through that thread before posting, cant really work out whats going on though.
I have resorted to the example code for softwareSerial. It also gives the same error, which at least gives hope that my code will be useful once i sort the issue.
this is the error with verbose enabled:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\wdevo\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\wdevo\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\wdevo\Documents\Arduino\libraries -fqbn=arduino:mbed_portenta:envie_m7:split=75_25,security=none -vid-pid=2341_025B -ide-version=10819 -build-path C:\Users\wdevo\AppData\Local\Temp\arduino_build_53425 -warnings=none -build-cache C:\Users\wdevo\AppData\Local\Temp\arduino_cache_767023 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.imgtool.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.imgtool-1.8.0-arduino.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.openocd.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.dfu-util.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose C:\Users\wdevo\Documents\Arduino\softare_serial_demo\softare_serial_demo.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\wdevo\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\wdevo\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\wdevo\Documents\Arduino\libraries -fqbn=arduino:mbed_portenta:envie_m7:split=75_25,security=none -vid-pid=2341_025B -ide-version=10819 -build-path C:\Users\wdevo\AppData\Local\Temp\arduino_build_53425 -warnings=none -build-cache C:\Users\wdevo\AppData\Local\Temp\arduino_cache_767023 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.imgtool.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.imgtool-1.8.0-arduino.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.openocd.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.dfu-util.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose C:\Users\wdevo\Documents\Arduino\softare_serial_demo\softare_serial_demo.ino
Using board 'envie_m7' from platform in folder: C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.0.1
Using core 'arduino' from platform in folder: C:\Users\wdevo\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.0.1
Detecting libraries used...
"C:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\variants\\PORTENTA_H7_M7/defines.txt" "@C:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\variants\\PORTENTA_H7_M7/cxxflags.txt" -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\cores\\arduino" "-IC:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\variants\\PORTENTA_H7_M7" -DCM4_BINARY_START=0x08180000 "-IC:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\cores\\arduino" "@C:\\Users\\wdevo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_portenta\\3.0.1\\variants\\PORTENTA_H7_M7/includes.txt" "C:\\Users\\wdevo\\AppData\\Local\\Temp\\arduino_build_53425\\sketch\\softare_serial_demo.ino.cpp" -o nul
Alternatives for SoftwareSerial.h: []
ResolveLibrary(SoftwareSerial.h)softare_serial_demo:28:10: fatal error: SoftwareSerial.h: No such file or directory
-> candidates: [] #include <SoftwareSerial.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
SoftwareSerial.h: No such file or directory
this is what i have concerning libraries:
#include <SoftwareSerial.h>; //header file of software serial port
SoftwareSerial meSerial(0, 1); //define software serial port name as meSerial and define pins
#include <EEPROM.h>
which generates the follwing message:
SoftwareSerial.h: No such file or directory
however if i swap the eeprom library to the top line like this:
#include <EEPROM.h>
#include <SoftwareSerial.h>; //header file of software serial port
SoftwareSerial meSerial(0, 1); //define software serial port name as meSerial and define pins
then I get the following error instead:
EEPROM.h: No such file or directory
So perhaps the issue is more to do with where the Portenta looks for the libraries?
srnet
August 21, 2022, 12:32pm
5
Or maybe the Portenta has no EEPROM and does not implement SoftwareSerial since it has so many hardwaree serial ports
well, the lack of eeprom isnt something I expected. thats a bummer, i guess i have to find another way to save calibration data on this board now.
as for software serial. im pretty sure others have got it working though.....