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

targets/lattice_crosslink_nx_evn: fix arguments in flash programming #520

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

josuah
Copy link
Contributor

@josuah josuah commented Aug 10, 2023

To reproduce the bug:

(litex-3.11) lap1$ targets/lattice_crosslink_nx_evn.py --programmer=ecpprog --load --prog-target flash
[...]
Traceback (most recent call last):
  File "/home/litex/litex-boards/litex_boards/targets/lattice_crosslink_nx_evn.py", line 132, in <module>
    main()
  File "/home/litex/litex-boards/litex_boards/targets/lattice_crosslink_nx_evn.py", line 127, in main
    prog.flash(address=args.address, bitstream=builder.get_bitstream_filename(mode="sram"))
TypeError: EcpprogProgrammer.flash() got an unexpected keyword argument 'bitstream'
(litex-3.11) lap1$

After the commit:

(litex-3.11) lap1$ targets/lattice_crosslink_nx_evn.py --programmer=ecpprog --load --prog-target flash
[...]
init..
IDCODE: 0x110f1043 (LIFCL-40)
NX Status Register: 0x0000110100000100
reset..
flash ID: 0xC2 0x20 0x18
file size: 958894
erase 64kB sector at 0x000000..
erase 64kB sector at 0x010000..
erase 64kB sector at 0x020000..
erase 64kB sector at 0x030000..
erase 64kB sector at 0x040000..
erase 64kB sector at 0x050000..
erase 64kB sector at 0x060000..
erase 64kB sector at 0x070000..
erase 64kB sector at 0x080000..
erase 64kB sector at 0x090000..
erase 64kB sector at 0x0A0000..
erase 64kB sector at 0x0B0000..
erase 64kB sector at 0x0C0000..
erase 64kB sector at 0x0D0000..
erase 64kB sector at 0x0E0000..
programming..  958894/958894
verify..       958894/958894  VERIFY OK
Bye.
(litex-3.11) lap1$

@enjoy-digital enjoy-digital merged commit a9ecbff into litex-hub:master Aug 28, 2023
3 checks passed
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