cancel
Showing results for 
Search instead for 
Did you mean: 

Example code failed in Windows XP but succeeded in Windows 7

Zhu.Yifeng
Associate
Posted on May 09, 2012 at 17:00

Compile AN3413-Current_consumption_touch_sensing included in the STM32L_Discovery_Firmware_Pack_V1.0.2.

It compiles successfully by using the evaluation copy of MDK-Lite 4.50.0.0 in Windows 7. However, the compile failed on MDK-Lite 4.50.0.0 in Windows XP. The error message is: 

Rebuild target 'STM32L-Discovery'

compiling core_cm3.c...

core_cm3.c: error: L6002U: Could not open file .\Obj\core_cm3.o: No such file or directory

Target not created

Anyone has similar experiences? Thanks.

3 REPLIES 3
frankmeyer9
Associate II
Posted on May 10, 2012 at 15:28

The error 'L6002U: Could not open file .\Obj\core_cm3.o: No such file or directory'

is a linker problem, telling you that the linker was unable to find the given object file.

If the related source file compiled without errors, you might have an OS/file access rights problem.

Do you have your project located in a Windows system folder (including ''C:\Program Files\'' and all it's architecture and locales-dependant similes) ?

Zhu.Yifeng
Associate
Posted on May 16, 2012 at 04:40

Solved the issue. The problem was that I was running Windows XP on Mac via virtual machine. For some reason, MDK failed to recognize the data directory of Mac. Coping te project directory from Mac to the Windows XP C: drive solves the problem.

frankmeyer9
Associate II
Posted on May 16, 2012 at 09:14

> The problem was that I was running Windows XP on Mac via virtual machine.

It's sometimes helpful to note such little details in the first place. The more detailed the description of the problem, the more likely someone can help ...