-
Notifications
You must be signed in to change notification settings - Fork 38
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
UPDATE: issue burning FPGA #5
Comments
Try something like "loader pacman.nes". The loader takes the binary rom (ines format), not the .hex file. |
okay - was able to load a rom! see the game running, but there's no response to the controllers. I'm using the NES original controllers...
Also there's no sound via HDMI is that to be expected? |
UPDATE2: gamepad - so
|
Sound: Are you on a TV or monitor? I ran into the no sound issue on a Sony TV too. I had a fix for that checked into master (unfortunately the code is in flux now). Gamepad: that's probably the issue. Could you post the relevant lsusb -v part? That should show the vendor and product id. |
I’m using a Sharp4K Monitor.
Here’s the lsusb verbose output:
Bus 007 Device 015: ID 0810:e501 Personal Communication Systems, Inc. SNES Gamepad
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0810 Personal Communication Systems, Inc.
idProduct 0xe501 SNES Gamepad
bcdDevice 1.06
iManufacturer 0
iProduct 2 usb gamepad
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 89
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
… On Mar 19, 2023, at 12:27 AM, nand2mario ***@***.***> wrote:
Sound: Are you on a TV or monitor? I ran into the no sound issue on a Sony TV too. I had a fix for that checked into master (unfortunately the code is in flux now).
Gamepad: that's probably the issue. Could you post the relevant lsusb -v part? That should show the vendor and product id.
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6FC4E6OQ7E5WSXJTHLW42DM3ANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
Your device 0810:e501 is actually in the gamepad list. So it seems to be something else. Try pass -v to loader. It will print everything the loader passes to the fpga. Check if there are packets when you press controller buttons. |
Hmm,
When I press any button, the only output I see is the last two lines of hex — same regardless of which buttons I press:
mario.nes transmitted over /dev/ttyUSB1 at baudrate 921600.
Found 1 gamepads
Opening gamepad /dev/input/event16
bf 40 01 00
be 41 01 00
… On Mar 19, 2023, at 10:45 AM, nand2mario ***@***.***> wrote:
Your device 0810:e501 is actually in the gamepad list. So it seems to be something else.
Try pass -v to loader. It will print everything the loader passes to the fpga. Check if there are packets when you press controller buttons.
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6GXXZ5SZGYN6KN56YLW44LXLANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
So I looked at the code - saw you had debug printfs in util.cpp on 389,390 for events - commented them out and reran it
Getting inputs from the controller…
Event: time 1679238400.416185, type: 3, code: 0, value: 0
Event: time 1679238400.624183, type: 3, code: 0, value: 127
Event: time 1679238402.392172, type: 3, code: 0, value: 0
Event: time 1679238402.520171, type: 3, code: 0, value: 127
Event: time 1679238403.008169, type: 3, code: 0, value: 0
Event: time 1679238403.048214, type: 3, code: 1, value: 255
Event: time 1679238403.096175, type: 3, code: 1, value: 127
Event: time 1679238403.176174, type: 3, code: 0, value: 127
Event: time 1679238403.504182, type: 3, code: 0, value: 0
Event: time 1679238404.448175, type: 3, code: 0, value: 127
Event: time 1679238404.904162, type: 3, code: 0, value: 0
Event: time 1679238405.480161, type: 3, code: 0, value: 127
Event: time 1679238406.176157, type: 3, code: 0, value: 255
Event: time 1679238406.224157, type: 3, code: 1, value: 0
So buttons are pressing and working … seems like it’s not going to the FPGA..
… On Mar 19, 2023, at 10:45 AM, nand2mario ***@***.***> wrote:
Your device 0810:e501 is actually in the gamepad list. So it seems to be something else.
Try pass -v to loader. It will print everything the loader passes to the fpga. Check if there are packets when you press controller buttons.
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6GXXZ5SZGYN6KN56YLW44LXLANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
UPDATE: Some points of clarification:
not sure if this is expected behavior or if this is an indication of a configurations/hw issue with the TangPrimer20K |
maybe this link can help you... |
Read it - tried it - no dice … the issue is with the FGPA and the UART via the FTDI — loads the roms but that’s it…
Not sure why thought I can load the rom, load the core (in SRAM but not FLASH) but not have the loader talk to the USB/UART …
… On Mar 19, 2023, at 1:16 PM, Chandler Klüser ***@***.***> wrote:
maybe this link <trabucayre/openFPGALoader#251> can help you...
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6AL6KBMXSAHRINAO5DW445NBANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
It looks like a defective board or BL702 firmware bug to me. I have 3 tang primer 20k and the Gowin programmer works on all 3. Maybe Sipeed can help? |
Is there a way to upgrade the firmware on the board?
Are you using the Linux or Windows version of the Gowin software?
… On Mar 19, 2023, at 10:33 PM, nand2mario ***@***.***> wrote:
It looks like a defective board or BL702 firmware bug to me. I have 3 tang primer 20k and the Gowin programmer works on all 3. Maybe Sipeed can help?
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6HIDRG43JDLEDI5QKTW466VZANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
I'm using windows Gowin programmer and openFPGALoader on Windows/Linux and Mac. I haven't upgraded the firmware on this board. But afaik the BL702 firmware is closely related to this: https://github.com/sipeed/RV-Debugger-BL702 Try asking sipeed in places like here: https://github.com/sipeed/sipeed_wiki/issues |
Thanks. And you have zero issues loading flash or sram on all three platforms? Both with the Gowin and openFPGALoader?On Mar 19, 2023, at 11:14 PM, nand2mario ***@***.***> wrote:
I'm using windows Gowin programmer and openFPGALoader on Windows/Linux and Mac.
I haven't upgraded the firmware on this board. But afaik the BL702 firmware is closely related to this: https://github.com/sipeed/RV-Debugger-BL702
Try asking sipeed in places like here: https://github.com/sipeed/sipeed_wiki/issues
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I had this issue. My Tang Primer 20K Dock would always hang during the programming with openFPGALoader on Linux. I have reflashed the firmware of the BL702 and now I am both able to flash and load to load into SRAM without hanging, except that now the serial UART with the FPGA is not working. No communication at all. I have temporarily circumvented the problem by assigning a PMOD connector to an external USB to UART adapter and it not only works, as it is much more reliable loading games through this externall adapter, than going through the BL702. |
How do I reflash the firmware on the BL702?
|
this could be in a wiki page, could you provide us more details? |
The procedure to generate and flash the BL702 usb2uartjtag is as follows:
|
What OS/platform are you building and running this on?
… On Jul 15, 2023, at 5:53 AM, CoreRasurae ***@***.***> wrote:
The procedure to generate and flash the BL702 usb2uartjtag is as follows:
cd RV-Debugger-BL702
git submodule init
git submodule update
cd bl_mcu_sdk
make APP=usb2uartjtag APP_DIR=../app CHIP=bl702 INTERFACE=/dev/ttyACM0
cd tools/bflb_flash_tool/
./bflb_mcu_tool --chipname=bl702 --port=/dev/ttyACM0 --xtal=32M --firmware="../../out/app/usb2uartjtag/usb2uartjtag_bl702.bin"
—
Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6F77DTFEIYGCLFQNX3XQJSBTANCNFSM6AAAAAAV7YBLNM>.
You are receiving this because you authored the thread.
|
Ubuntu 20.04 LTS |
What are the riscv toolchain dependencies used for the build on Ubuntu?On Jul 15, 2023, at 1:54 PM, CoreRasurae ***@***.***> wrote:
Ubuntu 20.04 LTS
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I don't remember where I got it from, but it came from a zip file named: |
Cool - I’ll hunt it down…On Jul 15, 2023, at 2:02 PM, CoreRasurae ***@***.***> wrote:
I don't remember where I got it from, but it came from a zip file named:
toolchain_riscv_thead_linux64.zip
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
In case anyone else is looking for it: https://github.com/stnolting/riscv-gcc-prebuilt#Download
Linux.github.comOn Jul 15, 2023, at 2:02 PM, CoreRasurae ***@***.***> wrote:
I don't remember where I got it from, but it came from a zip file named:
toolchain_riscv_thead_linux64.zip
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Any chance you can post a link to usb2uartjtag_bl702.bin
I can’t get it to build…
… On Jul 15, 2023, at 2:02 PM, CoreRasurae ***@***.***> wrote:
I don't remember where I got it from, but it came from a zip file named:
toolchain_riscv_thead_linux64.zip
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Here it goes the compiled usb2uartjtag: |
Maybe you forgot to update cmake to 3.26.4, it is mandatory on my Ubuntu to make a local installation of that cmake version. |
so burning fails... am I missing something??
|
installed |
I have a dock and accidentally burned the lite core - and now I can't burn the dock core.
Have I fried it or his it in a state that can be reset?
When I run openFPGALoad --detect I see the board
but when I attempt to load the core, I get:
UPDATE1:
I was able to burn the dock core and get the checkered patterned color blocks up when the core runs. I've had to use an external 6V supply as I can only burn the core using openFPGALoad on OSX - Linux fails. As such, I have to switch back over to linux to run the
loader
- but when I run it, it detects two gamepads but doesn't respond to the controllers at allgetting closer... but no roms running ... roms run successfully in the sim
The text was updated successfully, but these errors were encountered: