I’m attempting to modify the firmware of my RTK express to run moving base more easily, and I’m hitting some roadblocks with regards to programming. Namely, the device totally fails to self-configure on power on after I program from the IDE.
Because I ran in to problems with my modified code, I re-downloaded the code repository and have attempted to program the most recent version of the code base, only modifying the version number (so I can verify that my firmware was uploaded) in order to rule out problems with my code itself blocking configuration. As far as I can tell, even with a fresh code base I am unable to get the device to configure on power on after programming from the IDE.
When I program from the CLI using the provided .bin files on Github, I have no problem, but if I export the un-modified code from the IDE as a .bin, I have the same problem.
Below is my board configuration in the IDE:
https://i.imgur.com/sB7Z3mW.png
I do get a number of warnings while compiling, none of which seem fatal:
WARNING: library JC_Button claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from C:\Repos\sparkfunRTKfirmware\SparkFun_RTK_Firmware-main\Firmware\RTK_Surveyor\RTK_Surveyor.ino:121:
C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/SdFat.h:438:2: warning: #warning File not defined because __has__include(FS.h) [-Wcpp]
#warning File not defined because __has__include(FS.h)
^~~~~~~
In file included from C:\Users\tksullivanpeters\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:27,
from C:\Repos\sparkfunRTKfirmware\SparkFun_RTK_Firmware-main\Firmware\RTK_Surveyor\RTK_Surveyor.ino:301:
C:\Users\tksullivanpeters\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\FS\src/FS.h:30: warning: "FILE_READ" redefined
#define FILE_READ "r"
In file included from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:821,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:27,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/SdFat.h:33,
from C:\Repos\sparkfunRTKfirmware\SparkFun_RTK_Firmware-main\Firmware\RTK_Surveyor\RTK_Surveyor.ino:121:
c:\users\tksullivanpeters\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:31: note: this is the location of the previous definition
#define FILE_READ O_RDONLY
In file included from C:\Users\tksullivanpeters\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:27,
from C:\Repos\sparkfunRTKfirmware\SparkFun_RTK_Firmware-main\Firmware\RTK_Surveyor\RTK_Surveyor.ino:301:
C:\Users\tksullivanpeters\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\FS\src/FS.h:31: warning: "FILE_WRITE" redefined
#define FILE_WRITE "w"
In file included from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:821,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:27,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,
from C:\Users\tksullivanpeters\Documents\Arduino\libraries\SdFat\src/SdFat.h:33,
from C:\Repos\sparkfunRTKfirmware\SparkFun_RTK_Firmware-main\Firmware\RTK_Surveyor\RTK_Surveyor.ino:121:
c:\users\tksullivanpeters\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:35: note: this is the location of the previous definition
#define FILE_WRITE (O_RDWR | O_CREAT | O_AT_END)
Here is the serial port output from my Express after programing on power-on. Note that the FW version is 20.20, that’s the only thing I changed, again so I could identify that the code was correctly uploaded. I do not have an SD card installed, so I think the SD failures aren’t a concern, so I think my problems start when it gets to “Disable Survey Failed.” This seems to be in response to a failed call to disableSurveyMode() in one of the initial configuration functions. I believe disableSurveyMode() is a function from the SparkFun ublox GNSS library. Could this be a library installation issue? I’m on library version 2.2.8.
ZED-F9P firmware: HPG 1.12
SparkFun RTK Express v20.20-Apr 8 2022
SD init failed. Trying again 1 out of 1
SD init failed. Is card present? Formatted?
Settings are not valid for this variant of RTK Express. Default settings applied.
Config file read failed: SD offline
MAX17048 configuration complete
Batt (98%): Voltage: 4.20V Charging: 11.44%/hr Green
Disable Survey failed
getPortSettings failed
getPortSettings failed
Get Constellation failed
Constellation setting failed
Get Constellation failed
Get Constellation failed
getMessageSetting failed: Class-0xF0 ID-0x01
getMessageSetting failed: Class-0x01 ID-0x22
getMessageSetting failed: Class-0x01 ID-0x34
getMessageSetting failed: Class-0x01 ID-0x3C
getMessageSetting failed: Class-0x01 ID-0x24
getMessageSetting failed: Class-0x02 ID-0x14
getMessageSetting failed: Class-0x0A ID-0x36
getMessageSetting failed: Class-0x0D ID-0x06
getMessageSetting failed: Class-0xF5 ID-0x4D
getMessageSetting failed: Class-0xF5 ID-0x7C
getNMEASettings failed
getNMEASettings failed
getNMEASettings failed
getNMEASettings failed
getNMEASettings failed
getNMEASettings failed
Module failed initial config.
Module failed to save.
Failed to configure module. Trying again.
Disable Survey failed
getPortSettings failed
Get Constellation failed
Get Constellation failed
Get Constellation failed
Get Constellation failed
getMessageSetting failed: Class-0xF0 ID-0x0A
getMessageSetting failed: Class-0xF0 ID-0x06
getMessageSetting failed: Class-0xF0 ID-0x03
getMessageSetting failed: Class-0x01 ID-0x22
getMessageSetting failed: Class-0x01 ID-0x14
getMessageSetting failed: Class-0x01 ID-0x43
getMessageSetting failed: Class-0x01 ID-0x20
getMessageSetting failed: Class-0x02 ID-0x14
getMessageSetting failed: Class-0x0A ID-0x09
getMessageSetting failed: Class-0x0A ID-0x21
getMessageSetting failed: Class-0xF5 ID-0x54
getMessageSetting failed: Class-0xF5 ID-0x7F
getNMEASettings failed
getNMEASettings failed
getNMEASettings failed
Module failed initial config.
Module failed to save.
GNSS Error: Failed to configure module. Press 'r' to factory reset.
No user input received.
Any assistance is greatly appreciated!