Compiling error of uTasker with Visual Studio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling error of uTasker with Visual Studio

628 Views
raff5184
Contributor II

Hi I'm trying to compile uTasker with VS 2017 for the Kinetis KL03.

But I get the following error:

Severity Code Description Project File Line Suppression State
Error MSB3073 The command "cd ..\GNU_Kinetis
Build_Kinetis.bat

:VCEnd" exited with code 1. uTaskerKinetis C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 133

I tried to launch Build_Kinetis.bat manually and I get the error: MSVCR100D.dll not found. 

I gave a look on the internet and the MSVCR100D.dll is a debug library, and I apparently: "You definitely should not need the debug version of the CRT if you're compiling in "release" mode."

However, at the end the simulation works fine, but I can't create the FLASH version because I get the same error. 

0 Kudos
1 Reply

482 Views
mjbcswitzerland
Specialist V

Hi

This is the bat file called as post-build step when the target "uTasker Kinetis plus GNU build" is selected. It uses the bat file to additionally cross-compile for the HW target. If you choose the "uTasker Kinetis" target you will purely build in the VS environment and not have a problem with the post-build step.

In both cases the simulator still works (just the cross-compile for HW may fail).

To correct the problem and build also for the HW target you probably need to edit the file GNU_kinetis/Build_Kinetis.bat to put in your path to your GCC compiler installation. If using KDS or MCUXpresso you can set the path to its directory (eg. SET PATH=%PATH%;C:\Freescale\KDS_v3\Toolchain\bin or wherever yours is) so that it can build with its compiler.

Note the following too since the make file in these tool chains may not operate:
"GNU Make Issue when using Post-build GCC step" http://www.utasker.com/forum/index.php?topic=1988.0

Regards

Mark

uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

0 Kudos