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.

MSPM0L1228: GPIO initialization after POR

Part Number: MSPM0L1228

Tool/software:

Dear TI team,

I would like to initialize GPIOs after a power on reset of MSPM0 with the shortest delay.

Could you please provide an example or a link to documentation?

Note: I used the special function _system_pre_init() with MSP430 in the past.

Best regards

Joerg

  • Hi Joerg,

    We do not have documentation or examples doing this, but this process should be pretty simple. You can try putting the DL_GPIO_initDigitalOutput() and DL_GPIO_setPins() functions inside of the reset handler, as this will be the first code to be executed by the device. Alternatively you could experiment with placing it inside of the _c_int00_template() function in boot_cortex_m.c file that we jump to after the reset handler.

  • Hi Dylan,

    thank you very much. I modified the reset handler as proposed and got the shorter delay (-30µs). 

    Note: DL_GPIO_enablePower() must be inserted too. 

    I saw during debugging that the function _system_pre_init() is also available for MSPM0. The test was also successful. It is an alternative solution.

    Best regards

    Joerg