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-MSPM0L1306:UART communication for ADC data

Part Number: LP-MSPM0L1306
Other Parts Discussed in Thread: MSPM0L1306, SYSCONFIG

Hello,

I am using the MSPM0L1306 board with CCS Theia 1.2.0.0000_win64 and SDK 1.20.01.06. Initially, the board was working well with some examples from the system itself. However, when trying to use the example that involves ADC with UART communication (adc_to_uart_LP_MSPM0L1306_nortos_ticlang), I encountered an issue. The board enters into a loop:

while (false == gCheckADC) {
__WFE();
}

and doesn't exit, without displaying any results on the serial console or terminal.

I'm not sure if the error I'm encountering is in this part. Regarding the analog pin configuration, I'm following the recommendations from CCS Theia.

I would like to request your help in resolving this issue, as this example represents about 25% of my project. I believe the solution might be simple, but I'm new to the Texas Instruments microcontroller area.

Thank you in advance for your attention and assistance.

Follow the compilation logs:

[0]**** Clean-only build of configuration Debug for project adc_to_uart_LP_MSPM0L1306_nortos_ticlang ****
[1]"C:\\ti\\ccstheia120\\ccs\\utils\\bin\\gmake" -k -j 4 clean -O

[2]gmake: *** No rule to make target 'clean'.
[3]**** Build Finished ****

[4]**** Build of configuration Debug for project adc_to_uart_LP_MSPM0L1306_nortos_ticlang ****
[5]"C:\\ti\\ccstheia120\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

[6]Building file: "../adc_to_uart.syscfg"
[7]Invoking: SysConfig
[8]"C:/ti/ccstheia120/ccs/utils/sysconfig_1.18.0/sysconfig_cli.bat" -s "C:/ti/mspm0_sdk_1_20_01_06/.metadata/product.json" --script "C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/adc_to_uart.syscfg" -o "syscfg" --compiler ticlang
[9]Running script...
[10]Validating...
[11]info: /ti/project_config/ProjectConfig deviceSpin: Note: User must select a device after migration. User must make sure to select the same device as the CCS Launch Device setting for proper configuration.
[12]Generating Code (adc_to_uart.syscfg)...
[13]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device_linker.cmd...
[14]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device.opt...
[15]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device.cmd.genlibs...
[16]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\ti_msp_dl_config.c...
[17]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\ti_msp_dl_config.h...
[18]Writing C:\Users\verga\workspace_ccstheia\adc_to_uart_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\Event.dot...
[19]Finished building: "../adc_to_uart.syscfg"

[20]Building file: "C:/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c"
[21]Invoking: Arm Compiler
[22]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe" -c @"syscfg/device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug" -I"C:/ti/mspm0_sdk_1_20_01_06/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_1_20_01_06/source" -gdwarf-3 -MMD -MP -MF"startup_mspm0l130x_ticlang.d_raw" -MT"startup_mspm0l130x_ticlang.o" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg" @"syscfg/device.opt" -o"startup_mspm0l130x_ticlang.o" "C:/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c"
[23]Finished building: "C:/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c"

[24]Building file: "../adc_to_uart.c"
[25]Invoking: Arm Compiler
[26]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe" -c @"syscfg/device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug" -I"C:/ti/mspm0_sdk_1_20_01_06/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_1_20_01_06/source" -gdwarf-3 -MMD -MP -MF"adc_to_uart.d_raw" -MT"adc_to_uart.o" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg" @"syscfg/device.opt" -o"adc_to_uart.o" "../adc_to_uart.c"
[27]Finished building: "../adc_to_uart.c"

[28]Building file: "syscfg/ti_msp_dl_config.c"
[29]Invoking: Arm Compiler
[30]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe" -c @"syscfg/device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug" -I"C:/ti/mspm0_sdk_1_20_01_06/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_1_20_01_06/source" -gdwarf-3 -MMD -MP -MF"syscfg/ti_msp_dl_config.d_raw" -MT"syscfg/ti_msp_dl_config.o" -I"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg" @"syscfg/device.opt" -o"syscfg/ti_msp_dl_config.o" "syscfg/ti_msp_dl_config.c"
[31]Finished building: "syscfg/ti_msp_dl_config.c"

[32]Building target: "adc_to_uart_LP_MSPM0L1306_nortos_ticlang.out"
[33]Invoking: Arm Linker
[34]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe" @"syscfg/device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -gdwarf-3 -Wl,-m"adc_to_uart_LP_MSPM0L1306_nortos_ticlang.map" -Wl,-i"C:/ti/mspm0_sdk_1_20_01_06/source" -Wl,-i"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang" -Wl,-i"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg" -Wl,-i"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="adc_to_uart_LP_MSPM0L1306_nortos_ticlang_linkInfo.xml" -Wl,--rom_model -o "adc_to_uart_LP_MSPM0L1306_nortos_ticlang.out" "./adc_to_uart.o" "./syscfg/ti_msp_dl_config.o" "./startup_mspm0l130x_ticlang.o" -Wl,-l"syscfg/device_linker.cmd" -Wl,-ldevice.cmd.genlibs -Wl,-llibc.a
[35]Finished building target: "adc_to_uart_LP_MSPM0L1306_nortos_ticlang.out"

[36]**** Build Finished

Best regards,


Diego Vergaças