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.

MSP432P401R: The address of code downloading and starting address of code executing

Part Number: MSP432P401R


Hi,

I want to know what address of MSP432 MCU is the address that we download the program in,and what address of MSP432 MCU is the address that the first instruction execute?if I want to execute a instruction from any other address,how can I do?

  • Hello,

    姚宗贵 said:
    want to know what address of MSP432 MCU is the address that we download the program in

    The flash main memory on MSP432P401x MCUs can be up to 256KB and goes from 0x00000000 to 0x0003FFFF (Main Memory).

    姚宗贵 said:
    what address of MSP432 MCU is the address that the first instruction execute?

    On reset, the processor loads the PC with the value of the reset vector, which is at address 0x00000004.

    姚宗贵 said:
    if I want to execute a instruction from any other address,how can I do?

    Out of reset?? Could you please give us more information on this use case.

      Thanks,

       David

  • Hi,David

    Actually I want to make a bootloader of my own.But I cannot know the loading address at powering up,and I also cannot know the downoading address when I debugging the program.Did the MSP432 MCU uses SRAM as default? How can I utilize the SRAM?

    Thanks for reply!

  • Hello,

    Please take a look at this post - e2e.ti.com/.../1983997

    I developed a boot loader that you could use a reference.

    Hopefully this helps.

    David
  • Thanks,David!

    I noticed that you didn't use the address of SRAM,did you just run your program in Flash memory or the SRAM is used automatic by the MCU?And,how did you download your program in specific address?Use #pragma LOCATION?

  • Hello,

    姚宗贵 said:
    did you just run your program in Flash memory or the SRAM is used automatic by the MCU?

    Yes my program runs in FLASH but for the erase and program, these APIs are required to be executed from either SRAM or ROM and I'm using ROM

    姚宗贵 said:
    And,how did you download your program in specific address?Use #pragma LOCATION?

    Please take a look at the linker files. That is where I specified the memory map for each projects.

      Hopefully this helps.

         David

  • Hello,

            Thank you!You helped me a lot !

                                                                  Yao

**Attention** This is a public forum