Initial support of MPPT 2420 HPX board
- Some flags changed to make the firmware compile for new STM32G431 MCU - Zephyr board definition added - Serial, OLED display and LED working - ADC compiling, but not yet working
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
# Select the charge controller hardware by uncommenting one of the following lines
|
||||
default_envs =
|
||||
# mppt-2420-lc-v0.10
|
||||
# mppt-2420-hpx-v0.1-zephyr
|
||||
# mppt-1210-hus-v0.2
|
||||
# mppt-1210-hus-v0.4
|
||||
# mppt-1210-hus-v0.6
|
||||
@@ -39,6 +40,8 @@ framework = mbed
|
||||
upload_protocol = stlink
|
||||
#upload_protocol = jlink
|
||||
|
||||
debug_tool = jlink
|
||||
|
||||
# Custom upload tools (overwrites upload_protocol)
|
||||
#upload_command = st-flash write $SOURCE 0x8000000
|
||||
#upload_command = dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D $SOURCE
|
||||
@@ -110,6 +113,17 @@ platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
[env:mppt-2420-hpx-v0.1-zephyr]
|
||||
board = mppt_2420_hpx
|
||||
framework = zephyr
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-fsingle-precision-constant
|
||||
-Wl,-Map,memory.map
|
||||
platform = https://github.com/platformio/platform-ststm32.git
|
||||
lib_ignore = ESP32
|
||||
extra_scripts = generate_version_file.py
|
||||
|
||||
# https://github.com/LibreSolar/PWM-2420-LUS
|
||||
[env:pwm-2420-lus-v0.2]
|
||||
board = nucleo_l073rz
|
||||
|
||||
Reference in New Issue
Block a user