kopia lustrzana https://github.com/bristol-seds/pico-tracker
Merge branch 'master' of https://github.com/richardeoin/samd20-gcc-blackmagic into toolchain-staging
commit
f7140e0d74
|
@ -1,5 +1,5 @@
|
||||||
Much of the source code in this project is licensed by ARM or Atmel
|
Much of the source code in this project is licensed by ARM or Atmel
|
||||||
wuth a modified 3-clause BSD license. See file headers for more details.
|
with a modified 3-clause BSD license. See file headers for more details.
|
||||||
|
|
||||||
Everything else is under a
|
Everything else is under a
|
||||||
[MIT License](http://opensource.org/licenses/MIT) as follows:
|
[MIT License](http://opensource.org/licenses/MIT) as follows:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Compiles firmware written in C and assembler for the nRF51
|
# Compiles firmware written in C and assembler for the Atmel SAM D20
|
||||||
# Copyright (C) 2014
|
# Copyright (C) 2014
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
# Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
@ -214,7 +214,7 @@ gdbscript: Makefile config.mk
|
||||||
@$(ECHO) "file $(TARGET).elf" >> gdbscript
|
@$(ECHO) "file $(TARGET).elf" >> gdbscript
|
||||||
ifdef BLACKMAGIC_PATH
|
ifdef BLACKMAGIC_PATH
|
||||||
@$(ECHO) "# Connect to a specified blackmagic" >> gdbscript
|
@$(ECHO) "# Connect to a specified blackmagic" >> gdbscript
|
||||||
@$(ECHO) "target external-remote $(BLACKMAGIC_PATH)" >> gdbscript
|
@$(ECHO) "target extended-remote $(BLACKMAGIC_PATH)" >> gdbscript
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Prints a list of symlinks to a device
|
# Prints a list of symlinks to a device
|
||||||
|
@ -248,4 +248,4 @@ emacs:
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OUTPUT_PATH)*
|
$(RM) $(OUTPUT_PATH)*
|
||||||
$(RM) gdbscript
|
$(RM) gdbscript
|
||||||
$(RM) TAGS
|
$(RM) TAGS
|
||||||
|
|
|
@ -20,6 +20,22 @@ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
|
||||||
sudo apt-get update && sudo apt-get install gcc-arm-none-eabi
|
sudo apt-get update && sudo apt-get install gcc-arm-none-eabi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Note about gcc-arm-embedded on Ubuntu 14.04 and later
|
||||||
|
|
||||||
|
If you are using Ubuntu 14.04 and later, please be careful because
|
||||||
|
there are packages with same name but produced by Debian and inherited
|
||||||
|
by Ubuntu. Simply follow the above 3 steps, you may end up with
|
||||||
|
gcc-arm-none-eabi from Ubuntu. So to install gcc-arm-none-eabi from
|
||||||
|
ARM, steps are:
|
||||||
|
|
||||||
|
```
|
||||||
|
1). sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
|
||||||
|
2). sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
|
||||||
|
3). sudo apt-get update
|
||||||
|
4). sudo apt-get install gcc-arm-none-eabi=4-8-2014q2-0trusty10
|
||||||
|
```
|
||||||
|
Meanwhile we are working with Debian to consolidate and unify this toolchain.
|
||||||
|
|
||||||
## Usage ##
|
## Usage ##
|
||||||
|
|
||||||
### Project Options ###
|
### Project Options ###
|
||||||
|
|
|
@ -44,7 +44,9 @@
|
||||||
* __data_start
|
* __data_start
|
||||||
* __data_end
|
* __data_end
|
||||||
* __bss_start
|
* __bss_start
|
||||||
|
* __bss_start__
|
||||||
* __bss_end
|
* __bss_end
|
||||||
|
* __bss_end__
|
||||||
* __end__
|
* __end__
|
||||||
* end
|
* end
|
||||||
* __heap_start
|
* __heap_start
|
||||||
|
@ -134,10 +136,12 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
|
__bss_start__ = __bss_start;
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
|
__bss_end__ = __bss_end;
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
.heap (COPY):
|
.heap (COPY):
|
||||||
|
|
Ładowanie…
Reference in New Issue