Programming PN7642 with MCUXpresso

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

Programming PN7642 with MCUXpresso

581 次查看
MPEngineering
Contributor I

Hey there,

i got two problems using the #PN7642 (Dev Kit) with MCUXpresso (v24.12.148, SDK version 2.12.5)

First one is, that i´m not able to use kGPIO_I2CM_SDA and kGPIO_I2CM_SCL Pins as Output pins. Trying to set them high results in 0,5 V level.

I tried SPIM pins as Output and this was no problem.

 

Second one is, that i cannot see the Register values using Peripheral+ view. When I stop the Controller in debug mode, all Registers are red. Only Timer Component shows me some values. What could cause this?

 

 

Best regards

Oliver

0 项奖励
回复
5 回复数

549 次查看
MPEngineering
Contributor I

Well, i want to know the recent register values which i wrote to the controller.

In my understanding I use Peripherals+ view to show the recent values.
So stopping the Controller in debug mode should show me these values, but i only see the red highlighted Registers without values.

What could be the problem?

 

Best regards

 

0 项奖励
回复

509 次查看
KaiLi
NXP TechSupport
NXP TechSupport

Hello @MPEngineering 

This should be related to the IDE. You can use an intermediate variable (reg_value) for debugging. That is, you can read the value of the peripheral register and assign it to reg_value, then add reg_value to the debugging window. At this time, you can see the value of the register. It is recommended that you try this.

0 项奖励
回复

573 次查看
KaiLi
NXP TechSupport
NXP TechSupport

Hello @MPEngineering 

You should configure the register PCRM_PADOUT (0xBB) to set SDA/SCL as general GPIO, and then these two pins can be configured to have a high or low output.

0 项奖励
回复

571 次查看
MPEngineering
Contributor I

Hey KaiLi,

 

got it. 
And what about the Register View? See the photo attached.

 

Best regards

0 项奖励
回复

556 次查看
KaiLi
NXP TechSupport
NXP TechSupport

Hello @MPEngineering 

It should be as the below:

KaiLi_0-1752838727806.png

 

0 项奖励
回复