summaryrefslogtreecommitdiff
path: root/common_modules/module_lib
diff options
context:
space:
mode:
authorAlex Kiselev <[email protected]>2023-06-21 09:08:45 +0200
committerAlex Kiselev <[email protected]>2023-06-21 09:08:45 +0200
commit5d619e5c4ba36fdf4fe5bc6ffb34f18dc7076ac5 (patch)
tree2098a0844e78cf60e29f3eb678c01491c9ea3401 /common_modules/module_lib
parent1b2995cea8aecd46c8bc012f2605dea6142bec01 (diff)
SysTick initialization problem fixed in tx_initialize_low_level.s
Problem with first system tick was detected, it needs much more time for the first tick as it's defined. The reason for this behavior is incorrect initialization of the SysTick timer in the port file for the Cortex-M0. It doesn't reset the SysTick Current Value Register despite the fact that its value is not initialized at startup (see https://developer.arm.com/documentation/dui0552/a/cortex-m3-peripherals/system-timer--systick). So if we have 0xFFFFFF (this register has 24-bit), it means we will get about 256*256*256 / 48000000 for the tact frequency of 48MHz to reach the zero, that makes 350ms delay at startup.
Diffstat (limited to 'common_modules/module_lib')
0 files changed, 0 insertions, 0 deletions