7 years, 2 months ago.

uVision ".\build\knipper.axf" - 83 Errors, 0 Warning(s).

Hello,

I was about to try the DAP functionality. The firmware upgrade went well on my NXP LPC1768. I ended up with 5 devices after plugging the mbed into my computer.

At the on-line compiler I created a vanilla project named: knipper

knipper

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}

Than I exported it to uVision; extracted the zip-file; opened the knipper.uvproj and compiled the project.

it ended up with: ".\build\knipper.axf" - 83 Errors, 0 Warning(s).

Although the correct MPU is selected. When checking out the linker settings this Scatter file was selected: mbed/LPC812/uARM/LPC812.sct

Any sugestions? Thx in Adv

Quote:

Build target 'mbed NXP LPC1768' linking... .\build\knipper.axf: Error: L6366E: sys.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object sys.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: vector_table.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object vector_table.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: cmsis_nvic.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object cmsis_nvic.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: core_arm7.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object core_arm7.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: vector_functions.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object vector_functions.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: vector_realmonitor.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object vector_realmonitor.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: system_LPC23xx.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object system_LPC23xx.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6366E: sys.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_GetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_SetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(i.SystemCoreClockUpdate) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(i.SystemInit) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_MKL25Z4.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: core_cm0.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: startup_MKL25Z4.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(i.SystemCoreClockUpdate) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(i.SystemInit) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC8xx.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: sys.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_GetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_SetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: startup_LPC8xx.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: core_cm0.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.SystemCoreClockUpdate) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.SystemInit) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: sys.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_GetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_SetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: startup_LPC11xx.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: core_cm0.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.SystemCoreClockUpdate) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.SystemInit) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: system_LPC11Uxx.o(i.ARM_common_switch8) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: sys.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.rev16_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.revsh_text) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_GetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(i.NVIC_SetVector) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6367E: cmsis_nvic.o(.data) attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: startup_LPC11xx.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6366E: core_cm0.o attributes are not compatible with the provided cpu and fpu attributes . .\build\knipper.axf: Error: L6242E: Cannot link object cmsis_nvic.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object system_LPC17xx.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object core_cm3.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object startup_LPC17xx.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object sys.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object cmsis_nvic.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object system_LPC17xx.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object core_cm3.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object cmsis_nvic.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object system_LPC17xx.o as its attributes are incompatible with the image attributes. .\build\knipper.axf: Error: L6242E: Cannot link object core_cm3.o as its attributes are incompatible with the image attributes. ".\build\knipper.axf" - 83 Errors, 0 Warning(s). Target not created

Question relating to:

3 Answers

7 years, 2 months ago.

Hi,

An export function in beta mode seems to be broken (I've got exactly same issue). You can disable beta mode and re-export your project again.

I hope this helps.

Accepted Answer

Thank you!

That did the trick! Project is compiling like a charm

Quote:

Rebuild target 'mbed NXP LPC1768' compiling main.cpp... linking... Program Size: Code=2164 RO-data=232 RW-data=28 ZI-data=24 After Build - User command #1: fromelf - -bin -o build\knipper_LPC1768.bin build\knipper.axf ".\build\knipper.axf" - 0 Errors, 0 Warning(s).

posted by io sys 07 Jul 2013
7 years, 2 months ago.

Hi

I have the same problem and I don't see any option to disable the beta mode. Can you please tell me how to disable it?

Cheers

We've updated the exporters, so you should be able to export successfully now.

posted by Stephen Paulger 25 Jul 2013
7 years, 2 months ago.

The exporting problem should now be fixed, so please try again.

Dan

Thanks, it's working now.

posted by Gholi Gholizadeh 26 Jul 2013