quartiq / kasli-i2c Goto Github PK
View Code? Open in Web Editor NEWUtilities to access the Sinara I2C tree via Kasli, including Sinara EEPROM deployment, firmware flashing for Fastino, Banker
Utilities to access the Sinara I2C tree via Kasli, including Sinara EEPROM deployment, firmware flashing for Fastino, Banker
What content is intended to be placed in the following EEPROM fields:
According to comments in the code, the vendor_data field might be used for storing board serial number or data. However, I see no suggestion what to place in the other three fields. Were they reserved with something specific in mind and if so, has any specific format for it been developed? Or perhaps those fields were created just for 'future development'?
I guess I found the reason why the FPGA couldn't load its configuration from flash when reset (see the no CDONE issue sinara-hw/Fastino#48 (comment))
The lines below need to be swapped - according to the expander datasheet (p. 9) after the enable command is sent, the GPIO ports are configured as quasi-bidirectional, so when the creload function is invoked the CDONE pin is strongly driven low so the FPGA is not able to finish its configuration.
Lines 24 to 25 in e5a1933
Trying to use kasli-i2c
on a Kasli v1.1 since 1b86a25 gives errors like
Traceback (most recent call last):
File "/miniconda/envs/devenv/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/miniconda/envs/devenv/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/workspace/kasli_get_mac.py", line 21, in <module>
with bus.enabled("LOC0"):
File "/miniconda/envs/devenv/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/workspace/kasli.py", line 44, in enabled
self.enable(*ports)
File "/workspace/kasli.py", line 40, in enable
self.write_single(addr, bits[addr])
File "/workspace/i2c_bitbang.py", line 221, in write_single
raise I2CNACK("Address Write NACK", addr)
pyftdi.i2c.I2cNackError: [Errno Address Write NACK] 112
@jordens am I right in thinking that this relates to hardware changes for v2.0? AFAICT for v2.0 we added a second I2C reset line going to the FPGA. This is ORd with the FT232 RESET line using FETs, resulting in a polarity inversion compared with v1.x. i.e. on v1.1 BDBUS 5 directly drives the active-low TCA9548 reset, while on v2.x it drives it via an inverter, so BDBUS 5 is active-high reset.
The current code reflects an active-high reset
Lines 33 to 38 in 1b86a25
The previous code reflects an active-low reset
Lines 33 to 38 in df6a2de
Does that sound about right @jordens or have I got the wrong end of the stick? If so, do you have preferences on a fix (e.g. pass a reset polarity param into I2C
's constructor that's set based on a kasli hw-rev)?
Since eblot/pyftdi@5d4be11#diff-59506818c26b3ffbf38ab767bc9a080c528daee33643289110907e757fa60df1
This means that kasli-i2c
no longer runs on the current version of pyftdi that ships from conda-forge. Should we update this tool to match the latest?
what's the status of phaser flashing here? The code looks to be implemented (although missing a nice CLI, but that's easy to add) but this with False
makes it look like the codepath can never be reached unless I'm missing something?
Line 107 in 8dc751a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.