烧录问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

烧录问题

Jump to solution
4,396 Views
harry_liang
Contributor II

Hi, @kerry zhou

我想请教下,现在我有一个bootloader的bin文件和一个application的bin文件,你知道除了直接通过MCUXpresso软件烧录外,还有什么工具或者方法对这两个文件进行烧录进去,或者整合成第三个文件再烧录进去芯片吗?非常感谢!@kerry zhou.

0 Kudos
1 Solution
4,329 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

  非常好,我差不多知道你之前为什么不工作了。

   你外挂的是TTL-USB啊?我还以为是什么debug工具呢?

   话说,RT1020-EVK 板子就有串口,你为啥还要外挂串口?

   你把你插的给扒了,然后把J9的USB也给拔掉。

   就留USB接再J23, 你看看你电脑的设备管理器

image.png

这个串口号就是你板子的串口,然后你选择对应的串口, 同样在serial download模式,按下reset按键SW5.然后再连接:

image.png

你看我这边串口方式是不是也连成功了,你再试试。

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

View solution in original post

14 Replies
4,379 Views
harry_liang
Contributor II

Hi, kerryzhou

你好,现在我试着用MCUBootUtility下载,但是即使我MCU上正确设置了Serial download 模式,还是连接不上,你可以帮我看看吗?

harry_liang_1-1603188464826.png

 

0 Kudos
4,374 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

   从你的提示看下来,说你引脚boot模式不对,你测试下你的引脚电平,到底是不是BOOT_MOD[1:0]=01?

  你不用reset,你修改boot模式之后,重新上电试试,还有USB不要接了。就接TTL-USB 串口。

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos
4,366 Views
harry_liang
Contributor II

harry_liang_0-1603277386632.pngharry_liang_1-1603277468908.png

我是这样操作的,可是结果还是一样的,还是出现上次的情况

0 Kudos
4,354 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

   你这是官方的板子啊,MIMXRT1020-EVK吗?

   你把你外面的debugger给去了,直接用板载的USB 供电,然后你用USB HID试试。

   还有,你把你MCUBootUtility的Boot device configuration发出来看看,你配制的对不对?

image.png

 

然后你再试试。

按道理,官方的板子,只要你没有乱修改fuse,还有硬件方面没有改把UART都给断开与RT的连接,不会连不上的。

如果是你自己的板子,我倒是要考虑是不是你硬件设计的不稳定导致的。

你再找个USB的线加上去,用USB HID试试,看看能不能成,按道理,进入serial download模式,你就能识别出USB HID的PID, VID了。

任何测试,请更新给我。

 

Best Regards,

Kerry

0 Kudos
4,349 Views
harry_liang
Contributor II

Hi,kerry

是的,我的是官方的板子,试了还是不行

harry_liang_0-1603333523466.pngharry_liang_1-1603333552602.png

harry_liang_2-1603333586482.png

 

0 Kudos
4,337 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

  好的,如果你没乱操作过,我就放心了。你跟着我步骤走一遍,这个是最简单的操作了。

  MCUBootutility工具前几天,作者又更新了一版,你也可以用最新版本,不过你这个版本也没有问题:

https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.4.0.zip
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

  你先断开所有连接:

1. SW8 1-OFF, 2-OFF, 3-OFF, 4-ON

   我看你的照片是对的

2. 配置像我这样

image.png

 

3. 连接USB到J23,就是板载仿真器那边

4. 插入USB线到J9, 这个地方是USB HID, 按道理插入就可以识别USB了

image.png

 

5. 如果没有发现USB HID

你可以按下SW5,等个5-10s,看看是不是能识别了?

6 点击connect, 会发现连接成功

image.png

这个软件还有cmd的界面,你可以看到所有命令运行情况。

你再试下,看看是否能成功。

如果还有问题,还请告诉我。

Best Regards,

Kerry

4,332 Views
harry_liang
Contributor II

谢谢!已经连接上了

harry_liang_0-1603337075417.png

 

那我想用串口来连,按照以下连线可以吗?

harry_liang_1-1603337229505.png

 

0 Kudos
4,330 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

  非常好,我差不多知道你之前为什么不工作了。

   你外挂的是TTL-USB啊?我还以为是什么debug工具呢?

   话说,RT1020-EVK 板子就有串口,你为啥还要外挂串口?

   你把你插的给扒了,然后把J9的USB也给拔掉。

   就留USB接再J23, 你看看你电脑的设备管理器

image.png

这个串口号就是你板子的串口,然后你选择对应的串口, 同样在serial download模式,按下reset按键SW5.然后再连接:

image.png

你看我这边串口方式是不是也连成功了,你再试试。

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

4,316 Views
harry_liang
Contributor II

Hi, Kerry

串口的只连接J23试了,也可以了,谢谢哈!

0 Kudos
4,310 Views
kerryzhou
NXP TechSupport
NXP TechSupport

非常好,刚开始以为你是有一定经验的,所以都忽略了你的操作步骤有问题了。

后续有任何问题,欢迎新建问题贴交流。

Best Regards,

Kerry

0 Kudos
4,305 Views
harry_liang
Contributor II

嗯嗯,好的,谢谢!

0 Kudos
4,346 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang

  板子硬件,其他地方动过没有?

   看你现在这个情况,进入serialdownload模式之后,PID, VID都没认出来,说明你芯片压根就进不去serial download模式了,你之前修改过fuse为boot from fuse模式没有?

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos
4,342 Views
harry_liang
Contributor II

Hi, kerry

因为我暂时不知道怎么改那个fuse 模式,就没有去修改过它或者其他地方。我不知道会不会是下载的MCUBootUtility软件出的问题呢,我是按照你发的链接去下载的。你那里有我这个板子吗?有的话,可以把你正确操作的步骤用文字或者视频等方法演示给我参考下吗?谢谢!

0 Kudos
4,383 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi harry_liang,

  楼主你好!

其实对于RT,烧录有很多种办法,你说的是IDE结合debugger去烧录。

这种情况下,通常是结合烧录算法以及你的app还有debugger去下载。

当然如果你自定义的flash loader,也放在flash的不同区域,通常是先下载flashloader,然后再去下载一个app。

如果你不想用这种分批下载,想一次性把你自定义已经在flash里面的flashloader还有app下载进去。

你还可以把两个文件合并成一个app,然后使用MFGTool,或者MCUBootUtility下载。

我认为,就算你是两个,你也可以用哪个MFGtool 去下载。其实就是在下载的时候,生成bd的情况下,要写下脚本,比如program_xxx.bd,然后把对应的文件吓到对应的区域即可了。

希望能帮到你,如果还有问题,欢迎继续交流!

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos