It appears that imgutil may have a bug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

It appears that imgutil may have a bug

跳至解决方案
1,459 次查看
jeffrey_whitlat
Senior Contributor II

Hello, I am working with iMXRT1020 processors and booting from eMMC to run in SDRAM. In setting up the DCD for the eMMC image, It seems that imgutil may have a bug.

Reducing my foo.cfg file down to this:

[DCD Descriptor]
*(uint32_t*)0x400d8100 &= ~0x00800000;

It seems that the compiled binary is incorrect.

$ imgutil.exe --dcd_gen dcd_desc_file="foo.cfg" ofile="foo.bin"
$ hexdump foo.bin

000000 d2 00 10 41 cc 00 0c 14 40 0d 81 00 00 80 00 00

I would argue that the sequence cc 00 0c 14 should instead be cc 00 0c 0c

I have the same results with dcdgen.exe.

Where can I find the source to imgutil.exe or get a fix for this issue? Currently the only way I can work around this problem is by editing the one bad byte in my compiled dcd.bin file.

Thank you for your assistance.

0 项奖励
回复
1 解答
1,396 次查看
jeffrey_whitlat
Senior Contributor II

Ok, well I guess I will solve this problem myself by creating my own DCD compiler.  I would prefer to contribute to fixing the official version, but so be it.  Cheers.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,377 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi,

Thank you for reporting this problem. Unfortunately, we cannot provide source code of the tool but I will report this internally.

Best regards,

Felipe

0 项奖励
回复
1,348 次查看
jeffrey_whitlat
Senior Contributor II

Thank you kindly.  I look forward to hearing of any updates to the imgutil tool.

标记 (1)
0 项奖励
回复
1,303 次查看
jeffrey_whitlat
Senior Contributor II

I have determined that this issue appears to be resolved in the DCD editor / compiler found in MCUXpresso 11.3.1.  I have verified that the correct codes are generated for the expression reported.  Thank you kindly.

0 项奖励
回复
1,397 次查看
jeffrey_whitlat
Senior Contributor II

Ok, well I guess I will solve this problem myself by creating my own DCD compiler.  I would prefer to contribute to fixing the official version, but so be it.  Cheers.

0 项奖励
回复
1,405 次查看
jeffrey_whitlat
Senior Contributor II

Anyone else experiencing this issue?

0 项奖励
回复