IAP call from assembler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IAP call from assembler

521 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Mon Nov 16 13:21:37 MST 2015
If I wanted to call the IAP (EEPROM write) routine from assembler, is the following correct?
          .equ  iaplocation,0x1fff1ff1
command: .space 20
result: .space 16

Command number, eeprom address, RAM address, number of bytes and clock frequency then go in command, command+4, command+8, command+12 and command+16 respectively
           LDR R0,=command
           LDR R1,=result
           BL iaplocation

Labels (1)
0 Kudos
Reply
0 Replies