Closed 12ff7a6 closed 2 years ago
update: have already generated the Arty bitstream by using local host.
update: have already booted on Arty A7 100T. But didn't receive any response in terminal. is A7 35T a must? or have I done something wrong?
I don't believe Arty has a UART connection to send a terminal since it is a pretty small device/setup. We only support what is in the docs which is JTAG: https://chipyard.readthedocs.io/en/1.5.0/Prototyping/Arty.html
@12ff7a6 Are you uploading a program to the FPGA? After generating the bitstream, you need to give the FPGA something to run. There is no default / hello world application included. I use sifive/freedom-e-sdk and a JTAG debugger to send programs to the FPGA.
Edit: If you are targeting the A7-100T, you probably need to edit the "BOARD" parameter in the Makefile from "arty" to "arty-a7-100". I only have the A7 35T, so I can't confirm that this will work.
hi , alexdlukens
I have generated .mcs file and download it to Arty 100T board , also a hello world program have download to the flash ,and I successfully saw the "hello".
but when I upload a new binary program via freedom-e-sdk , I encountered a problem like this : Error: Debug Module did not become active. dmcontrol=0x0 Warn : target riscv.cpu examination failed Info : starting gdb server for riscv.cpu on 3333 Info : Listening on port 3333 for gdb connections Error: Target not examined yet
what can I do to resolve the problem?
@abejgonzalez @alexdlukens
hope for your reply. Thanks
@JACKLIAO0 It seems that your computer could not connect to the JTAG Debug module created by Chipyard. What JTAG debugger are you using to connect to the FPGA? The the one I used with the Freedom-E-SDK project is the Olimex JTAG-TINY Debugger.
I outlined the steps I took to get the FPGA connected in one of my reports. Try looking at sections 4.2 and 4.5, they might be useful to you for setting up the pinout and configuration settings of Freedom-E-SDK. Table 4.1 shows the wire connections to be made between the debugger and the FPGA.
If the rest of your setup with the JTAG debugger and FPGA is identical to mine, it may be a slight difference between the different FPGA models we are using that is causing an error.
Cheers
@alexdlukens
Thanks for your reply , I have seen your reports . now I use branch arty-spi-flash , I have set frequency of bus as 32.0MHZ and set baud rate as 57600,but on the terminal still print the character like "?" , how can I solve the problem?
thanks again, best
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
Have you resolved the problem, maybe you can add a clockGate in debug module .
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved.
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved.
hi, JACKLIAO0. I have the same problem when I upload a new binary program via freedom-e-sdk : "Error: Target not examined yet" How can I add a clockGate in debug module? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" Should this sentence be added to ArtyShell.scala? I don't understand the difference between WithArtyJTAGHarnessBinder(HarnessBinders.scala) and connectDebugJTAG(ArtyShell.scala). It seems that this connectDebugJTAG function is not used.
Hi,GentleBreezeBlow
"Error: Target not examined yet" shows that Jtag debug device is not be detected . You can refer to this document: SiFive-E310-arty-gettingstarted.pdf
@.***
From: GentleBreezeBlow Date: 2022-04-12 15:34 To: ucb-bar/chipyard CC: Jie Liao; Mention Subject: Re: [ucb-bar/chipyard] Error while generating Arty bitstream (Issue #1065) Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved. hi, JACKLIAO0. I have the same problem when I upload a new binary program via freedom-e-sdk : "Error: Target not examined yet" How can I add a clockGate in debug module? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" Should this sentence be added to ArtyShell.scala? I don't understand the difference between WithArtyJTAGHarnessBinder(HarnessBinders.scala) and connectDebugJTAG(ArtyShell.scala). It seems that this connectDebugJTAG function is not used. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved.
hi, JACKLIAO0. I have the same problem when I upload a new binary program via freedom-e-sdk : "Error: Target not examined yet" How can I add a clockGate in debug module? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" Should this sentence be added to ArtyShell.scala? I don't understand the difference between WithArtyJTAGHarnessBinder(HarnessBinders.scala) and connectDebugJTAG(ArtyShell.scala). It seems that this connectDebugJTAG function is not used.
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" this code should be added in you top system file.
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved.
hi, JACKLIAO0. I have the same problem when I upload a new binary program via freedom-e-sdk : "Error: Target not examined yet" How can I add a clockGate in debug module? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" Should this sentence be added to ArtyShell.scala? I don't understand the difference between WithArtyJTAGHarnessBinder(HarnessBinders.scala) and connectDebugJTAG(ArtyShell.scala). It seems that this connectDebugJTAG function is not used.
Hi, have you solved it? Is it added in ArtyShell.scala?
Hi, I've met the same trouble as the compilation errors when I run the command $make CONFIG=Sodor1StageConfig , can you tell me how to solve this issue?
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" , I have added this in the top system, then the problem have been solved.
hi, JACKLIAO0. I have the same problem when I upload a new binary program via freedom-e-sdk : "Error: Target not examined yet" How can I add a clockGate in debug module? "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" Should this sentence be added to ArtyShell.scala? I don't understand the difference between WithArtyJTAGHarnessBinder(HarnessBinders.scala) and connectDebugJTAG(ArtyShell.scala). It seems that this connectDebugJTAG function is not used.
"Debug.connectDebugClockAndReset(sys.debug, sys.clock)" this code should be added in you top system file.
你好,请问能说下具体是加在哪个文件里面吗?
Add it in your own FPGATop File, you can refer to sifive freedom soc.
hi , alexdlukens
I have generated .mcs file and download it to Arty 100T board , also a hello world program have download to the flash ,and I successfully saw the "hello".
but when I upload a new binary program via freedom-e-sdk , I encountered a problem like this : Error: Debug Module did not become active. dmcontrol=0x0 Warn : target riscv.cpu examination failed Info : starting gdb server for riscv.cpu on 3333 Info : Listening on port 3333 for gdb connections Error: Target not examined yet
what can I do to resolve the problem?
@abejgonzalez @alexdlukens
hope for your reply. Thanks
Confirm again that adding "Debug.connectDebugClockAndReset(sys.debug, sys.clock)" solves this problem, I also encountered the problem of "dmcontrol=0x00"
@JACKLIAO0 Hi Bro,Hello, as I understand, I added the Debug.connectDebugClockAndReset code to the WithArtyResetHarnessBinder like this((I am using the Nexys development board):
But there is a problem,: how to solve this? thanks
The problem is solved, it is the resetn signal problem of mmcm in ArtyShell, this signal should be equal to ~ck_rst. https://github.com/sifive/fpga-shells/blob/f9fb9fd338e5fca2ff5116b1d01506c424280d70/src/main/scala/shell/xilinx/ArtyShell.scala#:~:text=ip_mmcm.io.resetn%20%20%3A%3D%20ck_rst
Hello,
I'm getting errors while generating Arty bitstream and I'm using docker image. can someone give me a hint?