adamgreen / gcc4mbed Goto Github PK
View Code? Open in Web Editor NEWProject to allow GCC compilation of code using mbed SDK libraries.
Project to allow GCC compilation of code using mbed SDK libraries.
Useing latest smoothieware edge, on a newly installed ubuntu 12.10 machine.
This machine has no previously installed arm-none-eabi-g++ executable.
$ cd arthurwolf-Smoothie-2f7d3db/gcc4mbed
$ ./BuildShell
$ ./linux_install
fails with make[2]: arm-none-eabi-g++: Command not found
Solution was to install 32bit support
$sudo apt-get install ia32-libs
I'd like to preface this by saying Arthur Wolf sent me here to open this issue. I've been trying to get the Smoothie2 source to run on the bambino 210e for about the past 2-3 weeks with no luck. The first sign of an issue is when making gcc4mbed, the compilation of the sample programs fail with the error
No rule to make target "../../external/mbed/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex"
.
However, I can still use BuildShell after the failed compilation.
I'm not sure how much this has to do with gcc4mbed but when following your instructions in Smoothie2Notes on how to flash over USB bootloader, the only available memory is SPIFI, so there is no bank A or B available to flash. After flashing the code to SPIFI through lpcscrypt, there is no communication between my computer and the board. This made me think that something in either gcc4mbed or Smoothie2 might not be right for executing from SPIFI. I do know, however, that the board is functioning and able to run code properly from SPIFI, because I have loaded sample programs from dfusec onto the board, and they have run. I also know that my usb ports are not malfunctioning because I've hooked up my old Azteeg x5 mini and it communicates fine.
The only reason I can think of that this is happening is that the gcc4mbed support for the lpc4330(bambino processor) is possibly only good for the lpc4337(smoothie2 board).
Many thanks in advance for any help.
P.S. I forgot to mention I'm running all of this on my mac air running OSX 10.11. I have also tried the ISP loading technique from your notes, but it failed to load code onto the bambino.
Hi Adam,
I have come across an unusual situation, which I believe relates to your gcc4mbed work, specifically I am getting weird crashes on Smoothie V1 when I try to “play” a g-code file and I have traced it down to no heap, but it looks very strange.
Repeatable situation:
(1) Boot Smoothie.
(2) Go ‘mem'
Smoothie
ok
mem
Unused Heap: 13420 bytes
Used Heap Size: 12524
Allocated: 268450228, Free: 0
Total Free RAM: 13420 bytes
Free AHB0: 9008, AHB1: 16384
Block size: 76 bytes, Tickinfo size: 168 bytes
ok
(2) Go ‘mem v'
mem v
Unused Heap: 13420 bytes
Used Heap Size: 12524
Chunk: 1 Address: 0x10000910 Size: 32
Chunk: 2 Address: 0x10000938 Size: 512
Chunk: 3 Address: 0x10000B40 Size: 180
Chunk: 4 Address: 0x10000BF8 Size: 12
Chunk: 5 Address: 0x10000C10 Size: 4
Chunk: 6 Address: 0x10000C18 Size: 40
Chunk: 7 Address: 0x10000C48 Size: 20
Chunk: 8 Address: 0x10000C68 Size: 16
Chunk: 9 Address: 0x10000C80 Size: 88
Chunk: 10 Address: 0x10000CE0 Size: 16
Chunk: 11 Address: 0x10000CF8 Size: 28
Chunk: 12 Address: 0x10000D18 Size: 88
Chunk: 13 Address: 0x10000D78 Size: 428
Chunk: 14 Address: 0x10000F30 Size: 16
Chunk: 15 Address: 0x10000F48 Size: 16
Chunk: 16 Address: 0x10000F60 Size: 4
Chunk: 17 Address: 0x10000F68 Size: 28
Chunk: 18 Address: 0x10000F90 Size: 428
Chunk: 19 Address: 0x10001140 Size: 8
Chunk: 20 Address: 0x10001150 Size: 168
Chunk: 21 Address: 0x10001200 Size: 168
Chunk: 22 Address: 0x100012B0 Size: 4
Chunk: 23 Address: 0x100012C0 Size: 20
Chunk: 24 Address: 0x100012D8 Size: 4
Chunk: 25 Address: 0x100012E8 Size: 24
Chunk: 26 Address: 0x10001308 Size: 28
Chunk: 27 Address: 0x10001328 Size: 24
Chunk: 28 Address: 0x10001348 Size: 268447824
Allocated: 268450228, Free: 0
Total Free RAM: 13420 bytes
Free AHB0: 9008, AHB1: 16384
Start: 15184b MemoryPool at 0x2007c4b0
.Chunk at 0x2007c4b0 ( +0): used, 268 bytes
.Chunk at 0x2007c5bc (+268): used, 140 bytes
.Chunk at 0x2007c648 (+408): used, 284 bytes
.Chunk at 0x2007c764 (+692): used, 88 bytes
.Chunk at 0x2007c7bc (+780): used, 12 bytes
.Chunk at 0x2007c7c8 (+792): used, 20 bytes
.Chunk at 0x2007c7dc (+812): used, 72 bytes
.Chunk at 0x2007c824 (+884): used, 432 bytes
.Chunk at 0x2007c9d4 (+1316): used, 1140 bytes
.Chunk at 0x2007ce48 (+2456): used, 144 bytes
.Chunk at 0x2007ced8 (+2600): used, 516 bytes
.Chunk at 0x2007d0dc (+3116): used, 2436 bytes
.Chunk at 0x2007da60 (+5552): used, 36 bytes
.Chunk at 0x2007da84 (+5588): used, 588 bytes
.Chunk at 0x2007dcd0 (+6176): free, 9008 bytes
End: total 15184b, free: 9008b
Start: 16384b MemoryPool at 0x20080000
.Chunk at 0x20080000 ( +0): free, 16384 bytes
End: total 16384b, free: 16384b
Block size: 76 bytes, Tickinfo size: 168 bytes
ok
This looks to me that there may be a bug in the calculation of the very last chunk (268447824) ??
Thoughts
Cheers
Douglas
This question is not about fixing my code, but rather explain why it works to compile (and runs) using mbed online but not locally, and if there are any parameters I can use to make it compile the same way it's done using mbed online.
Using gcc4mbed it fails with:
MbedJSONValue.h:356:9: error: expected unqualified-id before '--' token
int getc() {
^
MbedJSONValue.h:356:9: error: expected ')' before '--' token
MbedJSONValue.cpp:244:1: error: expected '}' at end of input
}
^
In file included from MbedJSONValue.cpp:1:0:
MbedJSONValue.h:354:51: error: expected unqualified-id at end of input
input(const char * first, const char * last) {};
^
make[2]: *** [NRF51822/MbedJSONValue.o] Error 1
make[1]: *** [MbedJSONValue] Error 2
The code segment looks like this:
346: class input {
347: protected:
348: const char * cur_;
349: const char * end_;
350: int last_ch_;
351: bool ungot_;
352: int line_;
353: public:
354: input(const char * first, const char * last) : cur_(first), end_(last), last_ch_(-1), ungot_(false), line_(1) {};
355:
356: int getc() {
357: if (ungot_) {
358: ungot_ = false;
359: return last_ch_;
360: }
361: if (cur_ == end_) {
362: last_ch_ = -1;
363: return -1;
364: }
365: if (last_ch_ == '\n') {
366: line_++;
367: }
368: last_ch_ = *cur_++ & 0xff;
369: return last_ch_;
370: }
Thanks
when I make the 'mbedUpdate',there occur an error;
"main.cpp:2377:73: error: ‘struct dirent’ has no member named ‘d_namWhat '"
What should I do to solve this problem?
When i tried the step of Eliminate Indexer Errors in this tutorial: https://developer.mbed.org/cookbook/eclipse-for-building-and-debugging
The indexer errors wont go away, when I do Index > Search for Unresolved Includes it says Unresolved inclusion: mbed.h
How can I fix this?
The title says it all :)
When installing the mbed headers and libs for the first time, people see the following error in the make output:
rd /s /q FATFileSystem The system cannot find the file specified. cs-make[1]: [install_fat] Error 2 (ignored)
Modify the makefile to silence in addition to ignoring errors for this command on all platforms.
Hi there,
I just installed gcc4mbed from git, and I get the following errors trying to build the samples. I also got a lot of errors/warnings about "undefined [0] section", not sure whether that is expected or not.
./main.o: In function __static_initialization_and_destruction_0': /home/bob/git/gcc4mbed/samples/HelloWorld/main.cpp:20: undefined reference to
mbed::DigitalOut::DigitalOut(PinName, char const_)'
./main.o: In function ~DigitalOut': /home/bob/git/gcc4mbed/samples/HelloWorld/../../external/mbed/DigitalOut.h:32: undefined reference to
mbed::Base::~Base()'
/home/bob/git/gcc4mbed/samples/HelloWorld/../../external/mbed/DigitalOut.h:32: undefined reference to vtable for mbed::DigitalOut' collect2: ld returned 1 exit status make[1]: *_\* [HelloWorld.elf] Error 1 make[1]: Leaving directory
/home/bob/git/gcc4mbed/samples/HelloWorld'
make: *** [HelloWorld] Error 2
Linux_install and win_install.cmd both failed today for me within minutes of each other.
This is my first attempt to use them, so perhaps I am overlooking something basic. Same error both times:
cs-make[1]: Entering directory C:/reprap/Smoothie/GIT/Smoothie/gcc4mbed/externa l' rd /s /q mbed >nul 2>nul & exit 0 win32\svn checkout --revision 28 http://mbed.org/projects/libraries/svn/mbed/tr unk mbed cs-make[1]: Leaving directory
C:/reprap/Smoothie/GIT/Smoothie/gcc4mbed/external
'
svn: The OPTIONS response did not include the requested activity-collection-set;
this often means that the URL is not WebDAV-enabled
cs-make[1]: *** [install_mbed] Error 1
cs-make: *** [install_mbed] Error 2
Tue 10/02/2012 10:26:47.17 Failure forced early exit
Press any key to continue . . .
Reported by Charles Garcia-Tobin at http://mbed.org/forum/mbed/topic/2701/?page=2#comment-13988
Hi all
First let me say thanks for this work. It's amazing to be able to compile off-line. I've been playing around with it and had no problem getting it up and running. However I have a problem with Serial, and I was wondering how much the mbed library is functional when used like this. I confess I know very little about this project as I only looked started playing with it last night. Anyways the issue I had is that at the beginning of my sample program I had written:
...
Serial pc(USBTX, USBRX); // tx, rx
int main()
{
...
pc.baud(115200);
...
When built with the on-line compiler this works and you get all your debug printfs coming out at 115200, however when you use sourcery the UART0 remains stubbornly at 9600. I tried dumping the UART0 registers to a file (great thing that local file system works -interestingly opening for append works equally bad on-line off-line!) and you can see differences in the values between on-line and off-line compiled versions. Any ideas? how can I dig further? Maybe I am doing it all wrong anyways?
Dear Adam,
I am trying to use the gcc4mbed compiler with ROS Indigo and Ubuntu 14.04 and I am having some issues. What do you recommend me to do?
Thanks in advance.
I've been trying to use rosserial with gcc4mbed but have been getting the following undefined reference
errors when compiling.
Linking LPC1768/rosserial-mbed.elf
LPC1768/main.o: In function `ros::NodeHandle_<MbedHardware, 25, 25, 512, 512>::setNow(ros::Time&)':
/home/naoki/ros/ubuntu/lib/ros_lib/ros/node_handle.h:329: undefined reference to `normalizeSecNSec'
collect2: error: ld returned 1 exit status
make: *** [LPC1768/rosserial-mbed.elf] Error 1
normalizeSecNSec
is defined in ros/time.h
and implemented in time.cpp
, found in https://developer.mbed.org/users/garyservin/code/ros_lib_kinetic/.
The problem doesn't reproduce when I use the online compiler so I assumed it was something related to gcc4mbed. I spent some time looking into my Makefile, gcc4mbed.mk
, and some other stuff but I had no idea where to start so I was wondering if you had some insight on this issue?
hg clone https://developer.mbed.org/users/garyservin/code/ros_lib_kinetic/
hg clone https://developer.mbed.org/users/sam_grove/code/BufferedSerial/
hg clone https://mbed.org/users/sam_grove/code/Buffer/
mv Buffer*/*.{h,cpp} ros_lib_kinetic
USER_LIBS
to /path/to/ros_lib_kinetic
Makefile
and main.cpp
and run make
Makefile
PROJECT := rosserial-mbed
DEVICES := LPC1768
include $(GCC4MBED_DIR)/build/gcc4mbed.mk
main.cpp
#include <mbed.h>
#include <ros.h>
int main() {
ros::NodeHandle nh;
return 0;
}
Hi Adam,
Calling external/win32/make.exe clean in win_install.cmd (line 109) gives me an access denied error resulting in an early exit. The file is marked non-executable.
quick fix: insert a "pause" before line 109, mark file executable and continue building:
schmiedl@golem /cygdrive/c/users/schmiedl/coding/gcc4mbed/external/win32 $ ls -l *.exe -rw-r--r-- 1 schmiedl None 112128 Jan 13 18:16 applydiff.exe -rwxr-xr-x 1 schmiedl None 75264 Jan 13 18:16 bsdtar.exe -rwxr-xr-x 1 schmiedl None 453632 Jan 13 18:16 curl.exe -rw-r--r-- 1 schmiedl None 175104 Jan 13 18:16 make.exe -rwxr-xr-x 1 schmiedl None 41984 Jan 13 18:16 md5sum.exe -rw-r--r-- 1 schmiedl None 148992 Jan 13 18:16 svn.exe schmiedl@golem /cygdrive/c/users/schmiedl/coding/gcc4mbed/external/win32 $ chmod u+x *.exe schmiedl@golem /cygdrive/c/users/schmiedl/coding/gcc4mbed/external/win32 $ ls -l *.exe -rwxr--r-- 1 schmiedl None 112128 Jan 13 18:16 applydiff.exe -rwxr-xr-x 1 schmiedl None 75264 Jan 13 18:16 bsdtar.exe -rwxr-xr-x 1 schmiedl None 453632 Jan 13 18:16 curl.exe -rwxr--r-- 1 schmiedl None 175104 Jan 13 18:16 make.exe -rwxr-xr-x 1 schmiedl None 41984 Jan 13 18:16 md5sum.exe -rwxr--r-- 1 schmiedl None 148992 Jan 13 18:16 svn.exe
I'm sure you can find a cleaner solution for this.
Best regards
Christian
PS:
system info:
Windows 7 64bit
script launched from within cmd.exe
gcc4mbed master-branch commit 2dc2afe "upgrade to mbed SDK version 54."
Please feel free to use this GitHub issue for general discussion about the GCC4MBED project. If you just want to ask me or the community a general question, then this issue is the place to do it.
GitHub gives you the option of subscribing to get notifications when people post new content to this issue. You should find this subscribe option in the pane on the right-hand side of the issue.
I was working with the "HelloWorld" sample which is identical code to the "mbed_blinky" example on the online compiler, however the only difference is that when I compile the "mbed_blinky" online, the code deploys properly with no issues and when I compile the "HelloWorld" and try to deploy it, the code fails and in the fail.txt I get a "RESERVED BITS" error.
Does the mbed-os version fall behind the official mbed-os? Can we just update mbed-os by replacing it?
Since updating OS X to 10.9 I can no longer compile any gcc4mbed projects.
Some research leads me to believe that the following call to mkdir
mkdir -p LPC176x/./ > /dev/null 2>&1 ; exit 0
fails without creating a directory LPC176x, thanks to the dot at the end.
Creating LPC176x before running make allows the compilation to succeed, but this should only be a temporary workaround. Sadly, I'm not able to fix the issue in the Makefile.
Hi,
I'm using gcc4mbed with my u-blox C027 device.
When I compile in "Release" mode everything works fine, but I have issues compiling in "Debugging" mode.
When linking I get the following error:
c:/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol Reset_Handler; defaulting to 00000000
I compile using a custom device configuration for the u-blox C027, which is based on the LPC1768-device.mk
config:
# Copyright 2015 Adam Green (http://mbed.org/users/AdamGreen/)
# Copyright 2015 Daniel Bub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Vendor/device for which the library should be built.
MBED_DEVICE := UBLOX_C027
MBED_TARGET := NXP_LPC17XX
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_LPC1768 TARGET_M3 TARGET_NXP TARGET_LPC176X TARGET_UBLOX_C027 TARGET_CORTEX_M
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M3 -DARM_MATH_CM3
C_FLAGS := -mcpu=cortex-m3 -mthumb -mthumb-interwork
ASM_FLAGS := -mcpu=cortex-m3 -mthumb
LD_FLAGS := -mcpu=cortex-m3 -mthumb
# Extra platform specific object files to link into file binary.
DEVICE_OBJECTS :=
# Version of MRI library to use for this device.
DEVICE_MRI_LIB := $(GCC4MBED_DIR)/mri/libmri_mbed1768.a
# Linker script to be used. Indicates what code should be placed where in memory.
LSCRIPT=$(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld
include $(GCC4MBED_DIR)/build/device-common.mk
Is this a know issue and can it stop debug builds from running on the microcontroller?
Right now I have issues getting the debugger to work using this toolchain.
Kind regards,
Daniel
Hi Adam,
Firstly thanks for a great project. Very helpful. I just wanted to know why you were using the q1 version of gcc-arm-embedded instead of the current q3 version? Is there a problem with it?
I'm installing on Windows 8.1 (NTFS file system). I downloaded the compressed installation file and extracted it to C:\gcc4mbed. Every time I run the win_install.cmd script it downloads the files and then fails when installing. Here are the logs:
Mon 07/06/2015 12:45:18.24 Starting "C:\gcc4mbed\win_install.cmd"
Mon 07/06/2015 12:45:18.24 Executing external\win32\curl -kL0 https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-win32.zip
Mon 07/06/2015 12:46:23.46 Executing external\win32\md5sum --check C:\gcc4mbed\gcc-arm-none-eabi.md5
gcc-arm-none-eabi-4_9-2015q1-20150306-win32.zip: OK
Mon 07/06/2015 12:46:23.91 Executing rd /s /q C:\gcc4mbed\gcc-arm-none-eabi
Mon 07/06/2015 12:46:23.92 Executing md C:\gcc4mbed\gcc-arm-none-eabi
Mon 07/06/2015 12:46:23.93 Executing cd C:\gcc4mbed\gcc-arm-none-eabi
Mon 07/06/2015 12:46:23.93 Executing ..\external\win32\bsdtar xf C:\gcc4mbed\gcc-arm-none-eabi-4_9-2015q1-20150306-win32.zip
Mon 07/06/2015 12:46:55.80 Executing cd ..
Mon 07/06/2015 12:46:55.84 Executing C:\gcc4mbed\external\win32\make.exe clean
sh: C:\Program: No such file or directory
make: *** [samples.clean] Error 127
Mon 07/06/2015 12:46:55.92 Failure forced early exit
Does anyone have any idea what's going on? Thanks!
The original description is
The string you use for Value: will depend on what commands are required to copy binaries to the mbed device in your environment. Here are some examples that I use on various operating systems that I test with (please note that the GCC4MBED build system will automatically replace the PROJECT string with the name of your project, FileTest in this case):
OS X: cp PROJECT.bin /Volumes/MBED/ ; sync
Linux: cp PROJECT.bin /media/MBED/ ; sync
Windows: _copy PROJECT.bin e:_
I got this
Deploying to target.
The system cannot find the file specified.
make: *** [LPC1768-deploy] Error 1
I change the string to **copy LPC1768\FileTest.bin e:**
Then got the correct response as
Deploying to target.
1 file(s) copied.
I only tested it on Windows platform only ,but had tested it many times.Adam,Please update it.
Hi Adam,
Great job. I am trying to build smoothie and I have to build first gcc4mbed.
I'm on windows vista and I receive the following error :
debug.c:18:19: fatal error: error.h: No such file or directory
it seems that I am missing error.h file ...
Kind Regards,
Daniel
It seems that printf() (or scanf) will not accept %lld or anything with "ll".
Can something be done about this ?
Thanks!
Good day,
Firstly, thank you so much for gcc4mbed! I am using it with my Nucleo F411RE on OS X with eClipse. I prefer offline compilation, since I do not always have internet access.
I am trying to get the DS1820_HelloWorld program to run (https://developer.mbed.org/users/Sissors/code/DS1820_HelloWorld/). I can get it to compile, and I modified main.cpp as follows:
Serial pc(USBTX, USBRX);
int main() {
PUTS("In main\r\n");
DS1820 probe(DATA_PIN);
PUTS("Starting while loop...\r\n");
while(1) {
probe.convertTemperature(true, DS1820::all_devices);
PRINTF("It is %3.1foC\r\n", probe.temperature());
wait(1);
}
}
The PRINTF in the while simply displays "It is oC" over and over.
Any ideas?
Thank you
My target is the NRF51-Dongle (I know it isn't supported, but I added support for it, it's pretty close to the NRF51822).
I am able to compile just fine using gcc4mbed in Eclipse with a simple project, like HelloWorld. My project is a Bluetooth LE project, so I need to include the BLE_API and NRF51822 libraries that MBED makes. The issue is that whenever I put those directories into my build directory (without even calling) and attempt to compile, the build fails with a slew of errors. I've attached the full output of the errors below.
As a test, I exported the BLE_HeartRate test program, which includes those two libraries, for the NRF51-Dongle target to GCC. I made a makefile project with the MBED generated makefile in Eclipse. I set the path for arm-none-eabi and it compiled successfully, libraries in all.
It's nice that MBED can export straight to GCC and have everything work out of the box. But I really don't want to have to copy everything to the online IDE and re-export every time I want to add a file, just so it can generate a proper makefile. It also doesn't seem to support incremental builds (it builds everything every time, unlike gcc4mbed), which is a bit of a pain. Are those the main advantages of using gcc4mbed over exporting to gcc from the MBED online compiler?
Do you know how I can include the BLE_API and NRF51822 libraries and have them build properly with gcc4mbed?
Description Resource Path Location Type
'NRF_ERROR_NOT_FOUND' undeclared (first use in this function) ble_advdata_parser.c /ble/nRF51822/source/nordic-sdk/components/ble/common line 55 C/C++ Problem
'NRF_SUCCESS' undeclared (first use in this function) ble_advdata_parser.c /ble/nRF51822/source/nordic-sdk/components/ble/common line 51 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token BLE.h /ble/BLE_API/ble line 31 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token BLE.h /test_proj/BLE_API/ble line 31 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token BLEInstanceBase.h /ble/BLE_API/ble line 31 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token BLEInstanceBase.h /test_proj/BLE_API/ble line 31 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token CallChain.h /HelloWorld/mbed/libraries/mbed/api line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token CallChain.h /ble/mbed/libraries/mbed/api line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token FunctionPointer.h /HelloWorld/mbed/libraries/mbed/api line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token FunctionPointer.h /ble/mbed/libraries/mbed/api line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token Gap.h /ble/BLE_API/ble line 34 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token Gap.h /test_proj/BLE_API/ble line 34 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapAdvertisingData.h /ble/BLE_API/ble line 76 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapAdvertisingData.h /test_proj/BLE_API/ble line 76 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapAdvertisingParams.h /ble/BLE_API/ble line 35 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapAdvertisingParams.h /test_proj/BLE_API/ble line 35 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapEvents.h /ble/BLE_API/ble line 30 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapEvents.h /test_proj/BLE_API/ble line 30 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapScanningParams.h /ble/BLE_API/ble line 20 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GapScanningParams.h /test_proj/BLE_API/ble line 20 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattAttribute.h /ble/BLE_API/ble line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattAttribute.h /test_proj/BLE_API/ble line 22 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattCharacteristic.h /ble/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattCharacteristic.h /test_proj/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattClient.h /ble/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattClient.h /test_proj/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattServer.h /ble/BLE_API/ble line 27 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattServer.h /test_proj/BLE_API/ble line 27 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattServerEvents.h /ble/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattServerEvents.h /test_proj/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattService.h /ble/BLE_API/ble line 23 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token GattService.h /test_proj/BLE_API/ble line 23 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token SecurityManager.h /ble/BLE_API/ble line 24 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token SecurityManager.h /test_proj/BLE_API/ble line 24 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token ServiceDiscovery.h /ble/BLE_API/ble line 27 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token ServiceDiscovery.h /test_proj/BLE_API/ble line 27 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token UUID.h /ble/BLE_API/ble line 25 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token UUID.h /test_proj/BLE_API/ble line 25 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token CallChainOfFunctionPointersWithContext.h /ble/BLE_API/ble line 58 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token CallChainOfFunctionPointersWithContext.h /test_proj/BLE_API/ble line 58 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token FunctionPointerWithContext.h /ble/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token FunctionPointerWithContext.h /test_proj/BLE_API/ble line 26 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 457 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 466 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 475 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 485 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 495 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /ble/BLE_API/ble line 505 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 457 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 466 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 475 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 485 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 495 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '<' token GattCharacteristic.h /test_proj/BLE_API/ble line 505 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'mbed' Gap.h /ble/BLE_API/ble line 27 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'mbed' Gap.h /test_proj/BLE_API/ble line 27 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /ble/BLE_API/ble line 31 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /ble/BLE_API/ble line 39 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /ble/BLE_API/ble line 61 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /ble/BLE_API/ble line 70 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /ble/BLE_API/ble line 80 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /test_proj/BLE_API/ble line 31 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /test_proj/BLE_API/ble line 39 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /test_proj/BLE_API/ble line 61 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /test_proj/BLE_API/ble line 70 C/C++ Problem
expected specifier-qualifier-list before 'GattAttribute' GattCallbackParamTypes.h /test_proj/BLE_API/ble line 80 C/C++ Problem
Invalid arguments '
Candidates are:
int wait(int *)
wait()
wait(const wait &)
' main.cpp /test_proj line 15 Semantic Error
Invalid arguments '
Candidates are:
int wait(int *)
wait()
wait(const wait &)
' main.cpp /test_proj line 17 Semantic Error
invalid initializer ble_advdata.c /ble/nRF51822/source/nordic-sdk/components/ble/common line 178 C/C++ Problem
invalid initializer ble_advdata.c /test_proj/nRF51822/source/nordic-sdk/components/ble/common line 178 C/C++ Problem
make: *** [NRF51_DONGLE/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu/ble_dfu.o] Error 1 ble C/C++ Problem
make: *** [NRF51_DONGLE/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu/ble_dfu.o] Error 1 test_proj C/C++ Problem
make: *** [NRF51_DONGLE/nRF51822/source/nordic-sdk/components/ble/common/ble_advdata_parser.o] Error 1 ble C/C++ Problem
make: *** [NRF51_DONGLE/nRF51822/source/nordic-sdk/components/ble/common/ble_advdata.o] Error 1 ble C/C++ Problem
make: *** [NRF51_DONGLE/nRF51822/source/nordic-sdk/components/ble/common/ble_advdata.o] Error 1 test_proj C/C++ Problem
make: *** Waiting for unfinished jobs.... ble C/C++ Problem
make: *** Waiting for unfinished jobs.... test_proj C/C++ Problem
Type 'DigitalOut' could not be resolved main.cpp /test_proj line 7 Semantic Error
Type 'LED1' could not be resolved main.cpp /test_proj line 7 Semantic Error
unknown type name 'ble_evt_t' ble_dfu.c /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 228 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 416 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 451 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 473 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 548 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 228 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 416 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 451 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 473 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.c /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 548 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.h /ble/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 190 C/C++ Problem
unknown type name 'ble_evt_t' ble_dfu.h /test_proj/nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu line 190 C/C++ Problem
unknown type name 'ble_uuid_t' ble_advdata.h /ble/nRF51822/source/nordic-sdk/components/ble/common line 64 C/C++ Problem
unknown type name 'ble_uuid_t' ble_advdata.h /test_proj/nRF51822/source/nordic-sdk/components/ble/common line 64 C/C++ Problem
unknown type name 'BLE' BLE.h /ble/BLE_API/ble line 1339 C/C++ Problem
unknown type name 'BLE' BLE.h /test_proj/BLE_API/ble line 1339 C/C++ Problem
unknown type name 'BLEInstanceBase' BLEInstanceBase.h /ble/BLE_API/ble line 54 C/C++ Problem
unknown type name 'BLEInstanceBase' BLEInstanceBase.h /test_proj/BLE_API/ble line 54 C/C++ Problem
unknown type name 'class' BLE.h /ble/BLE_API/ble line 30 C/C++ Problem
unknown type name 'class' BLE.h /test_proj/BLE_API/ble line 30 C/C++ Problem
unknown type name 'class' BLEInstanceBase.h /ble/BLE_API/ble line 23 C/C++ Problem
And here is the makefile that MBED generates for the BLE_HeartRate example, in case it helps diagnose what's going on:
# This file was automagically generated by mbed.org. For more information,
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
GCC_BIN =
PROJECT = BLE_HeartRate
OBJECTS = ./nRF51822/source/nordic-sdk/components/drivers_nrf/ble_flash/ble_flash.o ./nRF51822/source/nordic-sdk/components/drivers_nrf/pstorage/pstorage.o ./nRF51822/source/nordic-sdk/components/drivers_nrf/hal/nrf_nvmc.o ./nRF51822/source/nordic-sdk/components/drivers_nrf/hal/nrf_delay.o ./nRF51822/source/nordic-sdk/components/drivers_nrf/hal/nrf_ecb.o ./nRF51822/source/nordic-sdk/components/libraries/util/app_util_platform.o ./nRF51822/source/nordic-sdk/components/libraries/util/nrf_assert.o ./nRF51822/source/nordic-sdk/components/libraries/util/app_error.o ./nRF51822/source/nordic-sdk/components/libraries/hci/hci_mem_pool.o ./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu/dfu_init_template.o ./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu/bootloader_util_arm.o ./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu/experimental/dfu_app_handler.o ./nRF51822/source/nordic-sdk/components/libraries/scheduler/app_scheduler.o ./nRF51822/source/nordic-sdk/components/libraries/crc16/crc16.o ./nRF51822/source/nordic-sdk/components/softdevice/common/softdevice_handler/softdevice_handler.o ./nRF51822/source/nordic-sdk/components/softdevice/common/softdevice_handler/softdevice_handler_appsh.o ./nRF51822/source/nordic-sdk/components/ble/common/ble_advdata_parser.o ./nRF51822/source/nordic-sdk/components/ble/common/ble_srv_common.o ./nRF51822/source/nordic-sdk/components/ble/common/ble_advdata.o ./nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu/ble_dfu.o ./nRF51822/source/nordic-sdk/components/ble/ble_radio_notification/ble_radio_notification.o ./nRF51822/source/nordic-sdk/components/ble/device_manager/device_manager_peripheral.o ./main.o ./nRF51822/source/nRF51Gap.o ./nRF51822/source/nRF51SecurityManager.o ./nRF51822/source/nRF51GattServer.o ./nRF51822/source/nRF51DiscoveredCharacteristic.o ./nRF51822/source/nRF51ServiceDiscovery.o ./nRF51822/source/nRF51GattClient.o ./nRF51822/source/nRF51822n.o ./nRF51822/source/nordic-sdk/components/ble/common/ble_conn_params.o ./nRF51822/source/btle/btle_gap.o ./nRF51822/source/btle/btle_advertising.o ./nRF51822/source/btle/btle_security.o ./nRF51822/source/btle/btle.o ./nRF51822/source/btle/btle_discovery.o ./nRF51822/source/btle/custom/custom_helper.o ./BLE_API/source/BLE.o ./BLE_API/source/DiscoveredCharacteristic.o ./BLE_API/source/GapScanningParams.o ./BLE_API/source/services/UARTService.o ./BLE_API/source/services/DFUService.o ./BLE_API/source/services/URIBeaconConfigService.o
SYS_OBJECTS = ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/startup_NRF51822.o ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/board.o ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/system_nrf51.o ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/cmsis_nvic.o ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/retarget.o
INCLUDE_PATHS = -I. -I./nRF51822 -I./nRF51822/source -I./nRF51822/source/common -I./nRF51822/source/nordic-sdk -I./nRF51822/source/nordic-sdk/components -I./nRF51822/source/nordic-sdk/components/drivers_nrf -I./nRF51822/source/nordic-sdk/components/drivers_nrf/ble_flash -I./nRF51822/source/nordic-sdk/components/drivers_nrf/pstorage -I./nRF51822/source/nordic-sdk/components/drivers_nrf/pstorage/config -I./nRF51822/source/nordic-sdk/components/drivers_nrf/hal -I./nRF51822/source/nordic-sdk/components/libraries -I./nRF51822/source/nordic-sdk/components/libraries/util -I./nRF51822/source/nordic-sdk/components/libraries/hci -I./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu -I./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu/hci_transport -I./nRF51822/source/nordic-sdk/components/libraries/bootloader_dfu/experimental -I./nRF51822/source/nordic-sdk/components/libraries/scheduler -I./nRF51822/source/nordic-sdk/components/libraries/crc16 -I./nRF51822/source/nordic-sdk/components/softdevice -I./nRF51822/source/nordic-sdk/components/softdevice/common -I./nRF51822/source/nordic-sdk/components/softdevice/common/softdevice_handler -I./nRF51822/source/nordic-sdk/components/softdevice/s130 -I./nRF51822/source/nordic-sdk/components/softdevice/s130/include -I./nRF51822/source/nordic-sdk/components/ble -I./nRF51822/source/nordic-sdk/components/ble/common -I./nRF51822/source/nordic-sdk/components/ble/ble_services -I./nRF51822/source/nordic-sdk/components/ble/ble_services/ble_dfu -I./nRF51822/source/nordic-sdk/components/ble/ble_radio_notification -I./nRF51822/source/nordic-sdk/components/ble/device_manager -I./nRF51822/source/nordic-sdk/components/ble/device_manager/config -I./nRF51822/source/btle -I./nRF51822/source/btle/custom -I./mbed -I./mbed/TARGET_NRF51_DONGLE -I./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822 -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler -I./mbed/TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 -I./BLE_API -I./BLE_API/ble -I./BLE_API/ble/services -I./BLE_API/source -I./BLE_API/source/services
LIBRARY_PATHS = -L./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM
LIBRARIES = -lmbed
LINKER_SCRIPT = ./mbed/TARGET_NRF51_DONGLE/TOOLCHAIN_GCC_ARM/NRF51822.ld
SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
###############################################################################
AS = $(GCC_BIN)arm-none-eabi-as
CC = $(GCC_BIN)arm-none-eabi-gcc
CPP = $(GCC_BIN)arm-none-eabi-g++
LD = $(GCC_BIN)arm-none-eabi-gcc
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
SIZE = $(GCC_BIN)arm-none-eabi-size
SREC_CAT = srec_cat
CPU = -mcpu=cortex-m0 -mthumb
CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP
CC_SYMBOLS = -DTARGET_NRF51_DONGLE -DTARGET_M0 -DTARGET_CORTEX_M -DTARGET_NORDIC -DTARGET_MCU_NRF51822 -DTARGET_MCU_NORDIC_32K -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0 -DARM_MATH_CM0 -DMBED_BUILD_TIMESTAMP=1436400097.71 -D__MBED__=1 -DTARGET_NRF51822 -DNRF51
LD_FLAGS = $(CPU) -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map=$(PROJECT).map,--cref
#LD_FLAGS += -u _printf_float -u _scanf_float
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
ifeq ($(DEBUG), 1)
CC_FLAGS += -DDEBUG -O0
else
CC_FLAGS += -DNDEBUG -Os
endif
.PHONY: all clean lst size
all: $(PROJECT).bin $(PROJECT).hex size
clean:
rm -f $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
.s.o:
$(AS) $(CPU) -o $@ $<
.c.o:
$(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<
.cpp.o:
$(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++98 -fno-rtti $(INCLUDE_PATHS) -o $@ $<
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS)
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
$(PROJECT).bin: $(PROJECT).elf
$(OBJCOPY) -O binary $< $@
$(PROJECT).hex: $(PROJECT).elf
@$(OBJCOPY) -O ihex $< $@
$(PROJECT).lst: $(PROJECT).elf
@$(OBJDUMP) -Sdh $< > $@
lst: $(PROJECT).lst
size: $(PROJECT).elf
$(SIZE) $(PROJECT).elf
DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
-include $(DEPS)
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
Currently running using the build code below. It builds without any problem but when copied into the device it does not work. Any ideas why?
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Vendor/device for which the library should be built.
MBED_DEVICE := NUCLEO_L053R8
MBED_TARGET := STM_NUCLEO_L053R8
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_NUCLEO_L053R8 TARGET_STM TARGET_STM32L0 TARGET_CORTEX_M
TARGETS_FOR_DEVICE += TARGET_FF_ARDUINO TARGET_FF_MORPHO
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS
C_FLAGS := -mcpu=cortex-m0plus -mthumb -mthumb-interwork
ASM_FLAGS := -mcpu=cortex-m0plus -mthumb
LD_FLAGS := -mcpu=cortex-m0plus -mthumb
# Extra platform specific object files to link into file binary.
DEVICE_OBJECTS :=
# Version of MRI library to use for this device.
DEVICE_MRI_LIB :=
# Linker script to be used. Indicates what code should be placed where in memory.
LSCRIPT=$(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld
include $(GCC4MBED_DIR)/build/device-common.mk
and I'm building a basic blink code
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(1.0);
myled = 0;
wait(0.1);
}
}
Result:
LED does not blink
TIA
~ ashier
I was trying to deploy some sample code using the following commands in linux (this portion also failed while running the linux_install script):
cd gcc4mbed/samples/HelloWorld
make clean all deploy
But I keep getting this error:
../../gcc-arm-none-eabi/bin/arm-none-eabi-g++: 1: ../../gcc-arm-none-eabi/bin/arm-none-eabi-g++: Syntax error: word unexpected (expecting")")
The mbed is mounted and the gcc4mbed deploy command is exported; this doesn't seem like a setup issue since it's throwing a syntax error.
I'm using Ubuntu 18.04. The installation instructions have worked and the samples have compiled. I copied the file HelloWorld.bin to my LPC1768 and restarted it. The program seems to work, but the led is supposed to blink every 0.2 seconds and for sure it takes more than 1 second. I played with values and It really seemed to work as expected except the frequency.
I'd like to program mbed offline and gcc4mbed seemed the best option but I'm afraid of errors like this.
Somebody knows how to correct this?
Hi,
I have a NRF51_DK and try to debug with it in eclipse, building and all configurations works and I've updated the firmware of the chip (also tried JLINK firmware).
But I have a problem, when i try to debug a program with gcc4mbed in eclipse, i get this error:
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
I get error window with details:
Error in final launch sequence
Failed to execute MI command:
-target-select remote /dev/tty.usbmodem2622
Error message from debugger back end:
Bogus trace status reply from target: timeout
Bogus trace status reply from target: timeout
Does someone know a solution?
Hello,
I'm trying to build a NRF51_DK program on eclipse. I have followed this guide: https://github.com/adamgreen/gcc4mbed/blob/master/notes/new_devices.creole#adding-new-devices-to-gcc4mbed and used NRF51822 as base device, but i had no succes.
If i try to build HelloWorld sample for NRF51_DK I get this error:
Compiling main.cpp
In file included from ../../external/mbed/libraries/mbed/api/mbed.h:21:0,
from main.cpp:4:
../../external/mbed/libraries/mbed/api/platform.h:21:20: fatal error: device.h: No such file or directory
#include "device.h"
^
compilation terminated.
make: *** [NRF51_DK/main.o] Error 1
I'm pretty sure it has something to do with my target devices, but I feel like i did it right.
My NRF5_dk-device.mk
# Vendor/device for which the library should be built.
MBED_DEVICE := NRF51_DK
MBED_TARGET := NORDIC_NRF51_DK
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_NRF51_DK TARGET_M0 TARGET_NORDIC TARGET_NRF51_DK TARGET_MCU_NRF51882
TARGETS_FOR_DEVICE += TARGET_MCU_NORDIC_16K TARGET_CORTEX_M
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M0 -DARM_MATH_CM0 -DNRF51
C_FLAGS := -mcpu=cortex-m0 -mthumb -mthumb-interwork
ASM_FLAGS := -mcpu=cortex-m0 -mthumb
LD_FLAGS := -mcpu=cortex-m0 -mthumb
# Extra platform specific object files to link into file binary.
# For NRF51 parts, we add in the softdevice.
DEVICE_OBJECTS := $(MBED_DEVICE)/s130_nrf51_1.0.0_softdevice.o
# Version of MRI library to use for this device.
DEVICE_MRI_LIB :=
# Linker script to be used. Indicates what code should be placed where in memory.
LSCRIPT=$(GCC4MBED_DIR)/build/NRF51_DK.ld
include $(GCC4MBED_DIR)/build/device-common.mk
# Rules to build the SoftDevice object file.
$(MBED_DEVICE)/s130_nrf51_1.0.0_softdevice.bin : $(MBED_SRC_ROOT)/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex
$(Q) $(OBJCOPY) -I ihex -O binary --gap-fill 0xFF $< $@
$(MBED_DEVICE)/s130_nrf51_1.0.0_softdevice.o : $(MBED_DEVICE)/s130_nrf51_1.0.0_softdevice.bin
$(Q) $(OBJCOPY) -I binary -O elf32-littlearm -B arm --rename-section .data=.SoftDevice $< $@
Some more information when running: workspace_tools/build.py -m NRF51_DK -t GCC_ARM -v
arm-none-eabi-gcc -std=gnu99 -c
-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer
-mcpu=cortex-m0 -mthumb -O2
-D__CORTEX_M0 -DTARGET_NRF51_DK -DTARGET_FF_ARDUINO -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -DTARGET_MCU_NRF51822 -DTARGET_MCU_NORDIC_32K -DNRF51 -DTARGET_CORTEX_M -DMBED_BUILD_TIMESTAMP=1441024490.28 -DTARGET_NRF51822 -DARM_MATH_CM0 -DTARGET_NORDIC -DTARGET_MCU_NRF51_32K -DTARGET_MCU_NRF51 -DTARGET_M0 -D__MBED__=1
-I/home/arnoutreitsma/mbed-master/libraries/mbed/common -I/home/arnoutreitsma/mbed-master/build/mbed -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TOOLCHAIN_GCC_ARM -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822 -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0 -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 -I/home/arnoutreitsma/mbed-master/build/mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler
-o /home/arnoutreitsma/mbed-master/build/mbed/.temp/TARGET_NRF51_DK/TOOLCHAIN_GCC_ARM/./wait_api.o /home/arnoutreitsma/mbed-master/libraries/mbed/common/wait_api.c
I hope you guys can help me.
Hello everyone
Just a repost from the mbed forum. Hopefully more F103RB users read this post and can test and confirm whether it worked.
Here is my attempt at a NUCLEO_F103RB-device.mk file:
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Vendor/device for which the library should be built.
MBED_DEVICE := NUCLEO_F103RB
MBED_TARGET := STM_NUCLEO_F103RB
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_NUCLEO_F103RB TARGET_M3 TARGET_CORTEX_M TARGET_STM TARGET_STM32F1 TARGET_STM32F103RB
TARGETS_FOR_DEVICE += TARGET_FF_ARDUINO TARGET_FF_MORPHO
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M3 -DARM_MATH_CM3 -D__FPU_PRESENT=0
C_FLAGS := -mcpu=cortex-m3 -mthumb -mfpu=vfp -msoft-float -mthumb-interwork
ASM_FLAGS := -mcpu=cortex-m3 -mthumb -mfpu=vfp -msoft-float
LD_FLAGS := -mcpu=cortex-m3 -mthumb -mfpu=vfp -msoft-float
# Extra platform specific object files to link into file binary.
DEVICE_OBJECTS :=
# Version of MRI library to use for this device.
DEVICE_MRI_LIB :=
# Linker script to be used. Indicates what code should be placed where in memory.
LSCRIPT=$(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/STM32F10X.ld
include $(GCC4MBED_DIR)/build/device-common.mk
I do not own such a board, but I decided to give it a go, since I wanted to use the mbed code on a generic (eBay) STM32F103 based board. I was able to get it to compile and upload the resulting .hex file to the board using stm32flash, and so far it is working
@adamgreen Again, thank for developing gcc4mbed! making all of this possible
Hi Adam,
I am working on Freescale Freedom KL25Z board. I am planning to use available mbed libraries for this processor in my project using gcc. I have tried the export option in the mbed for gcc compiler. The exported gcc zip file from the mbed works without any issues.
But the size of binary generated out of this make file is almost 10 times more than the mbed generated binary file.
I have gone through the overview of gcc4mbed and also through the makefile. You have mentioned that you have also some issues with size of executable and able to reduce the size of executable to twice than the mbed compiler.
Please let me know what all things you have done to reduce the size of executable ?
Thanks in advance for your support.
I would like to add the support of STM32F429 to the CrashingApp example in CrashCatcher,but the default Serial setting does not work.
It seems that the bug is in the gcc4mbed usart driver of STM32F429.
If I use mri to connect to the device,by typing "backtrace",it will remind me that the stack may corrupted.
NOTE: STM32F429 can run CrashCatcher successfully if the UART is implement by myself.
I have updated the working branch to use mbed SDK rev 93 and the latest build of the GCC_ARM toolchain.
I have tested the platforms that I have access to but not the STM ones.
@svkatielee do you want to test the DISCO_F407VG and NUCLEO_F401RE platforms before I merge into the master branch? You can skip running the install script to install the latest GCC if you don't want to take the bandwidth hit. I didn't change anything in the makefiles or code for the new compiler but I did have to change some STM linker scripts paths because of changes in the mbed SDK. I am therefore more interested in having the mbed SDK updates tested as they continue to refactor the STM tree in the mbed SDK.
@weyoui do you want to test the NUCLEO_F411RE platform before I merge into the master branch?
Thanks,
Adam
Hi, I'm new to mbed, and really wish to compile offline, so first, thank you for your work.
I'm using a quite obscure device: "Xadow M0" based on the LPC11U35FHI33/501 and I'm begging for help to add this device as build target.
It is supported by the mbed SDK so I followed the instructions about 'how to add a device' but with no success.
Here are some infos that may help you help me.
$workspace_tools/build.py -m XADOW_M0 -t GCC_ARM -v
/home/mikael/bin/adamgreen-gcc4mbed-ddb84b1/gcc-arm-none-eabi/bin/gcc-arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++98 -fno-rtti -c
-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer
-mcpu=cortex-m0 -mthumb -O2
-DTARGET_XADOW_M0 -DTARGET_M0 -DTARGET_CORTEX_M -DTARGET_NXP -DTARGET_LPC11UXX -DTARGET_MCU_LPC11U35_501 -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0 -DARM_MATH_CM0 -DMBED_BUILD_TIMESTAMP=1429280269.75 -D__MBED__=1
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/libraries/mbed/common
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0/TOOLCHAIN_GCC_ARM
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0/TARGET_NXP
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0/TARGET_NXP/TARGET_LPC11UXX
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501
-I/home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/TARGET_XADOW_M0/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0
-o /home/mikael/projects/XadowM0/mbed_libs/mbed-master/build/mbed/.temp/TARGET_XADOW_M0/TOOLCHAIN_GCC_ARM/./CallChain.o /home/mikael/projects/XadowM0/mbed_libs/mbed-master/libraries/mbed/common/CallChain.cpp
I used LPC11U24-device.mk as a base for my XADOW_M0-device.mk witch containt:
# Copyright 2015 Adam Green (http://mbed.org/users/AdamGreen/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Vendor/device for which the library should be built.
MBED_DEVICE := XADOW_M0
MBED_TARGET := NPX_LPC11UXX
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_XADOW_M0 TARGET_M0 TARGET_NXP TARGET_LPC11UXX TARGET_MCU_LPC11U35_501 TARGET_CORTEX_M
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M0 -DARM_MATH_CM0 -D__MBED__=1
C_FLAGS := -mcpu=cortex-m0 -mthumb -mthumb-interwork
ASM_FLAGS := -mcpu=cortex-m0 -mthumb
LD_FLAGS := -mcpu=cortex-m0 -mthumb
# Extra platform specific object files to link into file binary.
DEVICE_OBJECTS :=
# Version of MRI library to use for this device.
DEVICE_MRI_LIB :=
# Linker script to be used. Indicates what code should be placed where in memory.
LSCRIPT=$(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld
include $(GCC4MBED_DIR)/build/device-common.mk
Now, it will compile for this target but once uploaded, the board keep booting in 'usb drive mode', so I guess I made something wrong, If someone could point me to what and where...I'll be eternally grateful.
Thanks again,
Mikaël.
P.S. I've tried the mbed forum but I get an error when I try to post !?!
in fact it's not an issue of gcc4mbed, probably it's related to Eclipse configuration, I just need some guidance on setting Eclipse to debug Smoothieboard
Since the latest changes to automatically include the files from required libraries I have been getting the following error.
../../build/device-common.mk:166: *** commands commence before first target. Stop.
If I comment out MBED_LIBS in my local make file the project build fine but if I include any library I get this error. VERBOSE=1 doesn't give me any more information. Any ideas?
Dear Adam and contributors,
I'm trying to add support for the Ublox C027 to gcc4mbed and, along the way, to integrate gcc4mbed snugly with Eclipse.
I have two problems:
Let me explain in greater detail:
I've read the helpful cookbook and set up my workspace as follows:
As the C027 is the only mbed device available to me, I tried to test the 'Hello World' code built for the LPC1768 with it - it's the same CPU, and I modified the pin according to C027's PinNames.h. I can build it and flash it, but the LED stays off. Here's the verbose build output:
`13:04:04 **** Build of configuration Debug for project gcc4mbed_HelloWorld ****
make all deploy GCC4MBED_TYPE=Debug
Compiling main.cpp
Using built-in specs.
COLLECT_GCC=....\gcc-arm-none-eabi\bin\arm-none-eabi-g++
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977](GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1plus.exe -quiet -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi -MMD LPC1768/main.d -MP -MQ LPC1768/main.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_MBED_LPC1768 -D TARGET_CORTEX_M -D CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 main.cpp -quiet -dumpbase main.cpp -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip LPC1768/main.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu++11 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -fno-rtti -o C:\Users\guarndt\AppData\Local\Temp\ccBzvFeJ.s
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/usr/include"
ignoring duplicate directory "."
.
./.settings
../../mri
../../external/mbed/libraries/mbed
../../external/mbed/libraries/mbed/api
../../external/mbed/libraries/mbed/common
../../external/mbed/libraries/mbed/hal
../../external/mbed/libraries/mbed/targets
../../external/mbed/libraries/mbed/targets/cmsis
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
../../external/mbed/libraries/mbed/targets/hal
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3f55f2580aa6d440e9140bea84b15131
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o LPC1768/main.o C:\Users\guarndt\AppData\Local\Temp\ccBzvFeJ.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
Compiling ../../src/gcc4mbed.c
Using built-in specs.
COLLECT_GCC=....\gcc-arm-none-eabi\bin\arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977](GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1.exe -quiet -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi -MMD LPC1768/gcc4mbed.d -MP -MQ LPC1768/gcc4mbed.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_MBED_LPC1768 -D TARGET_CORTEX_M -D CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 ../../src/gcc4mbed.c -quiet -dumpbase gcc4mbed.c -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip LPC1768/gcc4mbed.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu99 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -o C:\Users\guarndt\AppData\Local\Temp\ccTelsK7.s
GNU C (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/usr/include"
ignoring duplicate directory "."
.
./.settings
../../mri
../../external/mbed/libraries/mbed
../../external/mbed/libraries/mbed/api
../../external/mbed/libraries/mbed/common
../../external/mbed/libraries/mbed/hal
../../external/mbed/libraries/mbed/targets
../../external/mbed/libraries/mbed/targets/cmsis
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
../../external/mbed/libraries/mbed/targets/hal
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 9e5204409b6749d2b38216b284d4cf4d
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o LPC1768/gcc4mbed.o C:\Users\guarndt\AppData\Local\Temp\ccTelsK7.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
Assembling ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.s
Linking debug library ../../external/mbed/Debug/LPC1768/mbed.a
Linking LPC1768/HelloWorld.elf
Extracting LPC1768/HelloWorld.bin
Extracting LPC1768/HelloWorld.hex
Extracting disassembly to LPC1768/HelloWorld.disasm
text data bss dec hex filename
make: Nothing to be done for `deploy'.
13:04:07 Build Finished (took 2s.901ms)`
I know, that's a lot, and more's to come, but maybe you can see something I'm blind for.
As that didn't work, and because the C027-specific HelloWorld project from mbed online can be built and run from Eclipse no problem, I decided to try to add proper support for the C027 to gcc4mbed following #39 and the Makefile from the previously mentioned project. I'm using the following UBLOX_C027-device.mk
:
`# Vendor/device for which the library should be built.
MBED_DEVICE := UBLOX_C027
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
TARGETS_FOR_DEVICE := TARGET_LPC1768 TARGET_M3 TARGET_NXP TARGET_LPC176X TARGET_UBLOX_C027 TARGET_CORTEX_M TARGET_FF_ARDUINO
GCC_DEFINES :=
GCC_DEFINES += -D__CORTEX_M3 -DARM_MATH_CM3
C_FLAGS := -mcpu=cortex-m3 -mthumb -mthumb-interwork -v
ASM_FLAGS := -mcpu=cortex-m3 -mthumb
LD_FLAGS := -mcpu=cortex-m3 -mthumb
DEVICE_OBJECTS :=
DEVICE_MRI_LIB := $(GCC4MBED_DIR)/mri/libmri_mbed1768.a
LPC1768_LSCRIPT ?= $(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld
LSCRIPT = $(LPC1768_LSCRIPT)
include $(GCC4MBED_DIR)/build/device-common.mk`
MBED_TARGET
mentioned in #39 does not seem to be relevant any more?
GCC4MBED_DIR
is defined in the project's environment as it is not a subfolder of the gcc4mbed working directory:
The project's include paths are configured as shown in the following screenshot; the one for C027 is on top of the list, as otherwise, it does not load the correct PinNames.h
.
The project seems to be built successfully except for a problem with LPC1768-deploy
, but does not run either on the C027 - at least, the LED does not blink. The build output:
`14:50:16 **** Incremental Build of configuration Debug for project gcc4mbed_C027_HelloWorld ****
make all deploy GCC4MBED_TYPE=Debug
Compiling main.cpp
Using built-in specs.
COLLECT_GCC=C:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\arm-none-eabi-g++
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977](GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1plus.exe -quiet -v -I . -I . -I ./.settings -I ./UBLOX_C027 -I C:/firedect/git/gcc4mbed/mri -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi -MMD UBLOX_C027/main.d -MP -MQ UBLOX_C027/main.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_UBLOX_C027 -D TARGET_CORTEX_M -D TARGET_FF_ARDUINO -D CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 main.cpp -quiet -dumpbase main.cpp -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip UBLOX_C027/main.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu++11 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -fno-rtti -o C:\Users\guarndt\AppData\Local\Temp\cctXZv0K.s
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../arm-none-eabi/usr/include"
ignoring duplicate directory "."
.
./.settings
./UBLOX_C027
C:/firedect/git/gcc4mbed/mri
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) ARM/embedded-4_9-branch revision 227977
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3f55f2580aa6d440e9140bea84b15131
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ./UBLOX_C027 -I C:/firedect/git/gcc4mbed/mri -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o UBLOX_C027/main.o C:\Users\guarndt\AppData\Local\Temp\cctXZv0K.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' 'CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
Linking UBLOX_C027/gcc4mbed_C027_HelloWorld.elf
Extracting UBLOX_C027/gcc4mbed_C027_HelloWorld.bin
Extracting UBLOX_C027/gcc4mbed_C027_HelloWorld.hex
Extracting disassembly to UBLOX_C027/gcc4mbed_C027_HelloWorld.disasm
text data bss dec hex filename
make: *** No rule to make target LPC1768-deploy', needed by
deploy'. Stop.
14:50:18 Build Finished (took 2s.355ms)`
Eclipse shows one more error after building, which seems to be an indexer issue only, but is still unexplainable to me:
Now, thank you so much for reading till here - that's probably already more than I could have expected.
Do you have any idea what I'm doing wrong? I'd be grateful for any suggestion you can make.
Dear Adam,
I'm trying to set up the gcc4mbed compiler on raspbian stretch (ROS kinetic) .
But, linux_install cannot do its task. So, what can I do next ?
linux_install.log says
1Sun Sep 23 17:11:08 JST 2018 Starting ./linux_install 2Sun Sep 23 17:11:08 JST 2018 Executing wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2 3Sun Sep 23 17:14:36 JST 2018 Validating md5 signature of GNU Tools for ARM Embedded Processors 4Sun Sep 23 17:14:38 JST 2018 Executing tar xf /home/pi/adamgreen-gcc4mbed-7d79ef3/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2 5Sun Sep 23 17:19:04 JST 2018 Executing mv /home/pi/adamgreen-gcc4mbed-7d79ef3/gcc-arm-none-eabi-6-2017-q1-update /home/pi/adamgreen-gcc4mbed-7d79ef3/gcc-arm-none-eabi 6Sun Sep 23 17:19:04 JST 2018 Executing make -C samples/ clean-all LPC1768 7make: Entering directory '/home/pi/adamgreen-gcc4mbed-7d79ef3/samples' 8Cleaning HelloWorld/KL25Z 9Cleaning HelloWorld/K64F 10Cleaning HelloWorld/LPC1768 11Cleaning HelloWorld/NRF51_DK 12Cleaning ../../external/mbed-os/Debug 13Cleaning ../../external/mbed-os/Develop 14Cleaning ../../external/mbed-os/Release 15Cleaning Blink/LPC1768 16Cleaning ../../external/mbed-os/Debug 17Cleaning ../../external/mbed-os/Develop 18Cleaning ../../external/mbed-os/Release 19Cleaning Ticker/KL25Z 20Cleaning Ticker/K64F 21Cleaning Ticker/LPC1768 22Cleaning Ticker/NRF51_DK 23Cleaning ../../external/mbed-os/Debug 24Cleaning ../../external/mbed-os/Develop 25Cleaning ../../external/mbed-os/Release 26Cleaning StdIO/KL25Z 27Cleaning StdIO/K64F 28Cleaning StdIO/LPC1768 29Cleaning StdIO/NRF51_DK 30Cleaning ../../external/mbed-os/Debug 31Cleaning ../../external/mbed-os/Develop 32Cleaning ../../external/mbed-os/Release 33Cleaning SdPerf/K64F 34Cleaning SdPerf/LPC1768 35Cleaning ../../external/mbed-os/Debug 36Cleaning ../../external/mbed-os/Develop 37Cleaning ../../external/mbed-os/Release 38Cleaning TCPSocket_HelloWorld/K64F 39Cleaning TCPSocket_HelloWorld/LPC1768 40Cleaning ../../external/mbed-os/Debug 41Cleaning ../../external/mbed-os/Develop 42Cleaning ../../external/mbed-os/Release 43Cleaning USBMouse/KL25Z 44Cleaning USBMouse/K64F 45Cleaning USBMouse/LPC1768 46Cleaning ../../external/mbed-os/features/unsupported/USBDevice/Debug 47Cleaning ../../external/mbed-os/features/unsupported/USBDevice/Develop 48Cleaning ../../external/mbed-os/features/unsupported/USBDevice/Release 49Cleaning ../../external/mbed-os/Debug 50Cleaning ../../external/mbed-os/Develop 51Cleaning ../../external/mbed-os/Release 52Cleaning BLEHeartRate/NRF51_DK 53Cleaning ../../external/mbed-os/Debug 54Cleaning ../../external/mbed-os/Develop 55Cleaning ../../external/mbed-os/Release 56make[1]: Entering directory '/home/pi/adamgreen-gcc4mbed-7d79ef3/samples/HelloWorld' 57Preprocessing ../../external/mbed-os/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld 58../../build/device-common.mk:201: recipe for target 'LPC1768/HelloWorld.ld' failed 59make[1]: Leaving directory '/home/pi/adamgreen-gcc4mbed-7d79ef3/samples/HelloWorld' 60Makefile:82: recipe for target 'HelloWorld.LPC1768' failed 61make: Leaving directory '/home/pi/adamgreen-gcc4mbed-7d79ef3/samples' 62../../gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: ../../gcc-arm-none-eabi/bin/arm-none-eabi-gcc: ^?ELF^B^A^A^B: not found 63../../gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 2: ../../gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: "(" unexpected 64make[1]: *** [LPC1768/HelloWorld.ld] Error 2 65make: *** [HelloWorld.LPC1768] Error 2 66Sun Sep 23 17:22:10 JST 2018 Failure forced early exit
Thanks in advance.
how to update gcc4mbed to the latest mbed Library ?
can we do this by downloading the mbed library for mbed.org and injecting it ? or there are modifications that are required to be carried out ?
will this project updated to mbed-os ?
https://github.com/ARMmbed/mbed-os
I am using window 10. I followed instruction till below:
*Set Name: to Eclipse for ARM.
*Set Location: to http://sourceforge.net/projects/gnuarmeclipse/files/Eclipse/updates/
*Click the Ok button.
My response is:
GNU ARM C/C++ Cross Development Tools
So I changed to Ubuntu, and I got the exactly the same response. Is it possible they (eclipse or arm) made any updating on showing name? Thanks
Hi Adam,
I am researching how to get the balance of gcc4mbed to fully compile for the LPC4300, mainly the SD Card and USB code on my Bambino210E.
Then I want to get them working for Smoothie2 and I notice that some of the (other) samples compile for the LPC4330_M4, but not the USB code.
Before I start to better understand what I need to do (makefiles, etc), I assume that the LPC4330_M4 support is not (yet) complete and that while I have read the guides on this GitHub site, I haven't missed something obvious ?
Cheers
Douglas
I am trying this offline compiler on a NUCLEO_F303K8 board and I can compile the code to generate the binary file but when I run make NUCLEO_F303K8-deploy
, I just receive make: Nothing to be done for 'NUCLEO_F303K8-deploy'.
. How does make deploy
work? Can I use the DEVICE variable in Makefile to do make deploy
?
Hi, I'm trying to add an external directory which contains some source files for a project, my project's folder structure is the following
The makefile has the following
PROJECT := HelloWorld
DEVICES := LPC1768
GCC4MBED_DIR := <gcc4mbed_path>
NO_FLOAT_SCANF := 1
NO_FLOAT_PRINTF := 1
include $(GCC4MBED_DIR)/build/gcc4mbed.mk
If my_lib folder is inside each project folder I can compile it fine, but it weights about 5M so it's not practical to have it copied in each directory. I would like to have something like
Is there a simple way to do this in the makefiles?
Thanks in advance!
Hello,
I got a problem with the parse_pin function.
I think the linker do not linke the port_api.h but i do not know where to add it.
Example:
#include "mbed.h"
#include "parse_pins.h"
int main()
{
parse_pins("NotVaildName");
}
Makefile:
PROJECT := ParsePin
DEVICES := LPC1768 LPC11U24 KL25Z
GCC4MBED_DIR := ../..
MBED_LIBS += rpc
include $(GCC4MBED_DIR)/build/gcc4mbed.mk
Error
Compiling main.cpp
Compiling ../../src/gcc4mbed.c
Linking LPC1768/ParsePin.elf
../../external/mbed/Release/NXP_LPC17XX/rpc.a(parse_pins.o): In function `mbed::parse_pins(char const*)':
/Users/windy/Downloads/gcc4mbed-master/samples/ParsePin/../../external/mbed/libraries/rpc/parse_pins.cpp:44: undefined reference to `port_pin'
collect2: error: ld returned 1 exit status
make: *** [LPC1768/ParsePin.elf] Error 1
When running the debugger in Eclipse, I'm unable to see the value of any local variables.
I modified the HelloWorld sample to the following:
#include "mbed.h"
DigitalOut myled(LED1);
int main()
{
int i = 0;
while(1)
{
myled = i;
i = 1;
wait(0.2);
myled = i;
i = 0;
wait(0.2);
}
}
Then I deployed it to my target (NRF51-Dongle). I started a gdbserver with pyOCD and started debugging using Eclipse. If I stop at a breakpoint inside the while loop, Eclipse is unable to give me the value for 'i'. It reports this error on inspection:
Failed to execute MI command:
-data-evaluate-expression i
Error message from debugger back end:
Cannot access memory at address 0x20007fdc
If I inspect further and view the raw memory, it indeed cannot display any memory locations, giving me ??????
for all of them. My guess would be that the elf file isn't appropriately getting the symbols. I'm not sure if it's a problem with gcc4mbed, pyOCD, or Eclipse. Any idea what the problem might be?
Here's my configuration:
I'm on a Mac if that's not obvious by the screenshot.
Dear Adam and contributors,
I'm trying to add support for the Ublox C027 to gcc4mbed and, along the way, to integrate gcc4mbed snugly with Eclipse.
I have two problems:
Let me explain in greater detail:
I've read the helpful cookbook and set up my workspace as follows:
As the C027 is the only mbed device available to me, I tried to test the 'Hello World' code built for the LPC1768 with it - it's the same CPU, and I modified the pin according to C027's PinNames.h. I can build it and flash it, but the LED stays off. Here's the verbose build output:
13:04:04 **** Build of configuration Debug for project gcc4mbed_HelloWorld ****
make all deploy GCC4MBED_TYPE=Debug
Compiling main.cpp
Using built-in specs.
COLLECT_GCC=..\..\gcc-arm-none-eabi\bin\arm-none-eabi-g++
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1plus.exe -quiet -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi -MMD LPC1768/main.d -MP -MQ LPC1768/main.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_MBED_LPC1768 -D TARGET_CORTEX_M -D __CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED__=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 main.cpp -quiet -dumpbase main.cpp -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip LPC1768/main.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu++11 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -fno-rtti -o C:\Users\guarndt\AppData\Local\Temp\ccBzvFeJ.s
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/usr/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
.
./.settings
../../mri
../../external/mbed/libraries/mbed
../../external/mbed/libraries/mbed/api
../../external/mbed/libraries/mbed/common
../../external/mbed/libraries/mbed/hal
../../external/mbed/libraries/mbed/targets
../../external/mbed/libraries/mbed/targets/cmsis
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
../../external/mbed/libraries/mbed/targets/hal
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3f55f2580aa6d440e9140bea84b15131
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o LPC1768/main.o C:\Users\guarndt\AppData\Local\Temp\ccBzvFeJ.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/main.o'
Compiling ../../src/gcc4mbed.c
Using built-in specs.
COLLECT_GCC=..\..\gcc-arm-none-eabi\bin\arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1.exe -quiet -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi -MMD LPC1768/gcc4mbed.d -MP -MQ LPC1768/gcc4mbed.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_MBED_LPC1768 -D TARGET_CORTEX_M -D __CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED__=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 ../../src/gcc4mbed.c -quiet -dumpbase gcc4mbed.c -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip LPC1768/gcc4mbed.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu99 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -o C:\Users\guarndt\AppData\Local\Temp\ccTelsK7.s
GNU C (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/usr/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
.
./.settings
../../mri
../../external/mbed/libraries/mbed
../../external/mbed/libraries/mbed/api
../../external/mbed/libraries/mbed/common
../../external/mbed/libraries/mbed/hal
../../external/mbed/libraries/mbed/targets
../../external/mbed/libraries/mbed/targets/cmsis
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
../../external/mbed/libraries/mbed/targets/hal
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 9e5204409b6749d2b38216b284d4cf4d
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ../../mri -I ../../external/mbed/libraries/mbed -I ../../external/mbed/libraries/mbed/api -I ../../external/mbed/libraries/mbed/common -I ../../external/mbed/libraries/mbed/hal -I ../../external/mbed/libraries/mbed/targets -I ../../external/mbed/libraries/mbed/targets/cmsis -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I ../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I ../../external/mbed/libraries/mbed/targets/hal -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I ../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o LPC1768/gcc4mbed.o C:\Users\guarndt\AppData\Local\Temp\ccTelsK7.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_MBED_LPC1768' '-D' 'TARGET_CORTEX_M' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-std=gnu99' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' '../../mri' '-I' '../../external/mbed/libraries/mbed' '-I' '../../external/mbed/libraries/mbed/api' '-I' '../../external/mbed/libraries/mbed/common' '-I' '../../external/mbed/libraries/mbed/hal' '-I' '../../external/mbed/libraries/mbed/targets' '-I' '../../external/mbed/libraries/mbed/targets/cmsis' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' '../../external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' '../../external/mbed/libraries/mbed/targets/hal' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' '../../external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768' '-c' '-o' 'LPC1768/gcc4mbed.o'
Assembling ../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.s
Linking debug library ../../external/mbed/Debug/LPC1768/mbed.a
Linking LPC1768/HelloWorld.elf
Extracting LPC1768/HelloWorld.bin
Extracting LPC1768/HelloWorld.hex
Extracting disassembly to LPC1768/HelloWorld.disasm
text data bss dec hex filename
27460 120 1220 28800 7080 LPC1768/HelloWorld.elf
-
make: Nothing to be done for `deploy'.
13:04:07 Build Finished (took 2s.901ms)
I know, that's a lot, and more's to come, but maybe you can see something I'm blind for.
As that didn't work, and because the C027-specific HelloWorld project from mbed online can be built and run from Eclipse no problem, I decided to try to add proper support for the C027 to gcc4mbed following #39 and the Makefile from the previously mentioned project. I'm using the following UBLOX_C027-device.mk
:
# Vendor/device for which the library should be built.
MBED_DEVICE := UBLOX_C027
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
# Compiler flags which are specifc to this device.
TARGETS_FOR_DEVICE := TARGET_LPC1768 TARGET_M3 TARGET_NXP TARGET_LPC176X TARGET_UBLOX_C027 TARGET_CORTEX_M TARGET_FF_ARDUINO
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
GCC_DEFINES += -D__CORTEX_M3 -DARM_MATH_CM3
C_FLAGS := -mcpu=cortex-m3 -mthumb -mthumb-interwork -v
ASM_FLAGS := -mcpu=cortex-m3 -mthumb
LD_FLAGS := -mcpu=cortex-m3 -mthumb
# Extra platform specific object files to link into file binary.
DEVICE_OBJECTS :=
# Version of MRI library to use for this device.
DEVICE_MRI_LIB := $(GCC4MBED_DIR)/mri/libmri_mbed1768.a
# Linker script to be used. Indicates what code should be placed where in memory.
LPC1768_LSCRIPT ?= $(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld
LSCRIPT = $(LPC1768_LSCRIPT)
include $(GCC4MBED_DIR)/build/device-common.mk
MBED_TARGET
mentioned in #39 does not seem to be relevant any more?
GCC4MBED_DIR
is defined in the project's environment as it is not a subfolder of the gcc4mbed working directory:
The project's include paths are configured as shown in the following screenshot; the one for C027 is on top of the list, as otherwise, it does not load the correct PinNames.h
.
The project seems to be built successfully except for a problem with LPC1768-deploy
, but does not run either on the C027 - at least, the LED does not blink. The build output:
14:50:16 **** Incremental Build of configuration Debug for project gcc4mbed_C027_HelloWorld ****
make all deploy GCC4MBED_TYPE=Debug
Compiling main.cpp
Using built-in specs.
COLLECT_GCC=C:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\arm-none-eabi-g++
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --build=i686-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-mingw --libexecdir=/home/build/work/GCC-4-9-build/install-mingw/lib --infodir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (GNU Tools for ARM Embedded Processors)
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/cc1plus.exe -quiet -v -I . -I . -I ./.settings -I ./UBLOX_C027 -I C:/firedect/git/gcc4mbed/mri -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027 -imultilib armv7-m -iprefix c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/ -isysroot c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi -MMD UBLOX_C027/main.d -MP -MQ UBLOX_C027/main.o -dD -D__USES_INITFINI__ -D TARGET_LPC1768 -D TARGET_M3 -D TARGET_NXP -D TARGET_LPC176X -D TARGET_UBLOX_C027 -D TARGET_CORTEX_M -D TARGET_FF_ARDUINO -D __CORTEX_M3 -D ARM_MATH_CM3 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D __MBED__=1 -D MRI_ENABLE=1 -D MRI_INIT_PARAMETERS="MRI_UART_MBED_USB" -D MRI_BREAK_ON_INIT=1 -D MRI_SEMIHOST_STDIO=1 main.cpp -quiet -dumpbase main.cpp -mcpu=cortex-m3 -mthumb -mthumb-interwork -auxbase-strip UBLOX_C027/main.o -g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -std=gnu++11 -version -ffunction-sections -fdata-sections -fno-exceptions -fno-delete-null-pointer-checks -fomit-frame-pointer -fno-rtti -o C:\Users\guarndt\AppData\Local\Temp\cctXZv0K.s
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/home/build/work/GCC-4-9-build/install-mingw/lib/gcc/arm-none-eabi/4.9.3/../../../../include"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/include-fixed"
ignoring duplicate directory "c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/lib/gcc/../../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../arm-none-eabi/usr/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
.
./.settings
./UBLOX_C027
C:/firedect/git/gcc4mbed/mri
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X
C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/arm-none-eabi/armv7-m
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include/c++/4.9.3/backward
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/include-fixed
c:\firedect\git\gcc4mbed\gcc-arm-none-eabi\bin\../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/include
End of search list.
GNU C++ (GNU Tools for ARM Embedded Processors) version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (arm-none-eabi)
compiled by GNU C version 4.7.4, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3f55f2580aa6d440e9140bea84b15131
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/as.exe -v -I . -I . -I ./.settings -I ./UBLOX_C027 -I C:/firedect/git/gcc4mbed/mri -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X -I C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027 -mcpu=cortex-m3 -mthumb-interwork -meabi=5 -o UBLOX_C027/main.o C:\Users\guarndt\AppData\Local\Temp\cctXZv0K.s
GNU assembler version 2.24.0 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.24.0.20150921
COMPILER_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/armv7-m/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/;c:/firedect/git/gcc4mbed/gcc-arm-none-eabi/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-O0' '-mcpu=cortex-m3' '-mthumb' '-mthumb-interwork' '-v' '-g3' '-ffunction-sections' '-fdata-sections' '-fno-exceptions' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wno-missing-braces' '-D' 'TARGET_LPC1768' '-D' 'TARGET_M3' '-D' 'TARGET_NXP' '-D' 'TARGET_LPC176X' '-D' 'TARGET_UBLOX_C027' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_FF_ARDUINO' '-D' '__CORTEX_M3' '-D' 'ARM_MATH_CM3' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' '__MBED__=1' '-MMD' '-MP' '-fno-rtti' '-std=gnu++11' '-D' 'MRI_ENABLE=1' '-D' 'MRI_INIT_PARAMETERS="MRI_UART_MBED_USB"' '-D' 'MRI_BREAK_ON_INIT=1' '-D' 'MRI_SEMIHOST_STDIO=1' '-I' '.' '-I' '.' '-I' './.settings' '-I' './UBLOX_C027' '-I' 'C:/firedect/git/gcc4mbed/mri' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/api' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/common' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/cmsis/TOOLCHAIN_GCC' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X' '-I' 'C:/firedect/git/gcc4mbed/external/mbed/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027' '-c' '-o' 'UBLOX_C027/main.o'
Linking UBLOX_C027/gcc4mbed_C027_HelloWorld.elf
Extracting UBLOX_C027/gcc4mbed_C027_HelloWorld.bin
Extracting UBLOX_C027/gcc4mbed_C027_HelloWorld.hex
Extracting disassembly to UBLOX_C027/gcc4mbed_C027_HelloWorld.disasm
text data bss dec hex filename
27692 120 1340 29152 71e0 UBLOX_C027/gcc4mbed_C027_HelloWorld.elf
-
make: *** No rule to make target `LPC1768-deploy', needed by `deploy'. Stop.
14:50:18 Build Finished (took 2s.355ms)
Eclipse shows one more error after building, which seems to be an indexer issue only, but is still unexplainable to me:
Now, thank you so much for reading till here - that's probably already more than I could have expected.
Do you have any idea what I'm doing wrong? I'd be grateful for any suggestion you can make.
Users are seeing the following error text if they attempt to run win_install.cmd when they have Cygwin in their path:
win32\applydiff --binary -p1 <mbed.patch
/usr/bin/sh: win32applydiff: command not found
cs-make: *** [patch_mbed] Error 127
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.