My observations:
Fresh git clone of https://github.com/stanleyhuangyc/Freematics/
Loaded/inported directory firmware_v5/telelogger/ into Visual Studio Code with PlatformIO plugin for VS Code enabled as per guide https://www.traccar.org/freematics-configuration/
If I modify [within config.h]:
line 87 - change ENABLE_WIFI 0 to ENABLE_WIFI 1
define my; WIFI_SSID, WIFI_PASSWORDS, CELL_APN, SERVER_HOST, SERVER_PORT etc
plus change line 161 to GNSS_EXTERNAL from GNSS_INTERNAL to suit the version I have at hand.
The compilation works as expected.
If I turn on; Bluetooth
line 193 from ENABLE_BLE 0 to ENABLE_BLE 1
The error:
Code: Select all
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Error: The program size (1547353 bytes) is greater than maximum allowed (1310720 bytes)
RAM: [== ] 17.9% (used 58640 bytes from 327680 bytes)
Flash: [===*** [checkprogsize] Explicit exit, status 1
=======] 118.1% (used 1547353 bytes from 1310720 bytes)
SOLUTION: - as suggested in the URL at the top.
WIthin my platforio.ini I had added the line at the bottom: board_build.partitions = huge_app.csv
Code: Select all
[env:esp32dev]
platform = espressif32
;build_flags = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
board=esp-wrover-kit
board_build.f_cpu = 160000000L
framework = arduino
monitor_speed = 115200
board_build.flash_mode = qio
board_build.partitions = huge_app.csv
Code: Select all
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 17.9% (used 58640 bytes from 327680 bytes)
Flash: [===== ] 49.2% (used 1547353 bytes from 3145728 bytes)
Building .pio\build\esp32dev\firmware.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
========================================================================================= [SUCCESS] Took 53.23 seconds ===