LPC1347 eeprom write and interrupts.

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

LPC1347 eeprom write and interrupts.

2,435 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Mon Mar 24 07:40:24 MST 2014
Hi guys,

Just a quick question..

At the moment I'm writing to the eeprom after disabling the interrupts.. Do I have to do this?
I want to do long multi-byte (roughly 16 - 32bytes) writes and don't want to disable the interrupts for extended periods of time.

cheers
标签 (1)
0 项奖励
回复
8 回复数

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thommaughan on Sun Nov 30 17:36:59 MST 2014
It's great that the libeeprom was created, just wishing I could get LPCXpresso project to link with it.

I've followed the manual steps (http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects) to include the library, but end up with a link error.   

<snip>

OK, problem solved.   I was including the library with the name libeeprom ('.a' removed per the document).   The mistake I was making, the library name should be included as eeprom (not libeeprom).   This causes LPCXpresso to include the library named libeeprom.a.

0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Thu Mar 27 06:20:17 MST 2014
Smart Update?

http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Thu Mar 27 06:01:17 MST 2014
"Then just link your application to libeeprom.a"
How do we link our app to this? Been trying but cant work it out. :/
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Thu Mar 27 02:12:40 MST 2014
Ok sweet. Will have a look.
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Wed Mar 26 05:50:24 MST 2014
Hi ub3r,

The restriction of disabling interrupts only applies when using IAP (=ROM) calls.
When using the library (as pointed out by mc: http://www.lpcware.com/content/blog/lpc1100lpc1300-eeprom-library), this restriction does not apply.

Regards,
Wouter
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Tue Mar 25 06:41:22 MST 2014
I2C eeprom here we come. :(
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Tue Mar 25 06:39:24 MST 2014
This contradicts this: http://www.lpcware.com/content/forum/lpc1347-eeprom-iap-basic-questions#comment-1123913
Also, I have a timer interrupt going now and my during my eeprom writes and reads and its crashing. Some sort of hard fault as the debugger doesnt like it. :(
0 项奖励
回复

2,208 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Mon Mar 24 14:49:05 MST 2014
Hi ub3r,
You don't need to disable the interrupt. Please see below link for the library.
http://www.lpcware.com/content/blog/lpc1100lpc1300-eeprom-library
0 项奖励
回复