IAP call from assembler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IAP call from assembler

1,594 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

1,577 次查看
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 项奖励
回复

1,577 次查看
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 项奖励
回复