TMS320F28P650DK: CCS20.3.0 Writing code for both CPU's in one ASM code file.

Part Number: TMS320F28P650DK

Tool/software:

Hi Guys, just one more question. Sorry.

As you guys know the F28P650DK is a dual core MCU.

I'd like to write a very large ASM file and in that code I'd like to assign the first half of the code to CPU1 and the second part of the code to CPU2 and then flash the whole code at once to the MCU.

I've never done this before but is it possible in CCS20.3.0 to do that?

I know that when I was programming the F28P650DK CCS20.1.0 would ask me to flash the ASM program for either CPU1 or CPU2 but not both at the same time.

I hope  that make sense, LOL.

Thanks again guys and I really appreciate the support here. Thank you so much.

Hope to hear from you soon.

Peter Slight smile

  • Peter,

    The 2 CPUs independently execute program code depending on what is programmed to their assigned Flash banks, so what you are suggesting doesn't seem feasible.

    Specifically on the asm suggestion - yes you could have a common source file containing both CPU1 and CPU2 code with preprocessor directives to indicate which CPU a specific code segment is for. However this is something that would get used at build time, not run time.

    Thanks,

    Sira

  • Thank you Sira, I thought it was possible. At build time how would I assign code to CPU1 and other code to CPU2? Do I have to define .section CPU1_code and define another section .section CPU2_code. 

    Or can you let me know where I can find the info on setting this up.

    Thank you again Sira, hope to hear from you soon.

    Peter Slight smile