It appears that imgutil may have a bug

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

It appears that imgutil may have a bug

Jump to solution
1,456 Views
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 Kudos
Reply
1 Solution
1,393 Views
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.

View solution in original post

0 Kudos
Reply
5 Replies
1,374 Views
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 Kudos
Reply
1,345 Views
jeffrey_whitlat
Senior Contributor II

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

Tags (1)
0 Kudos
Reply
1,300 Views
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 Kudos
Reply
1,394 Views
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 Kudos
Reply
1,402 Views
jeffrey_whitlat
Senior Contributor II

Anyone else experiencing this issue?

0 Kudos
Reply