cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 project build on eclipse oxygen using windows 10-64 bit error 0xc0000142

Posted on July 02, 2018 at 06:38

Hi,

      I am trying to run basic STM32F4 projects on my windows 10,64 bit laptop using eclipse oxygen.I have installed all the toolchain,bin path is given on appropriate pages.when I am build my code ,i am getting below mentioned error.How to resolve the error.when I have searched on internet ,I read like it may be causes of two programs which are accessing same MINGW compiler.I installed code blocks on my PC.how to resolve?

ake all

Building file: ../system/src/stm32f4-hal/stm32f4xx_hal.c

Invoking: GNU ARM Cross C Compiler

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F407xx -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I''../include'' -I''../system/include'' -I''../system/include/cmsis'' -I''../system/include/stm32f4-hal'' -std=gnu11 -Wno-bad-function-cast -Wno-conversion -Wno-sign-conversion -Wno-unused-parameter -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -MMD -MP -MF''system/src/stm32f4-hal/stm32f4xx_hal.d'' -MT''system/src/stm32f4-hal/stm32f4xx_hal.o'' -c -o ''system/src/stm32f4-hal/stm32f4xx_hal.o'' ''../system/src/stm32f4-hal/stm32f4xx_hal.c''

make: *** [system/src/stm32f4-hal/stm32f4xx_hal.o] Error -1073741502

10:06:49 Build Failed. 1 errors, 0 warnings. (took 2s.242ms)

0690X0000060C8GQAU.png

#eclipse #stm32f4-flash #eclipse-plugin #toolchain #compile
1 REPLY 1
Cyril FENARD
ST Employee
Posted on July 02, 2018 at 13:42

Hi

selvamurugan.t

,

Did you try to edit builder settings of make command with something like:

make -r --debug=bjv --trace -d.

It should give output like the following:

...

CreateProcess(...p2\pool\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556\tools\make\sh.exe,

C:/eclipse/oxygen/eclipse/...p2/pool/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/make/sh.exe

-c &39arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb .... \&39../Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c\&39&39,...)

Live child 0054E400 (Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.o) PID 4759600

Reaping winning child 0054E400 PID 4759600

echo &39Finished building: ../Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c&39

...

The purpose of this, is to check if there is issue with process of compilation launched by make.

Hoping it gives direction of investigation.

Regards.

Cyril