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.

MSPM0G1507: How to disable BSL PA18 pin and use for general purpose operation

Part Number: MSPM0G1507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

  1. Based on the information provided in the datasheet and user manual, BSL is typically required only when programming via UART or I2C. In our case, we are not using either of these interfaces for programming; instead, we rely solely on JLink (SWDIO, SWDCLK, NRST and VCC and GND pins).
  2. Can I use the PA18 pin as normal GPIO if we are not using BSL? by disabling BSL feature
  • Hi Vivek,

    In the NON-MAIN region of memory we have registers you can set to disable BSL. Once disabled then the GPIO BSL invoke will no longer function and you're free to use the pin however you choose.

    TRM - 

    SysConfig Implementation:

    Regards,
    Luke

  • Hi Luck,

    I am glad you are here!!

    I did these settings but didn't understand where to do it, I couldn't find an example in the SDK for same.


    Regards,

    Vivek

  • Hi Vivek,

    There is not a code example for your use case with the non-main configurations but you can read the details in the TRM. Section 1.4.1 is the start to the Configuration memory (NONMAIN) and section 1.5 has the NONMAIN registers.

    The reason we don't have a code example is it is more of a specific use case for an engineers use case rather than a generic IP that many people will use. You can also accidently lock yourself out if you adjust the security settings to block reprogramming and factory resets (this is an specific security setting and used for one time programming section 1.4.2.1).

    Regards,
    Luke