Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Jonas Leder
marlin-anet-a8
Commits
9d545f12
Unverified
Commit
9d545f12
authored
4 years ago
by
Eric Ptak
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fysetc S6 direct DFU upload (#17943)
parent
3381a4ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
+0
-22
0 additions, 22 deletions
buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
platformio.ini
+2
-2
2 additions, 2 deletions
platformio.ini
with
2 additions
and
24 deletions
buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
+
0
−
22
View file @
9d545f12
...
...
@@ -31,25 +31,3 @@ for file_name in os.listdir(source_dir):
full_file_name
=
os
.
path
.
join
(
source_dir
,
file_name
)
if
os
.
path
.
isfile
(
full_file_name
):
shutil
.
copy
(
full_file_name
,
variant_dir
)
# Relocate firmware from 0x08000000 to 0x08002000
#env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
#env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000"))
#env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/fysetc_aio_ii.ld")
# Custom HEX from ELF
env
.
AddPostAction
(
"
$BUILD_DIR/${PROGNAME}.elf
"
,
env
.
VerboseAction
(
"
"
.
join
([
"
$OBJCOPY
"
,
"
-O
"
,
"
ihex
"
,
"
$BUILD_DIR/${PROGNAME}.elf
"
,
"
$BUILD_DIR/${PROGNAME}.hex
"
]),
"
Building $TARGET
"
))
# In-line command with arguments
env
.
Replace
(
UPLOADER
=
platform
.
get_package_dir
(
"
tool-stm32duino
"
)
+
'
/stm32flash/stm32flash
'
,
UPLOADCMD
=
'"
${UPLOADER}
"
-v -i rts,-dtr,dtr,-rts -R -b 115200 -g 0x8000000 -w
"
${BUILD_DIR}/${PROGNAME}.hex
"
${UPLOAD_PORT}
'
)
This diff is collapsed.
Click to expand it.
platformio.ini
+
2
−
2
View file @
9d545f12
...
...
@@ -729,8 +729,8 @@ extra_scripts = pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
src_filter
=
${common.default_src_filter} +<src/HAL/STM32>
lib_ignore
=
Arduino-L6470, SoftwareSerial
debug_tool
=
stlink
#
upload_protocol =
stlink
upload_
protocol
=
serial
upload_protocol
=
dfu
upload_
command
=
dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
#
# STM32F407VET6 with RAMPS-like shield
...
...
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