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.

TM4C1297ZAD程序烧录问题



你好!批量生产时TM4C1297ZAD若用编程器通过JTAG接口烧录程序很不方便,可以通过串口或者USB接口来烧录吗?若可以具体怎样实现。

谢谢!

  • 完全可以,查看官方的boot文档和boot的例程。

  • 这个BOOT文档在哪里找啊,我上官网都没有找到,请帮忙说出在哪里找了。

  • F:\360data\ti\TivaWare_C_Series-2.1.3.156\boot_loader

    这里是头文件

    F:\360data\ti\TivaWare_C_Series-2.1.3.156\docs

    这里是文档

    F:\360data\ti\TivaWare_C_Series-2.1.3.156\examples\boards\dk-tm4c129x

    这是例程

  • 你这个还是要先通过JTAG先烧录BOOTLOAD之后才可以用USB烧录吗,可不可以,板贴好了,还没有烧录过程序,我直接用USB把我已经写好的固件烧录到板上去。不要再用什么JTAG烧录了。

  • 当然没有问题。

    如果是空片,第一次烧录可以利用ROM中bootload将代码烧录进去,UART0 I2C0 SPI0 USB均可;

    后期需要利用bootload代码在flash来实现代码升级,具体参考Tivaware中的bootload 参考例程

    C:\ti\TivaWare_C_Series-2.1.1.71\examples\boards\dk-tm4c123g\boot_serial

    C:\ti\TivaWare_C_Series-2.1.1.71\examples\boards\dk-tm4c123g\boot_demo1

  • 谢谢你的回答,第一次烧录利用ROM的Bootload将代码烧录进去,硬件要做什么特别的配置呢?TI有没有专门的烧录软件工具呢?

    期待回答。

  • famao chen 说:

    谢谢你的回答,第一次烧录利用ROM的Bootload将代码烧录进去,硬件要做什么特别的配置呢?TI有没有专门的烧录软件工具呢?

    期待回答。

    最小系统即可,工具可以用LMFLASHPROGRAM.

  • 楼上说的LMflash,是TI的软件。至于批量的烧录,可以网上搜搜,有第三方的软件和工具的。

  • 我可否将串口做成422进行远程升级,ICDI的仿真器只能用开发板的吗 可以自己制造或者购买吗

  • 可以的,没有问题。ICDI倒是可以自己做,但是需要你有固件才可以的,这个固件不好搞。
  • boot_serial这个需要改什么吗 在开发板上我用ROM中UART0烧录可
    通过仿真器boot_serial(地址0)和demo1(地址4000)按复位等会闪烁 按SW1也会停止闪烁 但是切换到串口烧录demo2(地址4000)就不行了 太奇怪了 都擦除ROM中UART0烧录还可以用说明串口硬件是可以的啊 我只连接了开发板 没有动任何东西
  • boot_serial这个需要改什么吗 在开发板上我用ROM中UART0可以烧录,可通过仿真器boot_serial(地址0)和demo1(地址4000)按复位等会闪烁 按SW1也会停止闪烁 但是切换到串口烧录demo2(地址4000)就不行了 太奇怪了 都擦除ROM中UART0烧录还可以用说明串口硬件是可以的啊 我只连接了开发板 没有动任何东西
  • An example to demonstrate the use of a flash-based boot loader. At startup,
    the application will configure the UART peripheral, wait for SW1 to be
    pressed and blink LED D2. When the SW1 is pressed, LED D2 is turned off,
    and then the application branches to the boot loader to await the start of
    an update. The UART will always be configured at 115,200 baud and does not
    require the use of auto-bauding.

    This application is intended for use with the boot_serial flash-based boot
    loader included in the software release. Since the sector size is 16KB, the
    link address is set to 0x4000. If you are using USB or Ethernet boot
    loader, you may change this address to a 16KB boundary higher than the last
    address occupied by the boot loader binary as long as you also rebuild the
    boot loader itself after modifying its bl_config.h file to set
    APP_START_ADDRESS to the same value.

    The boot_demo1 application can be used along with this application to
    easily demonstrate that the boot loader is actually updating the on-chip
    flash.

    Note that the TM4C129x-class device also support serial, Ethernet and USB
    boot loaders in ROM. To make use of this function, link your application
    to run at address 0x0000 in flash and enter the bootloader using either the
    ROM_UpdateSerial, ROM_UpdateEMAC or ROM_UpdateUSB functions (defined in
    rom.h). This mechanism is used in the utils/swupdate.c module when built
    specifically targeting a suitable TM4C129x-class device.

    看这个例程的说明,你等到SW1按下后,等到LED2停止闪烁后更新试试。