Skip to content

Linco work#51

Open
chris1howell wants to merge 52 commits into
masterfrom
linco-work
Open

Linco work#51
chris1howell wants to merge 52 commits into
masterfrom
linco-work

Conversation

@chris1howell
Copy link
Copy Markdown
Member

@chris1howell chris1howell commented May 24, 2026

New RAPI commands added to change additional options without recompile.

Bootlock $FF L 0|1 - Enable/Disable Bootlock
OverCurrent $FF O 0|1 - Enable/Disable OverCurrent detection
Front Button $FF B 0|1 - Enable/Disable Front Button
Over Temp Shutdown $FO 705 - RAPI set of Overtemperature Shutdown
Erase Counters $FC

Restructured Builds - EU and US builds no longer needed all EU options can now be set with GUI choices.

Standard build focuses on safety code only, freeing significant RAM and FLASH (see below). Volume of Serial RAPI traffic also reduced as text display updates are no longer necessary.

Standard - for use with 3.5" TFT Display
Remove legacy display and UI options:
-RTC
-2 Line RGB LCD
-Push Button
-Button Menus
-Delay Timer
-Charge Limit
RAM: [==== ] 41.8% (used 856 bytes from 2048 bytes)
Flash: [===== ] 53.3% (used 17462 bytes from 32768 bytes)

Legacy builds - For use with 2 Line Text Display, Buton Menu and ESP32 WiFi
This is likely the last official release for legacy builds for use with 2 Line RGB LCD, RTC, etc.
RAM: [======= ] 69.0% (used 1414 bytes from 2048 bytes)
Flash: [==========] 100% (used 32762 bytes from 32768 bytes)

EXPERIMENTAL Port for 32bit ARM microprocessor with significantly more flash and storage.
RAM: [= ] 13.9% (used 4544 bytes from 32768 bytes)
Flash: [== ] 16.3% (used 42684 bytes from 262144 bytes)

lincomatic and others added 30 commits February 3, 2026 12:23
…nd RTC year range to 2036

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- build.yml: trigger on linco-work branch, reference @linco-work workflows
- build_platformio.yml: replace old environments with m328p_v5, m328p_v6,
  m328p_v5_RTC_BTN_LCD, m328p_v6_RTC_BTN_LCD, samd; add SAMD .bin handling
- release.yml: include *.bin artifacts alongside *.hex for SAMD releases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chris1howell and others added 22 commits May 24, 2026 20:19
actions/cache v2 -> v4, actions/checkout v2 -> v4, actions/setup-python v2 -> v5

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…o-work

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
checkout v4->v5, cache v4->v5, setup-python v5->v6,
upload-artifact v4->v6, download-artifact v4->v7.
Remove FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 workaround.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Raise ADC6 CGMI detection threshold from 512 to 1000; CGMI boards
  pull A6 to VCC via 330 ohm (~1023), floating pin on non-CGMI boards
  was falsely triggering above 512
- Move pinChargingAC.write(1) outside OEV6 if/else in chargingOn() so
  PB1 (AC relay) is driven HIGH for V6 boards, matching master behavior
- Update platformio.ini and prepare-release.sh for unified autodetect envs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace separate m328p_v5/v6 matrix entries with m328p_autodetect
and m328p_RTC_BTN_LCD to match consolidated platformio.ini envs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…loader upload

- Copy uf2-samdx1 bootloader source into repo (SAMD21/OpenEVSE_NXT board)
- Add PlatformIO pre-build extra_script (build_bootloader.py) that compiles the
  bootloader using PlatformIO's own arm-none-eabi toolchain (no make required),
  copies the .bin to the PlatformIO build dir, and converts firmware.bin to .uf2
- Add post-upload extra_script (upload_bootloader.py) for env:samd_ice that
  flashes the bootloader to 0x0 via Atmel-ICE after the firmware upload
- Update GitHub Actions: fix renamed m328p env names, upload firmware.uf2 and
  bootloader-*.bin as artifacts, add *.uf2 to release assets
- Fix env names throughout: m328p_autodetect -> m328p_TFT_WIFI,
  m328p_RTC_BTN_LCD -> m328p_noWiFi_RTC_BTN_LCD

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Switch convert_firmware_to_uf2 post-action from .bin to .elf target:
  SCons does not track .bin as a build node so AddPostAction on it never fired
- Generate .bin via objcopy in the callback if the platform hasn't created it yet
- Add if-no-files-found: warn to SAMD artifact upload so missing files are
  reported rather than silently dropped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Change VID from 0x1B4F (SparkFun) to 0x04D8 (Microchip)
Change PID from 0x0D22 to 0xE437

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants