Greetings,
I am currently using the MK22FN256VLH12 with KDS v3.2 and Processor Expert.
I am trying to use the UART2 port (Pins 59 (PTD2) and 60 (PTD3)), however I keep running into this error. I have not had any issues before like this.
I checked the referenced component 'Pins' and it leads me to my general IO component for PortD. Below is what 'Pins' displays.
But nothing really shows up here. Port D pin 2 (pin 59) shown. I think it must be something with the wake-up pin.
Below is the Pin settings again under the wake-up. P13 (pin 59) is not assigned.
My guess is that it thinks Pin 59/60 are in use because the current IO pin has it mux'ed to be used elsewhere such as the wake-up pin. However, I am not sure how/where to resolve this.
Any Suggestions would be appreciated! Thanks!
Hi Christopher Burg,
Yes, you are right, PE component can't select two component with the same pin.
But if in your Bluetooth you just want to control pin PTC3, you totally don't need to use the component.
You can configure the PTC3 pin as GPIO, and set it to the output, then you can use your
About the PTC3 initialization with register.
SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;// enable port C clock gate
PORTC_PCR5 &= 0xFFFFF0FF;
PORTC_PCR5 |= PORT_PCR_MUX(1) | PORT_PE_MASK|PORT_PS_MASK;
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------