6 How to enable Interrupt handler with K1 button - limingth/LASO GitHub Wiki

How to build this app

limingth@ubuntu:~/Work-Dir/Linux-Codes/app1-EINT-demo$ make
arm-linux-as   -o start.o start.s
arm-linux-gcc -Wall   -c -o main.o main.c
arm-linux-gcc -Wall   -c -o uart.o uart.c
arm-linux-ld -Ttext 0x21000000 start.o main.o uart.o -o app1-EINT-demo.elf
arm-linux-objcopy -O binary app1-EINT-demo.elf app1-EINT-demo.bin
arm-linux-objdump -d -j .text app1-EINT-demo.elf > app1-EINT-demo.lst
arm-linux-objdump -d -s -j .data -j .rodata app1-EINT-demo.elf >> app1-EINT-demo.lst
ls -l *.bin
-rwxr-xr-x 1 limingth limingth 672 2012-05-15 17:15 app1-EINT-demo.bin
limingth@ubuntu:~/Work-Dir/Linux-Codes/app1-EINT-demo$ 

How to run app

LUMIT $ loadx 0x21000000                                                                       
your input: <loadx 0x21000000>                                                                 
0: <loadx>                                                                                     
1: <0x21000000>                                                                                
command do <loadx> 
load bin file by xmodem to address 0x21000000                                                  
987654
( ctrl+a s -> xmodem -> app1-EINT-demo.bin -> send it )
LUMIT $ go 0x21000000
your input: <go 0x21000000>
0: <go>
1: <0x21000000>
command do <go> 
go to address 0x21000000
abcd +  + efgh + ijklm + nopqrs +  +  +  + tuvwxy + zab +  + cd + efghi + jkl

abcdefghijk...xyz is printed by main loop
'+' is printed by interrupt handler C_IRQ_handler
⚠️ **GitHub.com Fallback** ⚠️