Initialize I2C in CORE_M0

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

Initialize I2C in CORE_M0

526 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vinod9990 on Sun Oct 19 00:49:23 MST 2014
Dear all,
I am working on LPC4350FET256 Dual core micrecontroller (CORE_M4 and CORE_M0) with base code "lpcopen_2_12_keil_iar_hitex_eva_4350" on freertos_blinky code.
I want to use I2C0 in CORE_M4 and I2C1 in CORE_M0. I initialize I2C0 and I2C1 in CORE_M4 code. After porting CORE_M4 and CORE_M0 image into SPI flash, at the time of Run CORE_M4 code stop working.
Where should i initialize I2C1 code to use in CORE_M0.
标签 (1)
0 项奖励
回复
2 回复数

505 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vinod9990 on Fri Dec 12 22:31:23 MST 2014
Thank you Sir.
0 项奖励
回复

505 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hangdog on Fri Oct 31 07:15:59 MST 2014
I haven't used the I2C peripherals, but afaik it makes no difference which core you use to interact with a peripheral, at any stage. It's not like an OS, where threads have resources associated with them. They're just raw cores, talking to the bus (or buses), the bus mediates requests, and those requests reach the peripherals. The peripherals know not which core is asking. As to "porting" into flash, and "stop working", well I guess we'd need more information. If your "porting" consisted of moving the code in the memory map, then is your code position independent?

Cheers
0 项奖励
回复