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.

LP-MSPM0G3507: C++ issue with sample project

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

There is a problem when I try to use C++ in sample project.

Below is my step:

1.Import a sample project from SDK as below:

2. Push F5, output is normal

3. After I change file name from "uart_tx_console_multibyte_repeated_fifo_dma.c" to "uart_tx_console_multibyte_repeated_fifo_dma.cpp" and rebuild.

    Push F5, output is abnormal. Only one message is shown.

Are there some settings I missed?

  • Hi, I don't think this example supports changing the file type from c to cpp so that is probably why you are seeing unexpected behavior. I recommend creating a new project and selecting cpp as the type, then you can port over the sysconfig settings from the example project that way. You will of course need to also use c++ when writing the firmware. Hope this helps!

  • I followed your suggestion but it didn't solve the problem.

    After I change the file name from empty_cpp.cpp to empty_cpp.c, everything is fine.