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

platforms/crosslink_nx_evn: allow use of UARTBone #516

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

josuah
Copy link
Contributor

@josuah josuah commented Aug 4, 2023

This goes along a small resistor jumper modification and firmware flashing like it is for the ECP5 board. A warning message is added as the default serial might be affected (--serial serial by default). The FTDI modification software used for the ECP5 seems to be requried and matching.

litex@lap1:$ targets/lattice_crosslink_nx_evn.py --csr-csv=csr.csv --toolchain=oxide --uart-name=crossover+uartbone --build --load
[...build logs with the extra message and 2s of wait time (sorry! open to suggestions)...]
litex@lap1:$
litex@lap1:$ litex_server --uart --uart-port /dev/ttyUSB0
[CommUART] port: /dev/ttyUSB0 / baudrate: 115200 / tcp port: 1234
Connected with 127.0.0.1:41364
Disconnect
Connected with 127.0.0.1:41366
Disconnect
Connected with 127.0.0.1:41382
Disconnect
Connected with 127.0.0.1:41384
Disconnect
Connected with 127.0.0.1:41394
Disconnect
litex@lap1:$ litex_cli --regs
0xf0000000 : 0x00000000 ctrl_reset
0xf0000004 : 0x12345678 ctrl_scratch
0xf0000008 : 0x00000000 ctrl_bus_errors
0xf0001000 : 0x00000000 leds_out
0xf0001800 : 0x00000000 timer0_load
0xf0001804 : 0x00000000 timer0_reload
0xf0001808 : 0x00000000 timer0_en
0xf000180c : 0x00000000 timer0_update_value
0xf0001810 : 0x00000000 timer0_value
0xf0001814 : 0x00000001 timer0_ev_status
0xf0001818 : 0x00000001 timer0_ev_pending
0xf000181c : 0x00000000 timer0_ev_enable
0xf0002000 : 0x00000000 uart_rxtx
0xf0002004 : 0x00000001 uart_txfull
0xf0002008 : 0x00000001 uart_rxempty
0xf000200c : 0x00000000 uart_ev_status
0xf0002010 : 0x00000000 uart_ev_pending
0xf0002014 : 0x00000003 uart_ev_enable
0xf0002018 : 0x00000000 uart_txempty
0xf000201c : 0x00000000 uart_rxfull
0xf0002020 : 0x00000020 uart_xover_rxtx
0xf0002024 : 0x00000000 uart_xover_txfull
0xf0002028 : 0x00000000 uart_xover_rxempty
0xf000202c : 0x00000003 uart_xover_ev_status
0xf0002030 : 0x00000003 uart_xover_ev_pending
0xf0002034 : 0x00000000 uart_xover_ev_enable
0xf0002038 : 0x00000001 uart_xover_txempty
0xf000203c : 0x00000001 uart_xover_rxfull
litex@lap1:$

This goes along a small resistor jumper modification and firmware flashing like
it is for the ECP5 board. A warning message is added as the default serial might
be affected (--serial serial by default). The FTDI modification software used
for the ECP5 seems to be requried and matching.

This can be tested this way:
targets/lattice_crosslink_nx_evn.py --csr-csv=csr.csv --toolchain=oxide --programmer=openocd --uart-name crossover+uartbone --build --load
litex_server --uart --uart-port /dev/ttyUSB1
litex_cli --regs
@enjoy-digital enjoy-digital merged commit 9acc349 into litex-hub:master Aug 8, 2023
1 check passed
@enjoy-digital
Copy link
Member

Thanks @josuah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants