Programming PN7642 with MCUXpresso

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

Programming PN7642 with MCUXpresso

907 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

875 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

835 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

899 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

897 Views
MPEngineering
Contributor I

Hey KaiLi,

 

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

 

Best regards

0 Kudos
Reply

882 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @MPEngineering 

It should be as the below:

KaiLi_0-1752838727806.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2135746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EProgramming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHey%20there%2C%3C%2FP%3E%3CP%3Ei%20got%20two%20problems%20using%20the%20%23PN7642%20(Dev%20Kit)%20with%20MCUXpresso%20(v24.12.148%2C%20SDK%20version%202.12.5)%3C%2FP%3E%3CP%3EFirst%20one%20is%2C%20that%20i%C2%B4m%20not%20able%20to%20use%26nbsp%3B%3CSPAN%3EkGPIO_I2CM_SDA%3C%2FSPAN%3E%26nbsp%3Band%26nbsp%3B%3CSPAN%3EkGPIO_I2CM_SCL%3C%2FSPAN%3E%26nbsp%3BPins%20as%20Output%20pins.%20Trying%20to%20set%20them%20high%20results%20in%200%2C5%20V%20level.%3C%2FP%3E%3CP%3EI%20tried%20SPIM%20pins%20as%20Output%20and%20this%20was%20no%20problem.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESecond%20one%20is%2C%20that%20i%20cannot%20see%20the%20Register%20values%20using%20Peripheral%2B%20view.%20When%20I%20stop%20the%20Controller%20in%20debug%20mode%2C%20all%20Registers%20are%20red.%20Only%20Timer%20Component%20shows%20me%20some%20values.%20What%20could%20cause%20this%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136951%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Programming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136951%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248495%22%20target%3D%22_blank%22%3E%40MPEngineering%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20should%20be%20related%20to%20the%20IDE.%20You%20can%20use%20an%20intermediate%20variable%20(reg_value)%20for%20debugging.%20That%20is%2C%20you%20can%20read%20the%20value%20of%20the%20peripheral%20register%20and%20assign%20it%20to%20reg_value%2C%20then%20add%20reg_value%20to%20the%20debugging%20window.%20At%20this%20time%2C%20you%20can%20see%20the%20value%20of%20the%20register.%20It%20is%20recommended%20that%20you%20try%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136577%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Programming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136577%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWell%2C%20i%20want%20to%20know%20the%20recent%20register%20values%20which%20i%20wrote%20to%20the%20controller.%3C%2FP%3E%3CP%3EIn%20my%20understanding%20I%20use%20Peripherals%2B%20view%20to%20show%20the%20recent%20values.%3CBR%20%2F%3ESo%20stopping%20the%20Controller%20in%20debug%20mode%20should%20show%20me%20these%20values%2C%20but%20i%20only%20see%20the%20red%20highlighted%20Registers%20without%20values.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EWhat%20could%20be%20the%20problem%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Programming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248495%22%20target%3D%22_blank%22%3E%40MPEngineering%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20should%20be%20as%20the%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22KaiLi_0-1752838727806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22KaiLi_0-1752838727806.png%22%20style%3D%22width%3A%20372px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348268i2F2F4E344039A077%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22KaiLi_0-1752838727806.png%22%20alt%3D%22KaiLi_0-1752838727806.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Programming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHey%20KaiLi%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Egot%20it.%26nbsp%3B%3CBR%20%2F%3EAnd%20what%20about%20the%20Register%20View%3F%20See%20the%20photo%20attached.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Programming%20PN7642%20with%20MCUXpresso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248495%22%20target%3D%22_blank%22%3E%40MPEngineering%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20should%20configure%20the%20register%20PCRM_PADOUT%20(0xBB)%20to%20set%20SDA%2FSCL%20as%20general%20GPIO%2C%20and%20then%20these%20two%20pins%20can%20be%20configured%20to%20have%20a%20high%20or%20low%20output.%3C%2FP%3E%3C%2FLINGO-BODY%3E