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.
工具与软件:
您好!!
我尝试为 TM4C123GH6PM 实施引导加载程序首先、我尝试在 bl_config.h 文件中将 Tiva 系列中给出的示例项目(demo_serial 示例项目)从 UART0更改为 UART1、如图所示、刷写了 bin 文件尝试使用 LM Flasher 通过 UART 刷写 boot_demo1、但未刷写可能是什么问题??? 我所做的所有更改都是将 UART 从0配置为1、但无法正常工作。
此致、
Anil。
// Selects the clock enable for the UART peripheral module // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UARTx_BASE // //***************************************************************************** #define UART_CLOCK_ENABLE SYSCTL_RCGCUART_R1 //***************************************************************************** // // Selects the base address of the UART peripheral module // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_CLOCK_ENABLE // //***************************************************************************** #define UARTx_BASE UART1_BASE //***************************************************************************** // // Selects the clock enable for the GPIO corresponding to UART RX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_RXPIN_BASE, UART_RXPIN_PCTL and UART_RXPIN_POS // //***************************************************************************** #define UART_RXPIN_CLOCK_ENABLE SYSCTL_RCGCGPIO_R2 //***************************************************************************** // // Selects the base address for the GPIO corresponding to UART RX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_RXPIN_CLOCK_ENABLE, UART_RXPIN_PCTL and UART_RXPIN_POS // //***************************************************************************** #define UART_RXPIN_BASE GPIO_PORTC_BASE //***************************************************************************** // // Selects the port control value for the GPIO corresponding to UART RX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_RXPIN_CLOCK_ENABLE, UART_RXPIN_BASE and UART_RXPIN_POS // //***************************************************************************** #define UART_RXPIN_PCTL 0x2 //***************************************************************************** // // Selects the pin number for the GPIO corresponding to UART RX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_RXPIN_CLOCK_ENABLE, UART_RXPIN_BASE and UART_RXPIN_PCTL // //***************************************************************************** #define UART_RXPIN_POS 4 //***************************************************************************** // // Selects the clock enable for the GPIO corresponding to UART TX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_TXPIN_BASE, UART_TXPIN_PCTL and UART_TXPIN_POS // //***************************************************************************** #define UART_TXPIN_CLOCK_ENABLE SYSCTL_RCGCGPIO_R2 //***************************************************************************** // // Selects the base address for the GPIO corresponding to UART TX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_TXPIN_CLOCK_ENABLE, UART_TXPIN_PCTL and UART_TXPIN_POS // //***************************************************************************** #define UART_TXPIN_BASE GPIO_PORTC_BASE //***************************************************************************** // // Selects the port control value for the GPIO corresponding to UART TX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_TXPIN_CLOCK_ENABLE, UART_TXPIN_BASE and UART_TXPIN_POS // //***************************************************************************** #define UART_TXPIN_PCTL 0x2 //***************************************************************************** // // Selects the pin number for the GPIO corresponding to UART TX pin // // Depends on: UART_ENABLE_UPDATE // Exclusive of: None // Requires: UART_TXPIN_CLOCK_ENABLE, UART_TXPIN_BASE and UART_TXPIN_PCTL // //***************************************************************************** #define UART_TXPIN_POS 5 //*****************************************************************************
我真的不觉得您的 bl_config.h 文件有问题。
[报价 userid="622862" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1457452/tm4c123gh6pm-configuration-issue "]我曾尝试对 Tiva 系列中给出的示例项目(demo_serial 示例项目)在 bl_config.h 文件中从 UART0更改为 UART1、如下图[/报价]为 UART1构建引导加载程序后、您是否首次使用 JTAG 接口将此引导加载程序编程到闪存? 此引导加载程序必须位于0x0。
[quote userid="622862" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1457452/tm4c123gh6pm-configuration-issue 并刷入了 bin 文件尝试使用 LM Flasher 通过 UART 刷写 boot_demo1但未刷写您是否在 UART1上有 用于定制电路板的 USB 转串口适配器? 该 LaunchPad 具有用于 UART0的内置 USB 转串行适配器、该适配器是 ICDI 调试探针的一部分。 因此、boot_serial 示例将在 LaunchPad 上运行。 对于定制电路板、您必须具有 USB 转串行适配器 才能使用 LM Flash Programmer 运行串行引导加载程序示例。
您使用的是正确的 COM 端口吗? 您 可以查看 Windows 设备管理器、确定枚举了 USB 转串行适配器的哪个 COM 端口。
为了进一步帮助您进行调试、可以使用示波器或逻辑分析仪来探测 MCU 侧的 UART1TX 和 UART1RX 引脚以及适配器的相应引脚。
谢谢你的答复查尔斯!!!
为 UART1构建引导加载程序后、您是否首次使用 JTAG 接口将此引导加载程序编程到闪存? 此引导加载程序必须位于0x0。
是的! 我已首先使用位于0x0的 JTAG 刷写了引导加载程序。
您是否在 UART1上有 用于定制电路板的 USB 转串口适配器? 我正在使用 USB 转串行适配器(MAXA)
另一件事是、我尝试过使用 UART0、它也不能正常工作、如何调试这个问题???
我正在使用 TM4C123GH6PM 控制器... 每次它都会针对两个 UART 引发如上所示的错误
另一件事是、我尝试过使用 UART0、它也不能正常工作、如何调试这个问题???
我正在使用 TM4C123GH6PM 控制器... 每次它都会针对两个 UART 引发如上所示的错误
[报价]您是否可以向 Windows 设备管理器显示您的 MOXA 使用哪个 COM 端口进行枚举?
您能否如下所示展示 LM 闪存编程器配置。 我想使用您在 LM 闪存编程器上指定的与 Windows 设备管理器相匹配的内容。 以下只是我的设置。 我的 COM 端口将与您的 COM 端口不同。
您能展示 MOXA 和 MCU 的 TX 和 RX 引脚的示波器电容还是逻辑分析器电容吗?
您可以在 LaunchPad 上运行库存 boot_serial 吗? 您能否首先使其正常工作?