Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Kintex Ultrascale-based Peripheral Board FMC Carrier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
19
Issues
19
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
DIOT Kintex Ultrascale-based Peripheral Board FMC Carrier
Commits
2f1a6668
Commit
2f1a6668
authored
Oct 21, 2022
by
Adrian Byszuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nvm_write() in Si5341 script
parent
3bc8ce6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
configure_si5341.py
sw/scripts/configure_si5341.py
+4
-1
No files found.
sw/scripts/configure_si5341.py
View file @
2f1a6668
...
...
@@ -87,7 +87,7 @@ class si5341:
return
print
(
'Starting NVM burn procedure'
)
self
.
write
(
0xe
2
,
0xc7
)
self
.
write
(
0xe
3
,
0xc7
)
while
self
.
read
(
0xfe
)
!=
0x0F
:
pass
...
...
@@ -98,6 +98,8 @@ class si5341:
new_bank
=
self
.
read
(
0xe2
)
if
(
bank
==
3
and
new_bank
==
15
)
or
(
bank
==
15
and
new_bank
==
63
):
print
(
'NVM programmed properly'
)
else
:
print
(
'NVM programming failed, bank number didn
\'
t change'
)
def
load_from_csv
(
self
,
path
:
Union
[
str
,
Path
])
->
None
:
"""Send device configuration from CSV file generated by ClockBuilder.
...
...
@@ -149,3 +151,4 @@ dev.configure()
fname
=
'Si5341-RevD-CCE-Registers.txt'
print
(
f
'Loading configuration data from {fname}'
)
data
=
dev
.
load_from_csv
(
fname
)
# dev.nvm_write()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment