-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.mu4
46 lines (39 loc) · 1.5 KB
/
build.mu4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| This file is part of muforth: https://muforth.dev/
|
| Copyright 2002-2024 David Frech. (Read the LICENSE for details.)
( Load the PIC18 build environment.)
ld target/common/serial.mu4 ( needed for chat and serial bootloader)
ld lib/host-prompt.mu4 ( helpful prompt when in host mode)
ld target/common/equates.mu4 ( common definitions needed for chip equates)
ld target/PIC18/device/supported.mu4
ld target/common/chains.mu4 ( common metacompiler chains and token consumers)
ld target/PIC18/memory.mu4 ( basic target memory management)
ld target/PIC18/asm.mu4
ld target/PIC18/disasm.mu4
ld target/PIC18/meta.mu4 ( metacompiler, baby!)
ld target/PIC18/interact.mu4 ( interaction with target)
.def 14K50 .def 13K50 .or .if
( For now, this will only work with a connected S08 programmer.)
-d via-s08
( NOTE: For now assuming serial target!)
.ifdef via-s08
ld target/S08/firmware-map.mu4
ld target/S08/chat-host.mu4
ld target/S08/pic18prog-serial-host.mu4
.then
ld target/PIC18/pic18prog.mu4
.else ( For now, this means PIC18-Q.)
( We currently can only program these via STM32 Discovery board.)
ld target/ARM/debug/stlink-v2.mu4
.ifdef stlink
-d pic18f-q
ld target/PIC18/prog-via-spi.mu4 ( flash programming over SPI)
.then
.else
.then
ld target/PIC18/flash.mu4 ( flash programming over chat)
ld target/PIC18/chat-serial-host.mu4
( These settings will stick around if we're loaded with ld!)
__meta
hex
flash