Replies: 7 comments 6 replies
-
You can use scp or better rsync to copy your Output-Folder to the raspberry You do not need to change any speed settings, all should works as it is the blinking LED is to see if the FPGA works (1Hz fixed). please use the python tool to test the SPI connection:
there you can also see the SPI response. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that the rio.c in my Output folder has the pin for CS/CE0 set (RPI_GPIO_P1_24) and not CS1 (RPI_GPIO_P1_26) per the BOB board and the readme/install document for the tang 9k. the comment also says //CS0 Is this an error with the config or template? |
Beta Was this translation helpful? Give feedback.
-
if you remove a zero in the clock value, than the LED runs faster (10Hz) because the real crystal keeps the same speed, the right CS connection is:
the rio.c looks a little confusing, i have to clean it |
Beta Was this translation helpful? Give feedback.
-
can i setup a blink on one of the 3.3v pins to see if they are working? My scope is a DS1054, not sure I can see super fast signals. what else can I probe to see if it is alive? |
Beta Was this translation helpful? Give feedback.
-
whats wrong with the blinking LED ? |
Beta Was this translation helpful? Give feedback.
-
This was super helpful, it helped eliminate the 9k as the issue. I updated/loaded this and it was blinking everything great! Then, despite me checking my adapter board at least 15 times, I pulled it out and slapped in the crappy dupont wires. Snap, worked great so it was my diy adapter board... Need to get it under the scope to see WTF is wrong with it and why continuity testing didn't identify issues. I want to see how it behaves with the CE/CS0 pin set back to the original value. this may have been a combination of my home made pcb and that pin in the rio.c halcomponent. This is likely a pretty good troubleshooting step. |
Beta Was this translation helpful? Give feedback.
-
Another oddity is that after i ran the first test of the linuxcnc logo gcode the x step pin was kinda flopping on/off every 5-6 seconds. it stopped after i hit the machine power gui btn.... Very odd. |
Beta Was this translation helpful? Give feedback.
-
Ok, i made a new board and setup for SPI0 and got it out of e-stop and ran the test gcode. Then I hooked up my scope, saw a brief set of stepper pulses and then poof it stopped working. I can connect via the gowin programmer, i reprogrammed it, but qt_spitest just shows 0 repose bytes and I'm at a loss as to how to do anything else.
Is there any way to ensure the board is alive? The blink on pin 10, is that the blinking orange LED on the tang nano 9k? I'm a complete noob in FPGA land and I have not the clue to figurate a first place to test/troubleshoot this board. I'm not even sure how to reset it beyond plug/unplug.
Is there any way to get serial or status from the 9k?
since the loader doesn't work on the pi, i'm not sure if I should run stuff on the pi or on my PC. I had to SCP over the Output folders. is this the right way to do it?
If i want to reduce the SPI speed for trobleshooting do I just do that in the qt_spitest app, or do I need to update the 9k build and reflash?
is there any documentation of the led's/status codes/blink codes?
is the default spi=on ok for the /boot/config.txt? It seems this uses CS/CE1 but when I run
I don't see the CE pins, based on a previous comment and the rio.c halcomponent it looks like you manually control the CS pin directly, not sure the implications of the different pin mappings for PI 2,3,4,5 since it is using a different constant referencing the chip pin and not the coloquial GPIO numbering.
testing via spi_test shows;
Same for /dev/spidev0.0
Is spidev ok or should it be disabled?
Beta Was this translation helpful? Give feedback.
All reactions