IAP call from assembler

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

IAP call from assembler

901 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Mon Nov 23 14:35:18 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
2 Replies

884 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Tue Nov 24 05:58:10 MST 2015
Thanks.

Sometimes I like to check I'm setting off in the right direction before I start, instead of wading on in and not asking until I get stuck.

This goes in the next project to start.

I reposted on LPC11xx because there weren't any replies when I posted on LPC13xx.
0 Kudos

884 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Tue Nov 24 01:58:54 MST 2015
Looks OK to me.
Did you test it? If it's wrong it should be rather obvious.

How did it go for the LPC13xx where you asked the same question a week ago?
0 Kudos