Cypress技术论坛
直播中

解欣

7年用户 231经验值
私信 关注
[问答]

Bootloadable Image 2调试错误

我有三个项目的工作空间:
1。引导加载程序
2。Bootloader和BootloadLable“IMAGE1”
三。引导加载程序和可引导加载的“IMAGE2”
我可以附加到IMAGE1的运行目标,调试器(复位后)将在第1行停止。
但是
对于图像2,我在输出窗口中得到以下错误
目标程序已停止:文件:行:- 1功能:?地址:0x000 021CDC
应用复位总是结束在1。
DeaseMalWindows显示我正在看正确的图像。
一步一步走,什么都不做
非常感谢您的理解。
吉利

以上来自于百度翻译


     以下为原文
  I have a workspace with three projects:
1. Bootloader
2. Bootloader and Bootloadble   "Image1"
3. Bootloader and Bootloadable " Image2"

I can attach to running target for Image1 and the debugger (after reset) will stop at line 1.
But
for Image 2 I get the following error in the output window
     The target program has stopped at: file:  line: -1 function: ?? address: 0x00021CDC

Applying reset always ends up at ine -1.
Disasembly windows shows I am looking at the right image.
Single step or Go, doesn't do anything

Any insight is greatly appreciated.

Giri

回帖(16)

蒋牛钱

2019-1-3 14:56:31
我能以某种方式让两个应用程序加载并使用交换逻辑,只需根据我设置的元数据加载第1或第2条吗?

以上来自于百度翻译


     以下为原文
  Can I somehow get both apps loaded and using the switching logic, just load #1 or #2 based on what I set the metadata too?
举报

解欣

2019-1-3 15:01:34
引用: 斌无非师范 发表于 2019-1-3 06:55
我能以某种方式让两个应用程序加载并使用交换逻辑,只需根据我设置的元数据加载第1或第2条吗?

以上来自于百度翻译

我认为你可以做到这一点,但我遇到了麻烦,社区不能让我走出去,是写的元数据总是失败。看来我应该能做到这一点。
只是无法获得元数据。在Bootloader中有两个静态调用,我将去静态并尝试它。还没有适应它。
其他的东西都坏了:
我要求通过应用程序控制切换到另一个图像。如果我不能写入元数据,我仍然不知道如何满足这一点。
但当我查看引导加载程序时,我决定跟着它去。
1。在加载前进行完整性检查
2。如果闪光灯坏了,它会自动切换到另一个希望的好图像。
3或它会挂在Bootloader上。
我必须把所有的东西都建在应用程序中,然后调试它。
在我的申请中,我决定不做这些努力。
我认为元数据存储图像的起始位置。APP1被定义为在引导加载程序之后的下一行中。但是APP2位置存储在元数据中(在DOCS中读取)。

以上来自于百度翻译


     以下为原文
  I think you can do that,  but I ran into trouble that the community could not get me out of which is that writes to the metadata always failed.  It seems  I should be able to do it..
 
just could not get the metadata written.There are a couple of static calls in the bootloader that I was going  to Unstatic and try it. Have not gotten around to it.
Other things broke :-(
 
 
I had the requirement to switch to the other image by application control. I still don't know how I will satisfy this if I can't write to the metadata.
 
But when I looked at what the bootloader does, I decided to go with that because
1. It does integrity check before loading
2. If the flash is bad, it automatically switches to the other hopefully good image
3 or it will hang out at the base bootloader.
I would have to build all that into the application, and debug it.
I decided not to put that effort into doing all of this in my application.
 
 
I think the metadata stores the start location of the images. App1 is defined to be in the next row after the bootloader. But App2 location is stored in metadata (read that in the docs).
举报

解欣

2019-1-3 15:18:21
请你附上这个项目好吗?

以上来自于百度翻译


     以下为原文
  Can you please attach the project
举报

徐小婷

2019-1-3 15:29:53
引用: Frank_fu 发表于 2019-1-3 07:17
请你附上这个项目好吗?

以上来自于百度翻译

在这里。
如果你还可以告诉我为什么元数据写不起作用。那太好了。
谢谢你的关心。
吉利
BoooDeleR.MyBoApp.CyWrk.CaseV01.Zip
6.2兆字节

以上来自于百度翻译


     以下为原文
  Here it is.
If you can also tell me why the metadata write doesn't work. That would be great.
Thanks for your interest.
Giri


举报

更多回帖

发帖
×
20
完善资料,
赚取积分