MSPM0L1304: I2C pins remapping for BSL

Part Number: MSPM0L1304

Hi Team,

Posting on behalf of our customer.

I'll share this E2E post with our customer so he can reply when needed.

I am working on mspm0l1304. I want to flash the code over i2c. the issue is MCU is soldered on custom PCB and ROM BSL defauult i2c pins are not accessable at all. I want to use i2c1 pins for this purpose.

there are 2 exacmples projects:
1. bsl_i2c_flash_interface  (I tried this one but I realise I can't remap the i2c pins using interface override / plugins)
2. secondary_bsl_i2c ( I am working on it I am adding i2c1 as peripherals but then it is generating ti_msp_dl_config.h file cause conflicts with the provided ti_msp_dl_config_h file).


Am I now looking in the right direction?
if yes, how to resolve this issue?

Regards,

Danilo

  • Hello Danilo,

    Because you just want to change to use I2C0, you don't need to do the secondary BSL. 

    You can do some modification based on bsl_i2c_flash_interface. You need to change some definition in the ti_msp_dl_config.h file 

    In this file, you can see there are many definition of I2C usage. Change them as what you want. 

    The BSL_GPIO_I2C_SDA_PIN and BSL_GPIO_I2C_SCL_PIN is the pincmindex of the I2C pin you choose, please check it from datasheet. BSL_GPIO_I2C_SDA  and BSL_GPIO_I2C_SCL is the function number you choose of the pin. For your better understand, you can read below function where use the BSL_GPIO_I2C_SDA_PIN, BSL_GPIO_I2C_SCL_PIN, BSL_GPIO_I2C_SDA, BSL_GPIO_I2C_SCL

    BR,

    Janz Bai