LS1046A How to enable I2C4 automatically in RCW

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

LS1046A How to enable I2C4 automatically in RCW

跳至解决方案
2,474 次查看
Darren_P
Contributor II

Hi NXP,

As title. How can I enable I2C4 automatically in RCW?

I found "Extended RCW PinMux Control Register" in reference manual.

Address: 157_0000h base + 40Ch offset = 157_040Ch.

What's the command format set in RCW?

 

And if we didn't enable I2C4 function in boot stage. Does that mean I can't use I2C4 control when the system is in user space.

 

Thanks!!

0 项奖励
回复
1 解答
2,443 次查看
Pavel
NXP Employee
NXP Employee

Add .pbl writing to RCW. Attached file contains RCW example for I2C4 pins enabling.

Path for this file in LSDK 2108 is the following:

flexbuild_lsdk2108/components/firmware/rcw/ls1046ardb/RR_FFSSPPPH_1133_5559

 

See information about files using for building in the following file:

flexbuild_lsdk2108/configs/board/ls1046ardb/manifest

 

Use the following command sequence for RCW, ATF and .img building:

flex-builder -c rcw -m ls1046ardb -b sd

flex-builder -c atf -m ls1046ardb -b sd

flex-builder -i mkfw -m ls1046ardb -b sd

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,465 次查看
Pavel
NXP Employee
NXP Employee

The LS1046a RCW does not have bits for I2C4 pins assignment.

Use the DEVDISR5 Register. See the Section 12.3.10 of the LS1046a Reference Manual.

Use the SCFG_RCWPMUXCR0 register. See the Section 11.3.41.

 

0 项奖励
回复
2,450 次查看
Darren_P
Contributor II

Hi Pavel,

 

Yes I understand those registers. My question is how can I enable those functions in RCW?

I noticed there's a pbi section which allows me to send some commands. 

Here's my command format. write 0x0157040C, 0x00000000. But it doesn't work.

Is my understanding for how to enable I2C4 wrong?

 

Darren

0 项奖励
回复
2,444 次查看
Pavel
NXP Employee
NXP Employee

Add .pbl writing to RCW. Attached file contains RCW example for I2C4 pins enabling.

Path for this file in LSDK 2108 is the following:

flexbuild_lsdk2108/components/firmware/rcw/ls1046ardb/RR_FFSSPPPH_1133_5559

 

See information about files using for building in the following file:

flexbuild_lsdk2108/configs/board/ls1046ardb/manifest

 

Use the following command sequence for RCW, ATF and .img building:

flex-builder -c rcw -m ls1046ardb -b sd

flex-builder -c atf -m ls1046ardb -b sd

flex-builder -i mkfw -m ls1046ardb -b sd

0 项奖励
回复