Compare commits
7 Commits
v1.0.0
...
chore-chan
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ae1ff231d | ||
|
|
0ca41901b5 | ||
|
|
85892581f7 | ||
|
|
924f0eb186 | ||
|
|
c09030233e | ||
|
|
d58e192cfb | ||
|
|
8a67901ae9 |
33
.travis.yml
33
.travis.yml
@@ -1,17 +1,24 @@
|
|||||||
language: generic
|
language: generic
|
||||||
os: osx
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/Library/Caches/Homebrew/Cask
|
- $HOME/Library/Caches/Homebrew/Cask
|
||||||
install:
|
install: eclipse -noSplash
|
||||||
- brew cask install eclipse-cpp gcc-arm-embedded
|
-application org.eclipse.equinox.p2.director
|
||||||
- /Applications/Eclipse.app/Contents/MacOS/eclipse -noSplash
|
-repository http://gnuarmeclipse.sourceforge.net/updates
|
||||||
-application org.eclipse.equinox.p2.director
|
-installIUs ilg.gnuarmeclipse.managedbuild.cross.feature.group
|
||||||
-repository http://gnuarmeclipse.sourceforge.net/updates
|
-profileProperties org.eclipse.update.install.features=true
|
||||||
-installIUs ilg.gnuarmeclipse.managedbuild.cross.feature.group
|
script: eclipse -noSplash
|
||||||
-profileProperties org.eclipse.update.install.features=true
|
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
|
||||||
script:
|
-import $TRAVIS_BUILD_DIR/targets/MK22F51212/kds/freedom_bootloader
|
||||||
- /Applications/Eclipse.app/Contents/MacOS/eclipse -noSplash
|
-build all
|
||||||
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
|
matrix:
|
||||||
-import $TRAVIS_BUILD_DIR/targets/MK22F51212/kds/freedom_bootloader
|
include:
|
||||||
-build all
|
- os: linux
|
||||||
|
sudo: required
|
||||||
|
before_install:
|
||||||
|
- curl https://nixos.org/nix/install | sh && . ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
- nix-env -i gcc-arm-embedded-4.8-2014q1-20140314
|
||||||
|
- nix-env -i eclipse-cpp
|
||||||
|
- os: osx
|
||||||
|
env: PATH="$PATH:/Applications/Eclipse CPP.app/Contents/MacOS"
|
||||||
|
before_install: brew update && brew bundle -v
|
||||||
|
|||||||
13
CHANGELOG.md
Normal file
13
CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [1.0.1] - 2018-01-25
|
||||||
|
|
||||||
|
- Disable NMI pin. Set LPBOOT flag to 1.
|
||||||
|
|
||||||
|
## [1.0.0] - 2017-11-18
|
||||||
|
|
||||||
|
- First release
|
||||||
Binary file not shown.
35
gcc-arm-embedded.rb
Normal file
35
gcc-arm-embedded.rb
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
cask 'gcc-arm-embedded' do
|
||||||
|
version '4_8-2014q3'
|
||||||
|
sha256 '6b30901738b09a8d22fdfff99e991217444b80ac492a6163af5c06a3baaa3487'
|
||||||
|
|
||||||
|
# launchpad.net/gcc-arm-embedded/ was verified as official when first introduced to the cask
|
||||||
|
url "https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update/+download/gcc-arm-none-eabi-#{version}-20140805-mac.tar.bz2"
|
||||||
|
name 'GCC ARM Embedded'
|
||||||
|
homepage 'https://developer.arm.com/open-source/gnu-toolchain/gnu-rm'
|
||||||
|
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-addr2line"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-ar"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-as"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-c++"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-c++filt"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-cpp"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-elfedit"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-g++"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gcc"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gcc-ar"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gcc-nm"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gcc-ranlib"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gcov"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gdb"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-gprof"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-ld"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-ld.bfd"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-nm"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-objcopy"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-objdump"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-ranlib"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-readelf"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-size"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-strings"
|
||||||
|
binary "gcc-arm-none-eabi-#{version}/bin/arm-none-eabi-strip"
|
||||||
|
end
|
||||||
@@ -360,7 +360,7 @@ __isr_vector:
|
|||||||
.long 0x01020304 /* First 4 bytes of the Backdoor key. Not used */
|
.long 0x01020304 /* First 4 bytes of the Backdoor key. Not used */
|
||||||
.long 0x05060708 /* Next 4 bytes of the Backdoor key */
|
.long 0x05060708 /* Next 4 bytes of the Backdoor key */
|
||||||
.long 0xFFFFFFF8 /* Program flash protection bytes */
|
.long 0xFFFFFFF8 /* Program flash protection bytes */
|
||||||
.long 0xFFFFFC95 /* FSEC byte, FOPT byte, Reserved, Reserved */
|
.long 0xFFFFF995 /* FSEC byte, FOPT byte, Reserved, Reserved */
|
||||||
|
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ enum _target_version_constants
|
|||||||
kTarget_Version_Name = 'T',
|
kTarget_Version_Name = 'T',
|
||||||
kTarget_Version_Major = 1,
|
kTarget_Version_Major = 1,
|
||||||
kTarget_Version_Minor = 0,
|
kTarget_Version_Minor = 0,
|
||||||
kTarget_Version_Bugfix = 0,
|
kTarget_Version_Bugfix = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __TARGET_CONFIG_H__
|
#endif // __TARGET_CONFIG_H__
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -38,8 +38,8 @@ INCLUDES += $(BOOT_ROOT)/validation/blhost/src \
|
|||||||
$(BOOT_ROOT)/src/drivers/common \
|
$(BOOT_ROOT)/src/drivers/common \
|
||||||
$(BOOT_ROOT)/src/bm_usb
|
$(BOOT_ROOT)/src/bm_usb
|
||||||
|
|
||||||
CXXFLAGS := -D LINUX -D BOOTLOADER_HOST -std=c++11
|
CXXFLAGS := -D LINUX -D BOOTLOADER_HOST -std=c++11 -march=x86-64 -mtune=generic
|
||||||
CFLAGS := -std=c99 -D LINUX -D BOOTLOADER_HOST -D _GNU_SOURCE
|
CFLAGS := -std=c99 -D LINUX -D BOOTLOADER_HOST -D _GNU_SOURCE -mtune=generic -march=x86-64
|
||||||
LD := g++
|
LD := g++
|
||||||
|
|
||||||
SOURCES := $(BOOT_ROOT)/validation/blhost/src/blhost.cpp \
|
SOURCES := $(BOOT_ROOT)/validation/blhost/src/blhost.cpp \
|
||||||
@@ -199,7 +199,7 @@ $(MAKE_TARGET): $(OBJECTS_ALL)
|
|||||||
@$(call printmessage,link,Linking, $(APP_NAME))
|
@$(call printmessage,link,Linking, $(APP_NAME))
|
||||||
$(at)$(LD) $(LDFLAGS) \
|
$(at)$(LD) $(LDFLAGS) \
|
||||||
$(OBJECTS_ALL) \
|
$(OBJECTS_ALL) \
|
||||||
-lc -lstdc++ -lm -ludev \
|
-static -lc -lstdc++ -lm -ludev -lrt \
|
||||||
-o $@
|
-o $@
|
||||||
@echo "Output binary:" ; echo " $(APP_NAME)"
|
@echo "Output binary:" ; echo " $(APP_NAME)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user