Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
7df4872d
Commit
7df4872d
authored
2 months ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
add ARIEL ASW upload script
parent
dbf65831
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ccs/scripts/ARIEL/upload_ASW.py
+22
-0
22 additions, 0 deletions
Ccs/scripts/ARIEL/upload_ASW.py
with
22 additions
and
0 deletions
Ccs/scripts/ARIEL/upload_ASW.py
0 → 100644
+
22
−
0
View file @
7df4872d
"""
Template for uploading the ASW binary to ARIEL DPU
"""
import
Ccs.tools.asw_upload.asw_image_lib_ariel
as
ail
POOLNAME
=
"
LIVE
"
binary
=
"
/home/marko/space/ariel/asw_images/flightos_v1.0b.elf
"
#! CCS.BREAKPOINT
memid
=
2
# memory ID
start_addr
=
0x40000000
# start address/entry point of ASW in RAM
asw
=
ail
.
AswImage
(
memid
,
start_addr
,
binary
,
skip_bytes
=
65536
)
#! CCS.BREAKPOINT
mem_addr
=
0x80000
# address where the data is uploaded to (relative to base address of memid)
cfl
.
load_to_memory
(
asw
.
img
,
memid
,
mem_addr
,
max_pkt_size
=
1024
,
progress
=
True
,
calc_crc
=
True
,
byte_align
=
4
,
pool_name
=
POOLNAME
)
#! CCS.BREAKPOINT
MemoryID16
=
'
MRAM
'
# JA0H0124
# N = 1 # JA0H0042 [NOT EDITABLE]
StartAddress
=
mem_addr
# JA0H0125
Length
=
asw
.
size
# JA0H0123
cfl
.
Tcsend_DB
(
'
SASW CheckMemData
'
,
MemoryID16
,
StartAddress
,
Length
,
pool_name
=
POOLNAME
)
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