How to use I2C1 on imx51 evk with wince 7

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

How to use I2C1 on imx51 evk with wince 7

513 Views
謝端桂
Contributor I

Dear all:

I want to use I2C1 on imx51 evk with wince 7, but it conflict with ecspi.

The reference manual say "both the I2C1 and eCSPI1 drivers cannot be included in the BSP workspace at the same time."

So I disable ecspi driver set BSP_NOCSPI = 1.

but the error message show:

BUILD: [03:0000003192:ERRORE] Error(s) in directory "C:\WINCE700\platform\iMX51_EVK\SRC\DRIVERS\PWRBUTTON\". {log="C:\WINCE700\build.log(63786)"}

BUILD: [03:0000003193:ERRORE] NMAKE : fatal error U1073: don't know how to make 'C:\WINCE700\osdesigns\iMX51_EVK_Mobility\Wince700\iMX51_EVK_ARMV7_Retail\cesysgen\platform\iMX51_EVK\lib\ARMV7\retail\pmicSdk_MC13892.lib' {log="C:\WINCE700\build.log(63787)"}

BUILD: [03:0000003195:ERRORE] TargetExeFiles  -nologo BUILDMSG=Stop.  BUILDROOT=C:\WINCE700\platform\iMX51_EVK CLEANBUILD=1 LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2. {log="C:\WINCE700\build.log(63789)"}

BLDDEMO: ERROR: There were errors building CEBASE. {log="C:\WINCE700\build.log(63857)"}

How do I do, if I want to use I2C1?

Thank for your help.

Best regards,

Victor

0 Kudos
2 Replies

425 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi 謝 端桂

Make sure that the BSP_ECSPI1 env variable is disable (there is no BSP_NOCSPI) before build your BSP, also check the catalog item Third Party > BSP > Freescale :ARMV4I > Device Drivers > CSPI Bus is not available. Also for conflicts with IIC1. You have to change the registry key to load the I2C1 module. Please follow the information in the Wince BSP reference manual chapter 15. There are some keys should be added in the registry table to properly load the I2C1 module, In platform.reg file under Wince WINCE600\PLATFORM\iMX51-EVK\FILES there is the registry configuration to ESCSPI and/or I2C1. After modification please build your project and run the unit test to make sure everything is working well.

Regards

0 Kudos

425 Views
謝端桂
Contributor I

Hi Bio_TICFSL :

The BSP_ECSPI1 env variable is not effect, the CSPI bus driver always available in the catalog item.

But the BSP_NOCSPI is effect, I can disable the CSPI bus driver in the catalog item.

The BSP_NOCSPI env variable is in the chapter 10 of  "i.MX51 EVK Windows Embedded Compact 7 Reference Manual".

ECSPI.bmp

Thanks for your help

0 Kudos