Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SysTick initialization problem fixed in tx_initialize_low_level.s #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ports/cortex_m0/ac5/example_build/tx_initialize_low_level.s
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ _tx_initialize_low_level
; /* Configure SysTick. */
;
LDR r0, =0xE000E000 ; Build address of NVIC registers
LDR r1, =0
STR r1, [r0, #0x10] ; Reset SysTick Control
STR r1, [r0, #0x18] ; Reset SysTick Counter Value
LDR r1, =SYSTICK_CYCLES
STR r1, [r0, #0x14] ; Setup SysTick Reload Value
MOVS r1, #0x7 ; Build SysTick Control Enable Value
Expand Down
3 changes: 3 additions & 0 deletions ports/cortex_m0/gnu/example_build/tx_initialize_low_level.S
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ _tx_initialize_low_level:
@ /* Configure SysTick for 100Hz clock, or 16384 cycles if no reference. */
@
LDR r0, =0xE000E000 @ Build address of NVIC registers
LDR r1, =0
STR r1, [r0, #0x10] // Reset SysTick Control
STR r1, [r0, #0x18] // Reset SysTick Counter Value
LDR r1, =SYSTICK_CYCLES
STR r1, [r0, #0x14] // Setup SysTick Reload Value
LDR r1, =0x7 // Build SysTick Control Enable Value
Expand Down
3 changes: 3 additions & 0 deletions ports/cortex_m0/iar/example_build/tx_initialize_low_level.s
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ _tx_initialize_low_level:
; /* Configure SysTick. */
;
LDR r0, =0xE000E000 ; Build address of NVIC registers
LDR r1, =0
STR r1, [r0, #0x10] ; Reset SysTick Control
STR r1, [r0, #0x18] ; Reset SysTick Counter Value
LDR r1, =SYSTICK_CYCLES
STR r1, [r0, #0x14] ; Setup SysTick Reload Value
MOVS r1, #0x7 ; Build SysTick Control Enable Value
Expand Down
3 changes: 3 additions & 0 deletions ports/cortex_m0/keil/example_build/tx_initialize_low_level.s
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ _tx_initialize_low_level
; /* Configure SysTick. */
;
LDR r0, =0xE000E000 ; Build address of NVIC registers
LDR r1, =0
STR r1, [r0, #0x10] ; Reset SysTick Control
STR r1, [r0, #0x18] ; Reset SysTick Counter Value
LDR r1, =SYSTICK_CYCLES
STR r1, [r0, #0x14] ; Setup SysTick Reload Value
MOVS r1, #0x7 ; Build SysTick Control Enable Value
Expand Down