Programming PN7642 with MCUXpresso

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

Programming PN7642 with MCUXpresso

586 Views
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 Kudos
Reply
5 Replies

554 Views
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 Kudos
Reply

514 Views
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 Kudos
Reply

578 Views
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 Kudos
Reply

576 Views
MPEngineering
Contributor I

Hey KaiLi,

 

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

 

Best regards

0 Kudos
Reply

561 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @MPEngineering 

It should be as the below:

KaiLi_0-1752838727806.png

 

0 Kudos
Reply