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.
This commit completely removes versions like _0v4 in board names
and adds DTS overlays to zephyr/ directory. These can be used to
compile for older board versions.
Some additional configuration changes are handled in board.h file
using board version number from DT_CHARGE_CONTROLLER_PCB_VERSION_NUM.
- 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
- Switched back to older mbed version, as update broke comparator function
- Added voltage dip detection to disconnect load if charge controller is connected to small
battery or with bad wires and short circuit detection doesn't trigger
- Added more error flags to diagnose reasons for load disconnect
A custom linker script (.ld) is added to the root project folder. platformio.ini file updated to add the new env: pwm-2420-lus-v0.3-bl and build_flags. Start address for each Application in the flash need to be is modified in this .ld file. Readme file is updated accordingly. New functions added to perform flash write operations to store the bootloader status.
Now handles buffer full condition gracefully. Originally a full buffer
would have prevented any further command processing until reboot
Changed buffer types to minimize the number of explicit cast we are
using
These replace the previous C impementation.
- permits any combination of thingset devices being present
- removes essentially all thingset related #ifdefs outside the actual implementation files.
- Code size is reduced. Code duplication eliminated.
The code is not final in its structure, but works with CAN and Serial.
USBSerial does not work on the F072 (L073 not tested) but this was also
the case for the C implementation.
It is required to apply the changes to the platformio.ini otherwise
the code will not compile.
* Reduced codesize: Switch to newlib-nano
Figured out how to switch to newlib-nano in a simple way.
Reduced build size by about 29k. Applied this to all STM32 builds.
Please test with the STM32L072 hardware, I don't have one of those,
only STM32F072
Also "upgraded" the compiler accepted language standard to gnu c++11 (from gnu++98).
And finally defined that all floating point constants are to be treated
as "floats" and not as double (which is the default). Reduces the number
of implicit double promotions almost to the required minimum.
In some places the double functions are applied to floats which also
causes some unwanted time and code growth. But this is not fixed yet.
* Change travis to try to deploy only on "master" repo
* Fixed typo
gnu++11 was not really enabled, due to copy'n'paste typo.