Loading...
 
Skip to main content

System Workbench for STM32


Start Up error

I am trying to get workbench to work with the nucleo F401 without any success.

I have installed/reinstalled several times and always had the same errors, which are:

A pop up during build-
gcc-arm-none-eabi-gcc.exe Application error
application was unable to start correctly 0xC0000142

and then the errors-

make: *** src/main.o Error -1073741502 hello_2 C/C++ Problem

make: *** StdPeriph_Driver/src/misc.o Error -1073741502 nucleo-f401re_stdperiph_lib C/C++ Problem

I'm running windows 8.

Help would be much appreciated.

1. Make sure you have installed Java, Eclipse and OpenSTM32 with correct bittness: check the properties on "My Computer" to see if you have 32-bit or 64-bit Windows and then install the correct versions of software.

2. Try to temporarly disable Antivirus software and try again


After several hours of googling and mixing search result I figured out how to solve this problem.
I will share the solution with you so you will kindly give it a try and leave a feedback.

The issue is neither from Eclipse/Systemworkbench nor its bundleded toolchain.

The issue is with any 3rd party application that is installed in the windows and that application folder(s) there exists a msys-1.0.dll file somewhere.(in my case the application is WinAVR).

given that said we have to find the cause of error.
Normally Error -1073741502 is issued from windows to indicate that it is unable to load a DLL file properly.
and in this case msys-1.0.dll should be blamed.

So in order to troubleshoot the eclipse/Systemworkbench to compile and call the gcc-arm-none-eabi-gcc.exe tools we have two options.

1- Find the app that has the faulty msys1.0.dll file and uninstall it (I will tell how to find that app)

2- Or if you do not want to unistall that app you should change the Eclipse/Systemworkbench project settings in the following place and eliminate COMPLETELTY the name of the app that has faulty msys1.0.dll from that PATH environment Value. And you have to REPEAT this procedure everytime you create a new project in Eclipse/Systemworkbench.

In ProjectProperties>C/C++ Build>Environment>PATH

Once you have edited that path value double check one by one recursively every folder name that contains msys1.0.dll and eliminate ALL those paths that are causing this problem and you think there are irrelevant.
In my case I took out two C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin; foldernames.

Once you edit the value press OK and you will see the PATH origin will change from BUILD SYSTEM to User:Config.

In order to apply the new setting in the project plz DO NOT FORGET TO PRESS APPLY.

After return to the editor just try to Clean and Build All the project from start. Everything should works fine.

😂
Happy Developing

I have a similar issue: something in the PATH that is incompatible. In my case, git was causing problems. Rather than change project settings, I start Eclipse in a .bat file with a simplified PATH variable - something like this:

Copy to clipboard
set PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32; C:\Ac6\SystemWorkbench\eclipse.exe

Thank you Jim.
That solved for me.

Thank You,

This also worked for me.

I note that I have the msys-1.0.dll on my disk, also linked to some APR programming.

Best regards,

JMF

It was very usefull. Thank You very much!

sunsina, thank you! it helps me.

just add more

For the same reason, there is an errors:
- when clear project:

Error running rm.exe

- when building:

arm-none-eabi-as -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I"E:/STM32/Projects/newproj/inc" -I"E:/STM32/Projects/newproj/CMSIS/core" -I"E:/STM32/Projects/newproj/CMSIS/device" -I"E:/STM32/Projects/newproj/HAL_Driver/Inc/Legacy" -I"E:/STM32/Projects/newproj/HAL_Driver/Inc" -I"E:/STM32/Projects/newproj/Utilities/STM32F4-Discovery" -I"E:/STM32/Projects/newproj/Utilities/Components/ampire480272" -I"E:/STM32/Projects/newproj/Utilities/Components/ampire640480" -I"E:/STM32/Projects/newproj/Utilities/Components/Common" -I"E:/STM32/Projects/newproj/Utilities/Components/cs43l22" -I"E:/STM32/Projects/newproj/Utilities/Components/exc7200" -I"E:/STM32/Projects/newproj/Utilities/Components/ft6x06" -I"E:/STM32/Projects/newproj/Utilities/Components/ili9325" -I"E:/STM32/Projects/newproj/Utilities/Components/ili9341" -I"E:/STM32/Projects/newproj/Utilities/Components/l3gd20" -I"E:/STM32/Projects/newproj/Utilities/Components/lis302dl" -I"E:/STM32/Projects/newproj/Utilities/Components/lis3dsh" -I"E:/STM32/Projects/newproj/Utilities/Components/ls016b8uy" -I"E:/STM32/Projects/newproj/Utilities/Components/lsm303dlhc" -I"E:/STM32/Projects/newproj/Utilities/Components/mfxstm32l152" -I"E:/STM32/Projects/newproj/Utilities/Components/n25q128a" -I"E:/STM32/Projects/newproj/Utilities/Components/n25q256a" -I"E:/STM32/Projects/newproj/Utilities/Components/n25q512a" -I"E:/STM32/Projects/newproj/Utilities/Components/otm8009a" -I"E:/STM32/Projects/newproj/Utilities/Components/ov2640" -I"E:/STM32/Projects/newproj/Utilities/Components/s25fl512s" -I"E:/STM32/Projects/newproj/Utilities/Components/s5k5cag" -I"E:/STM32/Projects/newproj/Utilities/Components/st7735" -I"E:/STM32/Projects/newproj/Utilities/Components/st7789h2" -I"E:/STM32/Projects/newproj/Utilities/Components/stmpe1600" -I"E:/STM32/Projects/newproj/Utilities/Components/stmpe811" -I"E:/STM32/Projects/newproj/Utilities/Components/ts3510" -I"E:/STM32/Projects/newproj/Utilities/Components/wm8994" -I"E:/STM32/Projects/newproj/Utilities" -g -o "startup/startup_stm32f407xx.o" "../startup/startup_stm32f407xx.s"
make: *** startup/startup_stm32f407xx.o Error -1073741502

after removing PATH items, you must restart System Workbench IDE

Install JDK 8. I had the same problem and that fixed it.


Hello everybody,

I have a suggestion that I hope it will work to solve the problem:

Judst go to Project....> Properties....>C/C++ Build

klick on the tap Builder Setting and then change the Builder type == Internal builder...