This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0C1104: MSPM0C1104

Part Number: MSPM0C1104


Tool/software:

Hi,

We adopted XMSM0C1104S8YCJR with only 5 GPIO pins including PA19 & PA20 as SWDIO & SWCLK.

EE need more GPO and ask SW to re-configure PA19 & PA20 as GPO.

Nevertheless, we still need to flash the mcu by SWD.

Is it possible to configure these 2 pins as GPO and keep SWD to flash firmware at the same time?

FAE suggested us to as delay before GPIO init and it works.

But delay is not acceptable for user everytime device is turned on.

  • Hi Frank,

    It is not possible for a pin to have multiple functionalities simultaneously. How are you delaying the GPIO init? How long is the delay? As long as you aren't using the debugger and need SWD access to the device, I don't know if a delay is necessary.

    Best,

    Owen

  • Hello Frank,

    Re-configuring SWD to general GPIO is in your application code, every time you reset the device and then MCU will start to run the app code, its time is very very short. It means that maybe before MCU complete connecting with debugger and entering into debug, your MCU has run to the code which will re-configure SWD pin to general GPIO, which will make your code download failed, That is why we ask customer to add time delay. Because it is used to give MCU some time to enter into debug mode before MCU run to SWD re-configuration code.

    Of course, if customer has any method to do a check. For example, any signal or mark can used to tell MCU this time reset is whether running app code, then MCU don't need to operate time delay, OR need enter into debug mode, and MCU need to operate time delay,

    Best Regards,

    Janz