~aleteoryx/muditaos

ref: sign_test muditaos/module-sys d---------
[BH-2001] Fix debug build with new FSL

* Fixed some issues that have been
caught by asserts in debug build.
* Minor cleanup.
919288ee — Maciej Gibowicz 1 year, 7 months ago
[BH-1950] Fix incorrect Power Management statistics in the logs

When the CPU is in WFI mode, the CPU usage statistics should only
reflect the WFI range and not the other frequency ranges.
[BH-1799] Refactor usage of unicasts to dispatch BatteryStatusChangeMessage

Unicast type of sending BatteryStatusChangeMessage is changed to multicast type.
Thanks to this, the flow of messages is more transparent
and there is no unnecessary transmission to non-existent services.
54bf8311 — Dawid Wojtas 2 years ago
[BH-1770][BH-1677] Update fsl drivers

Now the system uses 2.14.0 version.
Add only necessary drivers:
- pit
- pmu
- rtwdog
- snvs_hp
- snvs_lp
- src
- trng
- wdog
- gpio
- gpt
- lpi2c
- lpuart
- lpuart_edma
- common
- common_arm
- dmamux
- edma
- flexram
- flexram_allocate
- clock
- cache
- CMSIS
- dcp
- iomuxc

Changed speed of the USDHC clock from ~109MHz to ~81MHz.
Also changed bus timing from kMMC_HighSpeedTiming to
kMMC_HighSpeed200Timing for better efficiency.
[BH-1833] Enable RTWDOG in WFI mode

* Fixed initial RTWDOG config procedure, which
put watchdog module in some non-deterministic
state due to not waiting after unlock request
and config change, what prevented the watchdog
to be reconfigured later in the OS.
* Configured RTWDOG to continue running in
WFI to prevent potential freezes caused by
CPU not being woken up by periodic RTC
interrupt.
[BH-1657][BH-1833][BH-1854] Add WFI and SDRAM self-refresh mode

* Added mechanism enabling CPU to
enter WFI mode when the OS is
in idle, what results in large
power consumption reduction.
* Added mechanism to switch SDRAM to
self-refresh mode before entering
WFI, what resulted in further power
consumption reduction.
6e76dc3e — Mateusz Szczesny 2 years ago
[BH-1787] Reboot to MSC endpoint

To allow the automation of gathering logs and swapping out OS images during tests a MSC reboot
endpoint was added. Together with a change to ecoboot, this allows the sending of a "reboot to
MSC" command. The deivce will then reboot and enter MSC mode.
920db59b — Maciej Gibowicz 2 years ago
[BH-1791] Add CPU frequency lock during log dump

This will improve security and peripheral stabilization when downloading
logs to a file.
cbe1ed63 — Maciej Gibowicz 2 years ago
[BH-1801] Fix incorrect calculation of requested CPU frequency

Sometimes when the frequency is locked, e.g. at 132 MHz, the algorithm
still calculated a lower frequency, e.g. 66 MHz.
d9a1194e — Lukasz Mastalerz 2 years ago
[BH-1688] Create a standard for logs

* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
635ad1ac — Maciej Gibowicz 2 years ago
[BH-1774] Fix frequency lock during user activity

- Sentinel locks the frequency when pressing buttons and the encoder.
- The "user activity" sentinel will be properly managed by the system
(CpuGovernor) just like other sentinels.
- Adding information about active sentinels in the power management
statistics logs
3cbbeff5 — Lefucjusz 2 years ago
[MOS-1011] Fix frequency switching stability

Multiple fixes of clock switching related
stability issues:
* added RC oscillator hysteresis as in NXP example;
* changed DCDC converter config;
* configure PLL2 to be able to run on any CPU
frequency level;
* added switching to 1.275V (overdrive) voltage
when applying any clock change above 12MHz as
well as LDO or bandgap switching, as done in
Mbed OS' lpm.c for RT1050;
* changed BMCR AXI queues weighs for SDRAM
in JLink scripts to disable operations
reordering, as it is known to cause data
integrity issues;
* extracted some code to separate files;
* smaller or bigger code cleanups.
97527883 — Lukasz Mastalerz 2 years ago
[BH-1412] Whitelist update

Whitelist removed for Harmony
Changed the way whitelist is obtained
Added missing logs for Eink Dispaly
462a7393 — Lukasz Mastalerz 2 years ago
[BH-1412] Fix system shutdown procedure

Changed startup services order.
Prevent handling multiple "close ready" messages from one service while closing
system.
Introduced a new state in ServiceGUI.
Fixed a problem with turning on Harmony with a connected USB cable.
f7ad63c9 — Lukasz Mastalerz 2 years ago
[BH-1412] Fix services dependencies

Changes in dependecy managment
Replacing state flags with states in ServiceGUI
Unifying some parts of code
4c661d4f — Lukasz Mastalerz 2 years ago
[BH-1412] Improve system shutdown procedure

Changed default Worker join timeout to a more realistic value
 in case of system shutdown procedure.
4b854391 — rrandomsky 2 years ago
[MOS-30] Fix for Alarm not being handled properly during a phone call

During the phone call, the alarm was not displayed and subsequent alarms
after this scenario did not work. This has now been fixed and the alarm
during a phone call will be automatically snooze.
86144284 — Maciej Gibowicz 2 years ago
[BH-1722] Fix unswitchable alarm audio

Disabling the alarm by clicking "deep press" on the system shutdown
screen only visually deactivated the alarm
but the alarm sound continued to ring.
783ebcbb — Lefucjusz 2 years ago
[MOS-183] Fix RT1051 debug build

Fix of multiple issues that resulted
in debug build failing.
8c2b5aa7 — Dawid Wojtas 2 years ago
[BH-1624] Fix shutdown procedure

In some cases, the system wasn't able to turn off
because the GUI service got stuck. The device
was still working in the background. The cause
was an empty queue in DrawCommandQueue which
hang the GUI worker.

The interface was modified and synchronization
mechanism was removed.
The thread no longer waits in dequeue().

Also changed the worker to close in the right
way the logger worker.
Next