Post-build error

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

Post-build error

2,032 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhill on Wed May 16 07:58:29 MST 2012
I am getting the following error.

Error: Cannot open checksum file 734N-WiFi.binmake[1]: [post-build] Error 1 (ignored)

Any idea what that is?
0 Kudos
Reply
9 Replies

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tanmay on Sun Oct 28 22:45:20 MST 2012
I am getting an error while usin lpcxpresso for LPC1769 as following

make***[FLASHMEMORYFILESYSTEM.axf]Error1

hoe do I overcome this please help me asap.
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhill on Wed May 16 09:26:16 MST 2012

Quote: Zero
In Settings -> Build Artifact



Yea, that got rid of my error. Thanks for your help!
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhill on Wed May 16 09:19:16 MST 2012

Quote: CodeRedSupport
Looks like you are a bit confused.



I'm more than a bit confused. :)

Thanks for the explanation.
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed May 16 08:55:09 MST 2012

Quote: dhill
Where do I make the change you suggested?



In Settings -> Build Artifact

just beside Settings -> Build Steps
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 16 08:52:29 MST 2012
Looks like you are a bit confused.

To debug, you should use the .axf files.

If you want to flash your program with an external utility you can convert to hex or bin.

If you want the correct checksum written into your binary, you must convert to bin and then run the checksum utility.
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhill on Wed May 16 08:45:44 MST 2012
Thanks for the suggestion.

There is a .axf and .hex file in my debug folder but no .bin file. I think I need both a hex file (to download to LPC2368 target with FlashMagic) and a bin file (to run with gdb on LPC-Link?).

Where do I make the change you suggested?
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed May 16 08:27:49 MST 2012
And which files are available in your debug / release folder :confused:

Why don't you use:

Quote:

arm-none-eabi-size ${BuildArtifactFileName};  arm-none-eabi-objcopy -O[COLOR=Red] binary [/COLOR]${BuildArtifactFileName} ${BuildArtifactFileBaseName}[COLOR=Red].bin [/COLOR]; checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin; 

with Artifact name = ${ProjName}

Obviously you've created a hex file, but[COLOR=Red] no bin file[/COLOR] :eek:
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhill on Wed May 16 08:11:36 MST 2012
I'm not seeing permission denied. The only program I have open is Red Suite 4. I get the error during the build process after the following command is logged.

make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "734N-WiFi.axf"; arm-none-eabi-objcopy -O ihex "734N-WiFi.axf" "734N-WiFi.hex"  ; checksum -p LPC2368 -d "734N-WiFi.bin";
   text       data        bss        dec        hex    filename
  67152       4008      17076      88236      158ac    734N-WiFi.axf
0 Kudos
Reply

1,981 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed May 16 08:07:01 MST 2012
Errors like:

Quote:

Permission denied
Error: Cannot open checksum file LPC11_Refri.binmake[1]: [post-build] Error 1 (ignored)

occur if you've opened your bin file with another program. So just close it there :)
0 Kudos
Reply