Martin Jäger
daff69550f
MPPT 1210 HUS: Match LED assignment with manual
2021-04-14 11:19:31 +02:00
Martin Jäger
bc61a29bed
Increase HS voltage of MPPT 2420 HC to 90V
2021-04-14 11:19:31 +02:00
Martin Jäger
483e09d1a2
Use generic Copyright notice in all files
2021-03-12 18:40:22 +01:00
Martin Jäger
c87e5f974a
Add MPPT 2420 HC v0.2 board
2021-03-12 18:40:21 +01:00
Martin Jäger
98c1daa865
Enable CONFIG_I2C only if needed (e.g. for OLED or EEPROM)
2021-02-28 11:04:42 +01:00
Martin Jäger
f8d7b25648
DCDC: Update HV output switch handling
2021-02-24 16:45:01 +01:00
Martin Jäger
6aa015a140
Add basic HRTIM implementation for half_bridge
2021-02-05 18:12:31 +01:00
Martin Jäger
fc71934010
Add Nucleo G474RE board for testing purposes
2021-02-05 17:51:10 +01:00
Martin Jäger
269ce762a0
Introduce new Zephyr board revisioning feature
...
This file layout allows to specify the revision using <board-name>@<revision>
during west build calls.
2021-02-04 17:28:52 +01:00
Martin Jäger
ed29e54d20
Add reset for J-Link runner of STM32L0/F0 based boards
...
Otherwise they don't always wake up after flashing.
2021-02-04 17:28:52 +01:00
Martin Jäger
2de110b0b7
Half bridge: New dts binding to fix pinmux
...
The previous approach to define the pinmux in the timer nodes didn't work
because the timers don't have a pinctrl-0 property. This commit adds a new
half-bridge binding similar to upstream Zephyr pwm binding, which is a child
node of the used timer.
It makes sense to define PWM frequency and dead-time also in this node, so
the dcdc devicetree binding is redundant and therefore removed.
2021-02-04 17:28:52 +01:00
Martin Jäger
24742fefcb
Fix CAN ISO-TP binding and CAN IDs
...
For the recv_ctx, the rx and tx addresses were swapped. In addition to that,
the binding has to be released before sending.
2021-02-04 17:28:52 +01:00
Martin Jäger
fec60aacbb
Enable CAN for MCUs with CAN-FD controller
2021-02-04 17:28:52 +01:00
Martin Jäger
941545ea7e
Move to pinmux based on devicetree
2021-02-04 17:28:51 +01:00
Martin Jäger
e63a2db9e5
Update west.yml and platformi.ini to track Zephyr v2.5
...
The v2.5-branch is based on upstream master until Zephyr v2.5 is released.
hal_stm32 needs to be overwritten with forked version to support new pinctrl
introduced in Zephyr 2.5.
Also fixing some CAN issues because of API changes to make it compile.
2021-01-14 19:11:59 +01:00
Martin Jäger
3653b88d25
Remove ADC/DAC dts nodes now present in upstream Zephyr
2020-12-15 10:47:29 +01:00
Martin Jäger
e5b42ace72
Load: Use Zephyr PWM driver for charge pump
2020-12-15 10:47:14 +01:00
Martin Jäger
47c1614ed0
Add MPPT 2420 HC board
2020-11-10 16:50:52 +01:00
Martin Jäger
3d9c4589cd
Upgrade to Zephyr 2.4
...
- Make all struct device * constant
- Add additional argument to PWM nodes in devicetree
- Track customized LibreSolar/zephyr branch in platformio
- Update OLED submodule
2020-11-09 20:07:49 +01:00
Martin Jäger
06499a2409
PWM solar input: Fix voltage calculation offset in dts
...
This offset had to be left-shifted by 4 since the DAQ calculations switched
to 16-bit resolution.
2020-10-14 09:51:52 +02:00
Martin Jäger
1356de230f
Configure half_bridge PWM via board.dts and pinmux.c
...
Removes some of the hard-coded configuration in half_bridge.cpp and moves it
to board configuration.
The previous manual pinmux for the PWM output pins is now completely replaced
with Zephyr pinmux.
2020-09-21 12:45:22 +02:00
Martin Jäger
6be4e20f04
Make load OC and LVD recovery delay configurable
2020-08-19 15:55:15 +02:00
Martin Jäger
5e5f2c6680
mppt_1210_rc: Use USART1 as debug serial
2020-08-18 12:14:59 +02:00
Daniel Fanache
c8fa15a860
Remove executable bit for board definition files.
2020-08-17 19:59:58 +02:00
Daniel Fanache
e427b45352
Use DT macros instead of Kconfig for board pinmux
...
Stops using CONFIG_device_x style configuration items and checks the
devicetree to determine if the nodes are enabled.
Fixes UEXT serial port not working.
2020-08-17 19:59:58 +02:00
Martin Jäger
bbd1312fe5
Relocate and clean up application Kconfig structure
2020-07-24 08:49:47 +02:00
Martin Jäger
8e06357a7d
Make CAN node ID configurable
2020-07-23 17:34:41 +02:00
Martin Jäger
dc4576c8b4
Remove all board.h files
...
Final updates to devicetree files (adding temperature sensor information) make
board.h files obsolete.
2020-07-23 17:34:41 +02:00
Martin Jäger
27cdcb3bf6
LED setup via devicetree
...
- New charlieplexing-leds binding
- board.dts files updated
- Pin and LED setup removed from pinmux.c and board.h files
2020-07-23 17:34:41 +02:00
Martin Jäger
3012501358
Switch to Zephyr 2.3 and update pio check
2020-07-23 12:55:38 +02:00
Martin Jäger
6316dcd57f
Add DC/DC HV side output enable switch
2020-07-23 12:55:38 +02:00
Martin Jäger
7af7d1c4ee
Add CAN ISO-TP support
2020-07-23 12:55:37 +02:00
Martin Jäger
8a28d8bc22
Remove unused bootloader support
2020-07-23 12:41:32 +02:00
Martin Jäger
2a3e50f6ca
Add battery temp. sensor to MPPT 2420 RC
2020-07-23 12:41:32 +02:00
Martin Jäger
a7f4ccaa91
Add CAN support for MPPT 2420 RC board
...
The CAN-FD driver is not yet in Zephyr master, so it is required to get
Zephyr PR 22832 to actually use CAN with this MCU.
2020-07-23 12:41:24 +02:00
Martin Jäger
d283436747
Move ADC peripheral setup to devicetree
...
Remove the ADC channel configuration from the board.h files and use new
DT macros to configure the ADC peripheral based on board.dts only.
2020-07-20 09:07:31 +02:00
Martin Jäger
1b6c56d25b
Replace adc-gain DT binding with adc-inputs
...
Preparation for cleanup of ADC driver.
2020-06-26 15:17:53 +02:00
Martin Jäger
3c9a6e49f1
Fix not enabled UART_1 for some boards
2020-06-26 14:36:36 +02:00
Martin Jäger
54bc5eaee8
Add MPPT 2420 RC board
2020-06-17 11:15:50 +02:00
Martin Jäger
3185ff32a1
Add support for Zephyr 2.3.0 (using west)
...
Enable CONFIG_LEGACY_DEVICETREE_MACROS and fix removed Kconfig values
like UART_1 to support v2.2 and v2.3.
2020-06-17 11:15:38 +02:00
Martin Jäger
fb3251b88a
Add HS MOSFET fail-safe protection Kconfig
...
The function already existed since a while, but was accidentally not activated.
This is fixed by this commit.
2020-06-05 17:24:16 +02:00
Martin Jäger
fc0276e72c
Allow custom DC/DC control functions
...
A Kconfig CUSTOM_DCDC_CONTROLLER is introduced to enable implementation of
more sophisticated control functions than the standard perturb and observe.
A function dcdc_low_level_controller() must be implemented and is called
from the DMA interrupt after each new current sensor reading.
The default Dcdc::control() function is defined __weak.
2020-06-05 16:22:41 +02:00
Martin Jäger
7769e4063c
Allow more generic firmware customization
...
This commit adds a new Kconfig setting CONFIG_CUSTOMIZATION. If enabled, the
subdirectory src/custom is added to the build. It can contain an own
CMakeLists.txt file to add several different C/C++ files.
Readme has been updated to explain also DTS overlays and custom prj.conf files.
2020-06-04 11:50:09 +02:00
Martin Jäger
0e5e2f89b1
Remove outdated Kconfig options
2020-06-04 11:50:09 +02:00
azeemshatp
cfed3ed6e9
Configure custom data nodes
2020-05-26 15:02:26 +02:00
Martin Jäger
faf19ee9e0
Fix wrong voltage divider in MPPT 2420 HPX
2020-05-11 10:32:49 +02:00
Martin Jäger
3d4da66955
Generate DeviceID from hwinfo
2020-05-06 12:53:26 +02:00
Martin Jäger
efc0bc8fdc
Update to ThingSet library v0.3
2020-05-06 12:53:26 +02:00
Martin Jäger
5e94d72117
Use LL for PWM switch driver to support STM32G4
...
This adds support for PWM solar input of MPPT 2420 HPX. Also adds new
PwmSwitch::test() function.
2020-05-06 12:53:26 +02:00
Martin Jäger
4011370646
MPPT-2420-HPX: Use TIM8 for charge pump
...
This commit implements the PWM driver manually using STM LL, as the Zephyr
driver doesn't work for "advanced" timers like TIM8.
2020-05-06 12:53:26 +02:00