~aleteoryx/muditaos

ref: e39871f8a9434caa9679569aeefb481348f3af57 muditaos/module-bsp/board d---------
3193f6fa — Lefucjusz 2 years ago
[MOS-230] Print last instruction address before RTWDOG reset

Added mechanism that stores address of last
executed instruction before RTWDOG timeout
to enable some basic debugging in such cases,
as such resets do not create crashdumps and
leave no information in logs.
1b03981b — Maciej-Mudita 2 years ago
[BH-1701] Add extended user heap statistics for debugging

Added extended statistics to help track potential memory leaks:
* used user heap size per task
* number of successful allocations
* number of successful frees
92d9902b — Lefucjusz 2 years ago
[BH-1702] Fix RTWDOG main DCDC reset

Fix of the issue that RTWDOG performed
only CPU reset in case of timeout due
to IRQ misconfiguration resulting in
RTWDOG handler not being called.
e1d3862f — Lefucjusz 2 years ago
[BH-1673] Fixes for Harmony random resets

Next part of Harmony random resets fixes:
* added RC OSC startup delay as in newest lpm.c;
* changed order of clock source, oscillator and
LDO switching;
* removed connecting internal DCDC load resistor,
as it is only required to speed up converter
startup after it was turned off completely;
* changed DCDC operation mode to continuous
conduction;
* set low VDD_SOC_IN voltage back to 950mV as
suggested in RM.
* added switching DCDC converter mode to
discontinuous conduction for two lowest CPU
clock frequencies, as using CCM mode resulted
in very high current consumption that would
shorten Harmony's life on battery
significantly.
ff18f17e — Dawid Wojtas 2 years ago
[BH-1700] Add date and time to logs at the startup

Save date and time at the startup of the system for analysis purposes.
3e1170da — Lefucjusz 2 years ago
[BH-1673] Harmony random resets fixes

* Switching VDD_SOC_IN only after PLL2 is turned off.
* Weak LDO stabilization delay.
* Removed switching to 1.275V before frequency change.
* Cleanups in LDO switching.
* Removed switching PeriphClk2Div for fCPU <= 24MHz,
using AhbDiv instead.
* Removed log from _exit that caused logger mutex deadlock
c96dc7dc — rrandomsky 2 years ago
[MOS-686] Fixed MTP availability only after phone unlocked

Fixed file access via MTP even when phone is not unlocked.
Now access is granted when the phone is unlocked by the user entering
a passcode. If the phone is not passcode protected (passcode is nor set)
then access to the files is always possible via MTP.
205fedb9 — Mateusz Piesta 2 years ago
[BH-1595] USB reset procedure

* Fixed incorrect reset procedure
* Minor refactor
be8521bd — Lefucjusz 2 years ago
[BH-1694] Increase CPU core voltage from 900mV to 975mV

Previous voltage setting was lower than the one
suggested in RT1051 RM and would lead to CPU
instability in certain conditions.
3a5f668c — Lefucjusz 2 years ago
[BH-1583] Fix SNVS LP lockup after debugging

* Fix of the issue that manifested after
running MuditaOS on Harmony via JLink,
which resulted in OS freezing when
trying to set time in normally booted
(via the bootloader) device.
* Minor RTC code cleanup.
* Partial T6 JLink script cleanup.
558dd345 — Dawid Wojtas 2 years ago
[BH-1689] Turn off charging for CDP and SPD

Due to high current consumption the device
will be charging only for DCP mode and if the timeout
will occur.
b6235923 — Mateusz Piesta 2 years ago
[BH-1595] USB charger detection issues

* Fixed issues with USB charging port detection
* Fixed memory leak in usb_stack/OS integration layer
* Fixed incorrect handling of software timer
* Minor cleaning/refactor.

[BH-1595] Turned off USB/PC charging

Charging enabled only for a dedicated charger. Users won't be able
to charger while connected to the PC.
7fa508cd — Lefucjusz 2 years ago
[MOS-981] Fix crash on phone turn off

Fix of the issue that the phone
might sometimes crash on shutdown.
68b8330e — Lefucjusz 2 years ago
[MOS-981] Magnetometer driver cleanup

Cleanup of the magnetometer driver.
Added checks of all I2C operations
return codes and error messages
in case of failures.
433322b5 — Dawid Wojtas 2 years ago
[BH-1671] Reinit eMMC driver

Reinit eMMC driver if write/read transmission
failed.
f79313e3 — Lefucjusz 2 years ago
[BH-1661] E-ink display power management tweaks

Tweaks and changes required to optimize
power consumption for Harmony.
fdede98a — Lefucjusz 2 years ago
[BH-1672] Add logging of eMMC parameters

Added logging of eMMC storage card
parameters so that it's easy to
determine what chip is installed
in the device the logs are from.
d2bf42d4 — Adam Wulkiewicz 2 years ago
[BH-1655] Fix memory leaks in clock faces and shortcuts

Disable libphonenumber initialization since it is not used in Harmony
but takes around 1.4MB of memory

Add heap allocation statistics
2cbadc6a — Dawid Wojtas 2 years ago
[BH-1630] Turn off the device for low voltage

The system closes only if the SoC is 0%, but
it doesn't react if the voltage has low level.
The new implementation invokes the close
procedure if the voltage is less than 3.4V.
This solution should avoid possiblity to
hang the MCU.
f7980fea — Dawid Wojtas 2 years ago
[BH-1649] Reimplement I2C communication attempts

The CW2015 driver should avoid any logic.
Thus I2C communication attempts were moved
to the BatteryCharger which is product specific.
Next