Skip to content

Commit

Permalink
Merge pull request #195 from keepkey/update-libopencm3
Browse files Browse the repository at this point in the history
Update libopencm3
  • Loading branch information
keepkeyjon authored Dec 9, 2019
2 parents 3888f20 + b8bd281 commit fcc4997
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ENV PATH /root/nanopb/generator:$PATH

# Build libopencm3
WORKDIR /root
RUN git clone -b docker-v8 https://github.com/keepkey/libopencm3.git libopencm3
RUN git clone -b docker-v9 https://github.com/keepkey/libopencm3.git libopencm3
WORKDIR /root/libopencm3
RUN make

Expand Down
2 changes: 1 addition & 1 deletion lib/board/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void timer_init(void)

#ifndef EMULATOR
// Set up the timer.
timer_reset(TIM4);
rcc_periph_reset_pulse(RST_TIM4);
timer_enable_irq(TIM4, TIM_DIER_UIE);
timer_set_mode(TIM4, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP);

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/docker/device/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
KEEPKEY_FIRMWARE="$(dirname "$(dirname "$(dirname "$(dirname "$( cd "$(dirname "$0")" ; pwd -P )")")")")"
cd $KEEPKEY_FIRMWARE

IMAGETAG=kktech/firmware:v8
IMAGETAG=kktech/firmware:v9

docker image inspect $IMAGETAG > /dev/null || docker pull $IMAGETAG

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/docker/device/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
KEEPKEY_FIRMWARE="$(dirname "$(dirname "$(dirname "$(dirname "$( cd "$(dirname "$0")" ; pwd -P )")")")")"
cd $KEEPKEY_FIRMWARE

IMAGETAG=kktech/firmware:v8
IMAGETAG=kktech/firmware:v9

docker image inspect $IMAGETAG > /dev/null || docker pull $IMAGETAG

Expand Down
3 changes: 2 additions & 1 deletion tools/blupdater/blupdater.ld
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ SECTIONS
KEEP(*(.header));
} >rom AT >rom
}
INCLUDE libopencm3_stm32f2.ld

INCLUDE cortex-m-generic.ld

SECTIONS
{
Expand Down
2 changes: 1 addition & 1 deletion tools/bootloader/bootloader.ld
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SECTIONS
} >ram
}

INCLUDE libopencm3_stm32f2.ld
INCLUDE cortex-m-generic.ld

SECTIONS
{
Expand Down
4 changes: 1 addition & 3 deletions tools/bootstrap/bootstrap.ld
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ MEMORY
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020000
}



INCLUDE libopencm3_stm32f2.ld
INCLUDE cortex-m-generic.ld

_ram_start = ORIGIN(ram);
_ram_end = ORIGIN(ram) + LENGTH(ram);
Expand Down
2 changes: 1 addition & 1 deletion tools/display_test/display_test.ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ MEMORY
comram (rwx) : ORIGIN = 0x2001F800, LENGTH = 0x800
}

INCLUDE libopencm3_stm32f2.ld
INCLUDE cortex-m-generic.ld

SECTIONS
{
Expand Down
2 changes: 1 addition & 1 deletion tools/firmware/keepkey.ld
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SECTIONS
} >rom AT >rom
}

INCLUDE libopencm3_stm32f2.ld
INCLUDE cortex-m-generic.ld

SECTIONS
{
Expand Down

0 comments on commit fcc4997

Please sign in to comment.