Go to advanced search

by emilpopa
Sat Jan 19, 2019 9:10 pm
Forum: Bare metal, Assembly language
Topic: run from 0x00800000 (pi zero w)
Replies: 6
Views: 1830

Re: run from 0x00800000 (pi zero w)

Hello, In your small test : "push {r4, lr};" save work R4 and link register because is destroyed with bl instruction "bl mainprogappcod;" execute main..... "pop {r4, pc};" restore R4 and PC(LR saved initial) "bx lr;" out of sequence ??? "dummyappcod:" "bx lr;" "mainprogappcod:" "bx lr;" return to ca...
by emilpopa
Sat Jan 19, 2019 8:49 pm
Forum: Bare metal, Assembly language
Topic: how to use system timer in arm-asm
Replies: 6
Views: 2007

Re: how to use system timer in arm-asm

The response in depending on your context. There are 4 sys timers defined. For each of them you have the registers : CS, CLO, CHI, and c0--c3 attached to system timer 0-3. Each timer is connected to an interrupt, for PI 2 interrupt 0-3. You have to follow this steps : - select a timer (ex T1) - enab...

Go to advanced search