arm-none-eabi-objcopy generates the same hex file every time

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

arm-none-eabi-objcopy generates the same hex file every time

1,903 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rinkakime on Mon Mar 03 09:23:16 MST 2014
Hello there,

since I upgraded to Windows 8 I have problems with LPCXpresso and arm-none-eabi-objcopy.
I tested it on Linux, too.

The problem is, that arm-none-eabi-objcopy generates an 1kB file out of a 426KB *.axf file. The content of hex-file is in every project I'd compiled the same.
You can look up the files on my Onedrive.

Thank you for your help,

Maik
0 Kudos
Reply
4 Replies

1,695 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rinkakime on Tue Mar 04 12:55:15 MST 2014
Okay, I'm sorry for that.

The problem was that on my Linux I had no problems with the "ResetISR" function.
Now I have added it to my main.c file and now it works.

But thank you for your support,

Best regards,

Maik
0 Kudos
Reply

1,695 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 04 08:47:29 MST 2014
I can't see your project (and I don't want to...) so can't tell what you have done wrong.

But the clue MUST be that when you build, it says "nothing to build". It does not lie- if it gives you that message, then there really is nothing to build.

So this implies something wrong with your project setup in that it does see any dependencies change that would cause the AXF file to be rebuilt. And if your AXF file does not change, then anything generated from it will also not change.

So, take a real long look at how you have configured your project
- did you change the build articfact?
- did you change anything else?

Suggest you create a new project with our wizard, add your additional command to generate the ihex file and then build, make changes, build again, and see the hex file being rebuilt each time.
0 Kudos
Reply

1,695 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rinkakime on Tue Mar 04 07:48:31 MST 2014
Hello,

if I just hit "Build" nothing happens:
15:38:51 **** Build of configuration Debug for project blinky2 ****
make all 
make: Nothing to be done for `all'.

15:38:58 Build Finished (took 6s.634ms)


Do avoid this I'd cleaned the Project everytime and build it again.

Here is my string. Objcopy should generate an ihex-file:
arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O ihex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex"


I'm expecting that this generates an ihex-file out of the *.axf-file.

Here is my axf-file: http://1drv.ms/1dlHoC8

Is it wrong that LPCXpresso use makefiles?

Thank you,

Maik
0 Kudos
Reply

1,695 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Mar 03 09:40:57 MST 2014
1. Is objcopy being run (i.e. is the time/date on the file changing?)
2. Check your objcopy options .

If you can't see your problem, post the command you are using, and what you expect it to be doing. Also, post your axf file.
0 Kudos
Reply