Skip to content

Commit

Permalink
make it compile with latest libopencm3
Browse files Browse the repository at this point in the history
  • Loading branch information
amitesh-singh committed Jan 6, 2019
1 parent 161f4f7 commit 74f9119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libopencm3_f1.ld
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ MEMORY
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
}

INCLUDE libopencm3_stm32f1.ld
INCLUDE stm32f103xc.ld

2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ srcfiles = ['main.cpp']

libocm3IncPath = libocm3Path + '/include'
libocm3LibPath = libocm3Path + '/lib'
libocm3LdPath = libocm3Path + '/lib/stm32/f1'

# check for libopencm3 library
libocm3lib_obj = compiler_obj.find_library(libocm3cputype, required: true, dirs: libocm3LibPath)
Expand Down Expand Up @@ -82,6 +83,7 @@ stm32f1linkargs = ['-Os',
'-nostartfiles',
'-Wl,--gc-sections',
'-L' + libocm3LibPath,
'-L' + libocm3LdPath,
# '-l' + libocm3cputype,
]

Expand Down

0 comments on commit 74f9119

Please sign in to comment.