Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting up embedded c
Setting up embedded c [message #1718907] Sat, 02 January 2016 03:13 Go to next message
John Richfield is currently offline John RichfieldFriend
Messages: 1
Registered: January 2016
Junior Member
Hey guys, I just barely got a bioloid robot from robotis and decided to try and learn to use embedded c to program it. This was there guide on getting started h5ttp://support.robotis.c5om/en/software/embeded_c/cm530/embeded_c_start_stm.h5tm (If you want to see it remove the three fives, won't let me post outside links) . I did everything in there and I know that winarm was installed successfully because I checked as they said in cmd. After doing everything it said for me to do I found that it returned and error in the console window saying
make all 
arm-eabi-objdump -h -S -C -D CM530.elf > CM530.lss
      0 [main] sh 12420 sync_with_child: child 12436(0x1C0) died before initialization with status code 0xC0000142
     26 [main] sh 12420 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** [CM530.lss] Error 128

19:56:52 Build Finished (took 223ms)


whenever I clicked build all and this error when I say build project

make all 
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o APP/src/main.o APP/src/main.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o APP/src/stm32f10x_it.o APP/src/stm32f10x_it.c
APP/src/stm32f10x_it.c: In function 'SysTickHandler':
APP/src/stm32f10x_it.c:141: warning: implicit declaration of function '__ISR_DELAY'
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_adc.o stm32f10x_lib/src/stm32f10x_adc.c
stm32f10x_lib/src/stm32f10x_adc.c: In function 'ADC_DeInit':
stm32f10x_lib/src/stm32f10x_adc.c:135: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_adc.c: In function 'ADC_SetInjectedOffset':
stm32f10x_lib/src/stm32f10x_adc.c:1106: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_adc.c: In function 'ADC_GetInjectedConversionValue':
stm32f10x_lib/src/stm32f10x_adc.c:1129: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_bkp.o stm32f10x_lib/src/stm32f10x_bkp.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_exti.o stm32f10x_lib/src/stm32f10x_exti.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_flash.o stm32f10x_lib/src/stm32f10x_flash.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_gpio.o stm32f10x_lib/src/stm32f10x_gpio.c
stm32f10x_lib/src/stm32f10x_gpio.c: In function 'GPIO_DeInit':
stm32f10x_lib/src/stm32f10x_gpio.c:56: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_lib.o stm32f10x_lib/src/stm32f10x_lib.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_nvic.o stm32f10x_lib/src/stm32f10x_nvic.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_pwr.o stm32f10x_lib/src/stm32f10x_pwr.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_rcc.o stm32f10x_lib/src/stm32f10x_rcc.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_systick.o stm32f10x_lib/src/stm32f10x_systick.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_tim.o stm32f10x_lib/src/stm32f10x_tim.c
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_DeInit':
stm32f10x_lib/src/stm32f10x_tim.c:139: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_TimeBaseInit':
stm32f10x_lib/src/stm32f10x_tim.c:218: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:218: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_OC1Init':
stm32f10x_lib/src/stm32f10x_tim.c:277: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:277: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_OC2Init':
stm32f10x_lib/src/stm32f10x_tim.c:368: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:368: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_OC3Init':
stm32f10x_lib/src/stm32f10x_tim.c:460: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:460: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_OC4Init':
stm32f10x_lib/src/stm32f10x_tim.c:552: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:552: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c: In function 'TIM_SelectOCxM':
stm32f10x_lib/src/stm32f10x_tim.c:2335: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:2338: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:2344: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_tim.c:2347: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_tim1.o stm32f10x_lib/src/stm32f10x_tim1.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_usart.o stm32f10x_lib/src/stm32f10x_usart.c
stm32f10x_lib/src/stm32f10x_usart.c: In function 'USART_DeInit':
stm32f10x_lib/src/stm32f10x_usart.c:95: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_usart.c: In function 'USART_Init':
stm32f10x_lib/src/stm32f10x_usart.c:159: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_usart.c: In function 'USART_ITConfig':
stm32f10x_lib/src/stm32f10x_usart.c:365: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -c   -o stm32f10x_lib/src/cortexm3_macro.o stm32f10x_lib/src/cortexm3_macro.s
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_can.o stm32f10x_lib/src/stm32f10x_can.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_dma.o stm32f10x_lib/src/stm32f10x_dma.c
stm32f10x_lib/src/stm32f10x_dma.c: In function 'DMA_DeInit':
stm32f10x_lib/src/stm32f10x_dma.c:83: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_i2c.o stm32f10x_lib/src/stm32f10x_i2c.c
stm32f10x_lib/src/stm32f10x_i2c.c: In function 'I2C_DeInit':
stm32f10x_lib/src/stm32f10x_i2c.c:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_i2c.c: In function 'I2C_ReadRegister':
stm32f10x_lib/src/stm32f10x_i2c.c:648: warning: dereferencing type-punned pointer will break strict-aliasing rules
stm32f10x_lib/src/stm32f10x_i2c.c: In function 'I2C_GetFlagStatus':
stm32f10x_lib/src/stm32f10x_i2c.c:1016: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_iwdg.o stm32f10x_lib/src/stm32f10x_iwdg.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_rtc.o stm32f10x_lib/src/stm32f10x_rtc.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_spi.o stm32f10x_lib/src/stm32f10x_spi.c
stm32f10x_lib/src/stm32f10x_spi.c: In function 'SPI_I2S_DeInit':
stm32f10x_lib/src/stm32f10x_spi.c:67: warning: dereferencing type-punned pointer will break strict-aliasing rules
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_wwdg.o stm32f10x_lib/src/stm32f10x_wwdg.c
arm-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -g -Os -fno-common  -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc     -c -o stm32f10x_lib/src/stm32f10x_vector.o stm32f10x_lib/src/stm32f10x_vector.c
stm32f10x_lib/src/stm32f10x_vector.c:133: warning: initialization makes pointer from integer without a cast
arm-eabi-ar cr stm32f10x_lib/libstm32.a stm32f10x_lib/src/stm32f10x_adc.o stm32f10x_lib/src/stm32f10x_bkp.o stm32f10x_lib/src/stm32f10x_exti.o stm32f10x_lib/src/stm32f10x_flash.o stm32f10x_lib/src/stm32f10x_gpio.o stm32f10x_lib/src/stm32f10x_lib.o stm32f10x_lib/src/stm32f10x_nvic.o stm32f10x_lib/src/stm32f10x_pwr.o stm32f10x_lib/src/stm32f10x_rcc.o stm32f10x_lib/src/stm32f10x_systick.o stm32f10x_lib/src/stm32f10x_tim.o stm32f10x_lib/src/stm32f10x_tim1.o stm32f10x_lib/src/stm32f10x_usart.o stm32f10x_lib/src/cortexm3_macro.o stm32f10x_lib/src/stm32f10x_can.o stm32f10x_lib/src/stm32f10x_dma.o stm32f10x_lib/src/stm32f10x_i2c.o stm32f10x_lib/src/stm32f10x_iwdg.o stm32f10x_lib/src/stm32f10x_rtc.o stm32f10x_lib/src/stm32f10x_spi.o stm32f10x_lib/src/stm32f10x_wwdg.o stm32f10x_lib/src/stm32f10x_vector.o
arm-eabi-gcc -Wl,--gc-sections,-Map=CM530.elf.map,-cref,-u,Reset_Handler -I. -Istm32f10x_lib/inc -IHW/inc -IAPP/inc  -Lstm32f10x_lib -T stm32.ld  APP/src/main.o APP/src/stm32f10x_it.o  stm32f10x_lib/libstm32.a --output CM530.elf
arm-eabi-objcopy -O ihex CM530.elf CM530.hex
arm-eabi-objcopy -O binary CM530.elf CM530.bin
arm-eabi-objdump -h -S -C -D CM530.elf > CM530.lss
      0 [main] sh 13120 sync_with_child: child 9760(0x10C) died before initialization with status code 0xC0000142
     24 [main] sh 13120 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** [CM530.lss] Error 128


Anybody know what is wrong? How should I fix this? Thanks in advance.
Re: Setting up embedded c [message #1718969 is a reply to message #1718907] Mon, 04 January 2016 04:24 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
This doesn't seem to be an Eclipse problem. The error message apparently has something to do with a broken DLL. The Microsoft Developer's Network site at msdn.microsoft.com, says this about the error message:
Quote:

0xC0000142 STATUS_DLL_INIT_FAILED: {DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.


Link: msdn.microsoft.com/en-us/library/cc704588.aspx

The following two links may help but I'm not in a position to verify them:
http://deshack.net/windows-how-to-solve-application-error-0xc0000142-and-0xc0000005/
http://upandready.typepad.com/up_and_ready/2014/03/autocad-2015-application-error-0xc0000142-autoruns-for-windows-.html

There are others search google for status code 0xC0000142
One link suggest disabling your firewall until you figure out what's wrong.

I don't have Windows available at this time so I can't verify any of this.

Try running the failed command ( arm-eabi-objdump -h ... ) in a command window. It may yield more information Maybe even which DLL load is failing.
You also might want to reinstall the ARM stuff.

HTH

-----

Of course, there are four 5's in the URL you supplied so thanks for stating which 3 to remove. But I figured it out.
http://support.robotis.com/en/software/embeded_c/cm530/embeded_c_start_stm.htm
Don't know why you couldn't post it.

[Updated on: Mon, 04 January 2016 04:36]

Report message to a moderator

Previous Topic:linux path on windows output consol
Next Topic:How do I use relative paths with -rpath???
Goto Forum:
  


Current Time: Sat Apr 20 00:08:13 GMT 2024

Powered by FUDForum. Page generated in 0.02821 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top