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:用于 ADC 数据的 UART 通信

Guru**** 2434370 points
Other Parts Discussed in Thread: MSPM0L1306, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1312650/lp-mspm0l1306-uart-communication-for-adc-data

器件型号:LP-MSPM0L1306
主题中讨论的其他器件:MSPM0L1306SysConfig

您好!

我将 MSPM0L1306电路板与 CCS Theia 1.2.0.0000_win64和 SDK 1.20.01.06配合使用。 最初、电路板可通过系统自身提供的一些示例正常运行。 但是、在尝试使用涉及 ADC 与 UART 通信的示例(adc_to_uart_lp_MSPM0L1306_nortos_ticlang)时、我遇到了一个问题。 电路板进入一个循环:

while (false == gCheckADC){
__ WFE ();


而不退出、也不会在串行控制台或终端上显示任何结果。

我不确定我遇到的误差是否在部件中。 关于模拟引脚配置、我遵循 CCS Theia 的建议。

我想请您帮助解决这个问题、因为此示例占我项目的大约25%。 我认为解决方案可能很简单、但我对德州仪器的微控制器不熟悉。

提前感谢您的关注和帮助。

查看编译日志:

[0]****项目 ADC_TO_UART_LP_MSPM0L1306_nortos_ticlang 的纯净配置调试****
[1]"C:\\ti\\ccstheia120\\ccs\\utils\\bin\\gmake"-k -j 4干净-O

[2]gmake:***没有将目标设置为"干净"的规则。
[3]****构建完成****

[4]****项目 ADC_TO_UART_LP_MSPM0L1306_nortos_ticlang 的配置调试构建****
[5]"C:\\ti\\ccstheia120\\ccs\\utils\\bin\\gmake"-k -j 4所有-O

[6]构建文件:"../adc_to_uart.syscfg"
[7]调用: 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]正在运行脚本...
[10]Mystic
[11]info:/ti/project_config/ProjectConfig deviceSpin:注:用户必须在迁移后选择设备。 用户必须确保选择与 CCS Launch Device 设置相同的器件以进行正确配置。
[12]正在生成代码(adc_to_uart.syscfg)...
[13]正在写入 C:\Users\verga\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device_linker.cmd……
[14]正在写入 C:\Users\Verga\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device.opt...
[15]正在写入 C:\Users\verga\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\device.cmd.genlibs……
[16]正在写入 C:\Users\Verg\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\ti_msp_dl_config.c.
[17]正在写入 C:\Users\Verg\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\ti_msp_dl_config.h。
[18]Writing C:\Users\Verg\workspace_ccstheia\adc_to_UART_LP_MSPM0L1306_nortos_ticlang\Debug\syscfg\Event.dot...
[19]finished building:"../adc_to_uart.syscfg"

[20]建设文件:"c:/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c
[21]Arrowing :[编辑]
[22]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe /ti/mspm0_sdk_1_20_01_06/source/third_party/CMSIS/Core/Include @/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c -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 /ti/mspm0_sdk_1_20_01_06/source -i"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug /Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg -i"C
[23]Still Building :"c:/ti/mspm0_sdk_1_20_01_06/source/ti/devices/msp/m0p/startup_system_files/ticlang/startup_mspm0l130x_ticlang.c

[24]正在构建文件:"../adc_to_uart.c"
[25]Arrowing :[编辑]
[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 /ti/mspm0_sdk_1_20_01_06/source -i"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg -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"-i"C:dw"-i":tadc"-gf"-gflo_duart_adc_duart_d" to "adc_duart_d" t_duart_d" t_duart_d" to "adc"@。
[27]finished building:"../adc_to_uart.c"

[28]构建文件:"SYSCFG/ti_msp_dl_config.c"
[29]Arrowing :[编辑]
[30]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe /ti/mspm0_sdk_1_20_01_06/source/third_party/CMSIS/Core/Include -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 /ti/mspm0_sdk_1_20_01_06/source -i"C:/Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug /Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg -i"C @
[31]finished building:"SYSCFG/ti_msp_dl_config.c"

[32]构建目标:"adc_to_uart_lp_MSPM0L1306_nortos_ticlang.out"
[33]Arrowing :一个男人的女人
[34]"C:/ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang.exe /ti/mspm0_sdk_1_20_01_06/source /Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang/Debug/syscfg @"syscfg/device.opt"-march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mdiag -O2 -gthumf -3 -wl /Users/verga/workspace_ccstheia/adc_to_uart_LP_MSPM0L1306_nortos_ticlang /ti/ccstheia120/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/lib /syscfg/ti_msp_dl_config.o
[35]已完成构建目标:"adc_to_uart_lp_MSPM0L1306_nortos_ticlang.out"

[36]****建设完成

此致、


Diego Vergaças



  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Diego:

    听起来在代码中有些奇怪。 您能否压缩您的项目并附加到这个帖子中。  我来快速看一下。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Dennis、

    是的、这些文件已附加、该项目就是 CCS Theia 的示例、

    非常感谢您的支持。

    e2e.ti.com/.../forum-TI.zip

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Diego:

    我认为.syscfg 文件有混乱的地方。

    我建议从头开始、但这次使用 CCS 而不是 Theia、看看是否遇到相同的问题。