1
1
# README
2
2
3
- [ ![ Gitter channel ] ( https://badges.gitter.im/libopencm3/discuss.svg )] ( https://gitter.im/libopencm3/discuss )
3
+ This repository contains assorted example projects for unicore-mx.
4
4
5
- This repository contains assorted example projects for libopencm3.
6
-
7
- The libopencm3 project aims to create an open-source firmware library for
5
+ The unicore-mx project aims to create an open-source firmware library for
8
6
various ARM Cortex-M microcontrollers.
9
7
10
- For more information visit http://libopencm3.org
11
-
12
8
The examples are meant as starting points for different subsystems on multitude
13
9
of platforms.
14
10
@@ -26,10 +22,10 @@ For more verbose output, to see compiler command lines, use "make V=1"
26
22
For insanity levels of verboseness, use "make V=99"
27
23
28
24
The makefiles are generally useable for your own projects with
29
- only minimal changes for the libopencm3 install path (See Reuse)
25
+ only minimal changes for the unicore-mx install path (See Reuse)
30
26
31
27
## Make Flash Target
32
- For flashing the 'miniblink' example (after you built libopencm3 and the
28
+ For flashing the 'miniblink' example (after you built unicore-mx and the
33
29
examples by typing 'make' at the top-level directory) onto the Olimex
34
30
STM32-H103 eval board (ST STM32F1 series microcontroller), you can execute:
35
31
@@ -120,63 +116,63 @@ This example uses the st-util by texane that you can find on [GitHub](https://gi
120
116
121
117
## Reuse
122
118
123
- If you want to use libopencm3 in your own project, this examples repository
119
+ If you want to use unicore-mx in your own project, this examples repository
124
120
shows the general way. (If there's interest, we can make a stub template
125
121
repository)
126
122
127
123
1 . Create an empty repository
128
124
129
125
mkdir mycoolrobot && cd mycoolrobot && git init .
130
126
131
- 2 . Add libopencm3 as a submodule
127
+ 2 . Add unicore-mx as a submodule
128
+
129
+ git submodule add https://github.com/insane-adding-machines/unicore-mx
132
130
133
- git submodule add https://github.com/libopencm3/libopencm3
134
-
135
131
136
132
3 . Grab a copy of the basic rules
137
- These urls grab the latest from the libopencm3 -examples repository
133
+ These urls grab the latest from the unicore-mx -examples repository
138
134
139
135
wget \
140
- https://raw.githubusercontent.com/libopencm3/libopencm3 -examples/master/examples/Makefile.rules \
141
- -O libopencm3 .rules.mk
136
+ https://raw.githubusercontent.com/insane-adding-machines/unicore-mx -examples/master/examples/Makefile.rules \
137
+ -O unicore-mx .rules.mk
142
138
143
139
4 . Grab a copy of your target Makefile in this case, for STM32L1
144
140
145
- wget \
146
- https://raw.githubusercontent.com/libopencm3/libopencm3- examples/master/examples/stm32/l1/Makefile.include \
147
- -O libopencm3 .target.mk
141
+ wget \
142
+ https://raw.githubusercontent.com/insane-adding-machines/unicore-mx- examples/master/examples/stm32/l1/Makefile.include \
143
+ -O unicore-mx .target.mk
148
144
149
- 5 . Edit paths in ` libopencm3 .target.mk`
150
- Edit the _ last_ line of ` libopencm3 .target.mk` and change the include to read
151
- include ` ../libopencm3 .rules.mk ` (the amount of .. depends on where you put your
145
+ 5 . Edit paths in ` unicore-mx .target.mk`
146
+ Edit the _ last_ line of ` unicore-mx .target.mk` and change the include to read
147
+ include ` ../unicore-mx .rules.mk ` (the amount of .. depends on where you put your
152
148
project in the next step..
153
149
154
150
6 . beg/borrow/steal an example project
155
151
For sanity's sake, use the same target as the makefile you grabbed up above)
156
152
157
153
cp -a \
158
- somewhere/libopencm3 -examples/examples/stm32/l1/stm32ldiscovery/miniblink \
154
+ somewhere/unicore-mx -examples/examples/stm32/l1/stm32ldiscovery/miniblink \
159
155
myproject
160
156
161
- Add the path to OPENCM3 \_ DIR, and modify the path to makefile include
157
+ Add the path to UCMX \_ DIR, and modify the path to makefile include
162
158
163
159
164
160
diff -u
165
161
---
166
162
2014-01-24 21:10:52.687477831 +0000
167
163
+++ Makefile 2014-03-23 12:27:57.696088076 +0000
168
164
@@ -19,7 +19,8 @@
169
-
165
+
170
166
BINARY = miniblink
171
-
172
- +OPENCM3_DIR =../libopencm3
173
- LDSCRIPT = $(OPENCM3_DIR )/lib/stm32/l1/stm32l15xxb.ld
174
-
167
+
168
+ +UCMX_DIR =../unicore-mx
169
+ LDSCRIPT = $(UCMX_DIR )/lib/stm32/l1/stm32l15xxb.ld
170
+
175
171
-include ../../Makefile.include
176
- +include ../libopencm3 .target.mk
177
-
172
+ +include ../unicore-mx .target.mk
173
+
178
174
You're done :)
179
175
180
- You need to run "make" inside the libopencm3 directory once to build the
176
+ You need to run "make" inside the unicore-mx directory once to build the
181
177
library, then you can just run make/make clean in your project directory as
182
178
often as you like.
0 commit comments