[RTEMS Project] #4746: Armv7-M SysTick clock driver uses off by one reload value
RTEMS trac
trac at rtems.org
Wed Oct 26 09:36:01 UTC 2022
#4746: Armv7-M SysTick clock driver uses off by one reload value
-----------------------------+------------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: defect | Status: closed
Priority: normal | Milestone: 6.1
Component: arch/arm | Version: 4.11
Severity: normal | Resolution: fixed
Keywords: | Blocked By:
Blocking: |
-----------------------------+------------------------------
Changes (by Dariusz Sabala <dariusz.sabala@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1eae6f24fec6c3ab00d8f5d0152d2a5b57ea4589/rtems"
1eae6f2/rtems]:
{{{
#!CommitTicketReference repository="rtems"
revision="1eae6f24fec6c3ab00d8f5d0152d2a5b57ea4589"
bsps/arm: fix Cortex-M7 systick reload value
- see ARM DUI 0646C Arm Cortex-M7 Devices Generic User Guide
"The RELOAD value is calculated according to its use.
For example, to generate a multi-shot timer with a period
of N processor clock cycles, use a RELOAD value of N-1.
If the SysTick interrupt is required every 100 clock pulses,
set RELOAD to 99."
- see routines used in CMSIS project for reference
Close #4746.
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4746#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list