Skip to content

Commit

Permalink
Hack for stock bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
perillamint committed Sep 19, 2017
1 parent 90eb8d1 commit 1a7b662
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <libopencm3/stm32/i2c.h>
#include <libopencm3/stm32/flash.h>
#include <libopencm3/cm3/systick.h>
#include <libopencm3/cm3/scb.h>

#include "systick.h"
#include "crc32.h"
Expand Down Expand Up @@ -67,7 +68,8 @@ void keydnup(void) {

int main(void)
{
rcc_clock_setup_in_hsi_out_48mhz();
SCB_VTOR=0x4000;
rcc_clock_setup_in_hsi_out_48mhz();

systick_init(48000000);
i2c_init();
Expand Down

0 comments on commit 1a7b662

Please sign in to comment.