AnsweredAssumed Answered

Hi guys,  The issue is after a software reset of the top hub, the following single line of code causes the micro to lock up:  PORTA_PCR4 = (uint32_t)((PORTA_PCR4 & (uint32_t)~(uint32_t)(                         PORT_PCR_PS_MASK |                         P

Question asked by Braden Fessler on Dec 19, 2018
Latest reply on Dec 20, 2018 by Braden Fessler

Hi, I'm Braden, but my buddy Rick is having this problem with the MK10

 

Hi guys,

 

The issue is after a software reset of the top hub, the following single line of code causes the micro to lock up:

 

PORTA_PCR4 = (uint32_t)((PORTA_PCR4 & (uint32_t)~(uint32_t)(

                        PORT_PCR_PS_MASK |

                        PORT_PCR_PE_MASK |

                        PORT_PCR_MUX(0x06)

                      )) | (uint32_t)(

                        PORT_PCR_MUX(0x01)

                      ));

 

What this convoluted line of code does is turns off the pullup resistor on PORTA output 4.  The same command for PORTA output 5 works flawlessly.

 

Anything helps and thank you both.

 

Rick Henderson  | Senior Software Engineer

Outcomes