Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

greatfet_logic broken when using num channels != 1, 8 #367

Open
docprofsky opened this issue Feb 18, 2021 · 0 comments
Open

greatfet_logic broken when using num channels != 1, 8 #367

docprofsky opened this issue Feb 18, 2021 · 0 comments
Labels

Comments

@docprofsky
Copy link
Contributor

Using greatfet_logic with the number of channels (-n) not equal to 8 or 1 results in the below error.
[Errno 5] Input/Output Error

I have done testing and I believe this error was introduced by e3f25fd.

Below is the dmesg log from the GreatFET after running greatfet_logic -n 5 -f 10e6 -o /dev/null --debug

[------------] System started after hard reset / power cycle.
[      117740] System clock bringup complete.
[      117773] Configuring board pins...
[      117821] GreatFET initialization complete!
[     1997245] jtag: using half-period delay of 0 microseconds to achieve frequency of 405000
[     1997856] sgpio: warning: cannot create a %hhu-bit bus; creating an 8-bit bus instead.
[     1998183] --- SGPIO state dump (1 functions) --- 
[     1998197] ======================== 
[     1998208] 
[     1998215] Software function configuration: 
[     1998227]     function 0: STREAM IN   io slice: A /  0  buffer order/size: 15/32768  buffer position: 0
[     1998263] 
[     1998270] Pin configuration: 
[     1998280]     pin usage mask: 0x001f
[     1998292]     GPIO output enable: 0000
[     1998305]     SGPIO 0:  INPUT                        
[     1998325]     SGPIO 1:  INPUT                        
[     1998345]     SGPIO 2:  INPUT                        
[     1998365]     SGPIO 3:  INPUT                        
[     1998385]     SGPIO 4:  INPUT                        
[     1998406] 
[     1998413] Slice configuration: 
[     1998424]     slice usage mask: 0x0f35
[     1998436]     slice[ 0] / A: 8-bit parallel    input: external pin             clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts  [IRQ]
[     1998486]     slice[ 2] / C: 8-bit parallel    input: slice J (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998540]     slice[ 4] / E: 8-bit parallel    input: slice I (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998592]     slice[ 5] / F: 8-bit parallel    input: slice K (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998647]     slice[ 8] / I: 8-bit parallel    input: slice A (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998698]     slice[ 9] / J: 8-bit parallel    input: slice E (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998751]     slice[10] / K: 8-bit parallel    input: slice C (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998805]     slice[11] / L: 8-bit parallel    input: slice F (chain 8 deep)   clock: counter, div:  19/ 20   shifts: always   data/shadow swap every  32 shifts 
[     1998861] 
[     1998868] Slice contents: 
[     1998877]     slice[ 0] / A:     data: 00000000    shadow: 00000000
[     1998901]     slice[ 2] / C:     data: 00000000    shadow: 00000000
[     1998925]     slice[ 4] / E:     data: 00000000    shadow: 00000000
[     1998949]     slice[ 5] / F:     data: 00000000    shadow: 00000000
[     1998974]     slice[ 8] / I:     data: 00000000    shadow: 00000000
[     1998998]     slice[ 9] / J:     data: 00000000    shadow: 00000000
[     1999022]     slice[10] / K:     data: 00000000    shadow: 00000000
[     1999046]     slice[11] / L:     data: 00000000    shadow: 00000000
[    12866005] jtag: using half-period delay of 0 microseconds to achieve frequency of 405000

@straithe straithe added the bug label Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants