Merge pull request #1060 from g-oikonomou/cc26xx/contrib/ihex
Produce ihex files usable with TI's Flash Programmer
This commit is contained in:
commit
c9324d133f
|
@ -41,10 +41,11 @@ before_script:
|
||||||
|
|
||||||
## Install mainline ARM toolchain. gcc-arm-none-eabi is available
|
## Install mainline ARM toolchain. gcc-arm-none-eabi is available
|
||||||
## in Ubuntu >= 14.04, but this external PPA is needed for 12.04.
|
## in Ubuntu >= 14.04, but this external PPA is needed for 12.04.
|
||||||
|
## Install srecord
|
||||||
- if [ ${BUILD_ARCH:-0} = arm-aapcs ] ; then
|
- if [ ${BUILD_ARCH:-0} = arm-aapcs ] ; then
|
||||||
sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded &&
|
sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded &&
|
||||||
sudo apt-get -qq update &&
|
sudo apt-get -qq update &&
|
||||||
sudo apt-get -qq install gcc-arm-none-eabi &&
|
sudo apt-get -qq install gcc-arm-none-eabi srecord &&
|
||||||
arm-none-eabi-gcc --version ;
|
arm-none-eabi-gcc --version ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ OBJCOPY = arm-none-eabi-objcopy
|
||||||
OBJDUMP = arm-none-eabi-objdump
|
OBJDUMP = arm-none-eabi-objdump
|
||||||
NM = arm-none-eabi-nm
|
NM = arm-none-eabi-nm
|
||||||
SIZE = arm-none-eabi-size
|
SIZE = arm-none-eabi-size
|
||||||
|
SREC_CAT = srec_cat
|
||||||
|
|
||||||
### TI CC26xxware out-of-tree
|
### TI CC26xxware out-of-tree
|
||||||
### TI_CC26XXWARE is the home directory of the cc26xxware
|
### TI_CC26XXWARE is the home directory of the cc26xxware
|
||||||
|
@ -106,9 +107,12 @@ CUSTOM_RULE_LINK=1
|
||||||
$(TRACE_LD)
|
$(TRACE_LD)
|
||||||
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -lm -o $@
|
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -lm -o $@
|
||||||
|
|
||||||
%.hex: %.elf
|
%.i16hex: %.elf
|
||||||
$(OBJCOPY) -O ihex $< $@
|
$(OBJCOPY) -O ihex $< $@
|
||||||
|
|
||||||
|
%.hex: %.i16hex
|
||||||
|
$(SREC_CAT) $< -intel -o $@ -intel
|
||||||
|
|
||||||
%.bin: %.elf
|
%.bin: %.elf
|
||||||
$(OBJCOPY) $(OBJCOPY_FLAGS) $< $@
|
$(OBJCOPY) $(OBJCOPY_FLAGS) $< $@
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,7 @@ To use the port you need:
|
||||||
[...]
|
[...]
|
||||||
gcc version 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278] (GNU Tools for ARM Embedded Processors)
|
gcc version 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278] (GNU Tools for ARM Embedded Processors)
|
||||||
|
|
||||||
|
* srecord (http://srecord.sourceforge.net/)
|
||||||
* You may also need other drivers so that the SmartRF can communicate with your
|
* You may also need other drivers so that the SmartRF can communicate with your
|
||||||
operating system and so that you can use the chip's UART for I/O. Please read
|
operating system and so that you can use the chip's UART for I/O. Please read
|
||||||
the section ["Drivers" in the CC2538DK readme](https://github.com/contiki-os/contiki/tree/master/platform/cc2538dk#drivers).
|
the section ["Drivers" in the CC2538DK readme](https://github.com/contiki-os/contiki/tree/master/platform/cc2538dk#drivers).
|
||||||
|
|
Loading…
Reference in a new issue