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.

MSP432E401Y: Programming in assembly language

Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y

Hi,

We recently purchased an MSP-EXP432E401Y development board so we can evaluate using an MSP432E401Y microcontroller in our product line. So far I've been able to use Code Composer Studio to successfully run one of the example programs on it.

Our applications are written in assembly code, so I'm hoping someone can help me get started programming the MSP432E401Y in assembly. I've looked through SPNU118Y, "ARM Assembly Language Tools v20.2.0.LTS". It has a detailed discussion of the assembly language itself, but it's not clear to me if I need another program to develop and run assembly code or if there is an assembler already included in Code Composer Studio.

In either case it would also be very helpful if someone can suggest an example to run on the MSP-EXP432E401Y development board that uses assembly language (.asm) files.

Thank you so much for any help getting started with this,

Brad McMillan

  • Hi Brad

    There is no existing assembly code example on MSP432.

    On assembly lauguage study, please look at the MSP432 Register-level examples, then import them.

    In the project properties, go to Build-> ARM Compiler -> Advanced Options -> Assembler Options" and click on "Keep the generated assembly language (.asm) file).  

    Now, when you compile you can look at the equivalent .asm file and begin to see how these programs work in assembly.

  • Hello Xiaodong Li,

    Thank you for your response.

    It looks like the MSP Register-level examples are for the MSP432P401R Launchpad, but I'm using the MSP432P401Y Launchpad and there aren't any Register-level examples for that device. Do you think those Register-level examples for the MSP432P401R will work on the MSP432P401Y?

    Also, when I installed files for the MSP432P401Y it installed simplelink_msp432e4_sdk_4_20_00_12, which does not have any Register-level examples, so I can't browse to them using Project > Import CSS Projects... in Code Composer Studio.

    Do you know of another way to import the Register-level examples?

    It looks like they would be very useful in seeing how to program the MSP432 in assembly.

    Thanks again,
    Brad McMillan

  • Hi Brad, I haven't found the Register-level examples for MSP432P401Y.  Thanks!

  • Hi,

    I still haven't received information that would help me program the MSP432E401Y in assembly language.

    I've made some progress by using in-line assembly code statements and the debug feature of Code Composer Studio but my progress is very slow.  I'm sure there must be better ways to do this and any suggestions would be greatly appreciated.

    Thanks in Advance,

    Brad McMillan

  • Hi Brad, there is no existing assembly code example on MSP432E401Y. you can find the Instruction Set of CM4F on MSP432E401Y UG and the view -> disassembly on CCS will be the reference. Thanks!

  • Hello Xiaodong Li,

    I've been looking at the disassembled code using CCS and, yes, it has been helpful.  I've also written a few in-line assembly instructions and they worked successfully, so that is helpful, too.

    But I think I remember seeing a technique for including an .asm file written in assembly at one point, but I haven't been able to find that again.  It would be most helpful to learn about that and I can just labor through the rest.

    Thanks,

    Brad