Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Commits
946db125
Commit
946db125
authored
5 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
MSP430FR*: Configurable debug and serial port
parent
3866ed99
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/arch/msp430fr5969lp/Makefile.inc
+10
-4
10 additions, 4 deletions
src/arch/msp430fr5969lp/Makefile.inc
src/arch/msp430fr5994lp/Makefile.inc
+9
-3
9 additions, 3 deletions
src/arch/msp430fr5994lp/Makefile.inc
with
19 additions
and
7 deletions
src/arch/msp430fr5969lp/Makefile.inc
+
10
−
4
View file @
946db125
...
...
@@ -3,7 +3,10 @@
CPU
=
430x
MCU
=
msp430fr5969
cpu_freq
?=
16000000
DEBUG_PORT
?=
ttyACM0
SERIAL_PORT
?=
ttyACM1
cpu_freq
?=
8000000
MSP430_FLASHER_DIR
?=
/home/derf/var/projects/msp430/MSP430Flasher_1.3.7
...
...
@@ -90,6 +93,7 @@ build/system.hex: build/system.elf
program
:
build/system.hex
${
QUIET
}
LD_LIBRARY_PATH
=
${
MSP430_FLASHER_DIR
}
\
${
MSP430_FLASHER_DIR
}
/MSP430Flasher
\
-i
${
DEBUG_PORT
}
\
-w
build/system.hex
-v
-g
-z
'[VCC]'
arch_clean
:
...
...
@@ -97,11 +101,13 @@ arch_clean:
${
QUIET
}
rm
-f
build/system.hex
monitor
:
${
QUIET
}
screen /dev/
ttyACM1
115200
${
QUIET
}
screen /dev/
${
SERIAL_PORT
}
115200
arch_help
:
@
echo
"msp430fr5969lp specific flags:"
@
echo
" cpu_freq = 16000000 (desired CPU frequency in Hz)"
@
echo
" DEBUG_PORT =
${
DEBUG_PORT
}
"
@
echo
" SERIAL_PORT =
${
SERIAL_PORT
}
"
@
echo
" cpu_freq =
${
cpu_freq
}
(desired CPU frequency in Hz)"
@
echo
" supported frequencies: 1 / 4 / 8 / 16 MHz"
@
echo
" MSP430_FLASHER_DIR = /home/derf/var/projects/msp430/MSP430Flasher_1.3.7"
@
echo
" (required for flashing, must contain libmsp430.so and MSP430Flasher)"
...
...
@@ -111,6 +117,6 @@ arch_info:
@
echo
"Timer Freq:
${
timer_freq
}
Hz ->
$(
shell src/arch/msp430fr5969lp/model.py f_timer "
${
cpu_freq
}
" "
${
timer_freq
}
"
)
"
@
echo
"I2C Freq:
${
i2c_freq
}
Hz"
@
echo
"Counter Overflow: 65536/255"
@
echo
"Monitor: /dev/
ttyACM1
115200"
@
echo
"Monitor: /dev/
${
SERIAL_PORT
}
115200"
.PHONY
:
arch_clean arch_help arch_info monitor program
This diff is collapsed.
Click to expand it.
src/arch/msp430fr5994lp/Makefile.inc
+
9
−
3
View file @
946db125
...
...
@@ -3,6 +3,9 @@
CPU
=
430x
MCU
=
msp430fr5994
DEBUG_PORT
?=
ttyACM0
SERIAL_PORT
?=
ttyACM1
cpu_freq
?=
8000000
MSP430_FLASHER_DIR
?=
/home/derf/var/projects/msp430/MSP430Flasher_1.3.15
...
...
@@ -94,6 +97,7 @@ build/system.hex: build/system.elf
program
:
build/system.hex
${
QUIET
}
LD_LIBRARY_PATH
=
${
MSP430_FLASHER_DIR
}
\
${
MSP430_FLASHER_DIR
}
/MSP430Flasher
\
-i
${
DEBUG_PORT
}
\
-w
build/system.hex
-v
-g
-z
'[VCC]'
arch_clean
:
...
...
@@ -101,11 +105,13 @@ arch_clean:
${
QUIET
}
rm
-f
build/system.hex
monitor
:
${
QUIET
}
screen /dev/
ttyACM1
115200
${
QUIET
}
screen /dev/
${
SERIAL_PORT
}
115200
arch_help
:
@
echo
"msp430fr5994lp specific flags:"
@
echo
" cpu_freq = 16000000 (desired CPU frequency in Hz)"
@
echo
" DEBUG_PORT =
${
DEBUG_PORT
}
"
@
echo
" SERIAL_PORT =
${
SERIAL_PORT
}
"
@
echo
" cpu_freq =
${
cpu_freq
}
(desired CPU frequency in Hz)"
@
echo
" supported frequencies: 1 / 4 / 8 / 16 MHz"
@
echo
" MSP430_FLASHER_DIR = /home/derf/var/projects/msp430/MSP430Flasher_1.3.15"
@
echo
" (required for flashing, must contain libmsp430.so and MSP430Flasher)"
...
...
@@ -115,6 +121,6 @@ arch_info:
@
echo
"Timer Freq:
${
timer_freq
}
Hz ->
$(
shell src/arch/msp430fr5994lp/model.py f_timer "
${
cpu_freq
}
" "
${
timer_freq
}
"
)
"
@
echo
"I2C Freq:
${
i2c_freq
}
Hz"
@
echo
"Counter Overflow: 65536/255"
@
echo
"Monitor: /dev/
ttyACM1
115200"
@
echo
"Monitor: /dev/
${
SERIAL_PORT
}
115200"
.PHONY
:
arch_clean arch_help arch_info monitor program
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment