Dear Sylvain,
After flashing the factory image, I have some serial output:
Booting Test image..
Flash Manufacturer : ef 40 14
Flash Unique ID : dc 69 58 90 87 a1 95 23
[+] GPS ok at 9600 baud
But no USB enumeration. I have no LEDs installed yet, so I cant check those.
Maybe I made a soldering error somewhere non obvious.
Regards,
Csaba
Sipos Csaba <dchardware(a)gmail.com> ezt írta (időpont: 2023. szept.
15., P, 10:16):
Hi Sylvain,
Much appreciate your help!
These info would be very nice to have in the wiki page.
Let me quickly try the procedures out and will share the result.
On the toolchain I tried:
Ubuntu 20.04 LTS
xpack-riscv-none-elf-gcc-12.3.0-1
https://github.com/YosysHQ/nextpnr.git (latest master, but also tried
0.6 and 0.4, no luck)
https://github.com/YosysHQ/icestorm.git (master)
The build process is error free until that point I copied into my previous mail.
Thanks again!
Csaba
Sylvain Munaut <246tnt(a)gmail.com> ezt írta (időpont: 2023. szept. 15., P, 9:09):
>
> Hi,
>
> Wow, I think you might be the first one to build your own ice1usb, nice !
>
> So yeah, the gateware/firmware update files we distribute
> * gateware:
https://people.osmocom.org/~tnt/ice1usb/icE1usb-202210-5890f3e4.bin
> * firmware:
https://downloads.osmocom.org/binaries/icE1usb/firmware/latest/icE1usb-fw.b…
>
> are meant for DFU updates and are only part of a complete ice1usb.
> Also worth to note that you need _both_ for the device to do anything.
>
> Technically, you can make it work with just those two files, flashing
> the first at offset 0 and the second at offset 0x0a0000 in the flash,
> however it then wouldn't have a bootloader so you wouldn't be able to
> do DFU updates and you'd always have to resort to SPI flashing.
>
> In the device you buy, there is a bootloader flashed first (
>
https://github.com/no2fpga/no2bootloader/tree/master ).
>
> Although you can build the bootloader yourself too, the easiest to get
> a working device is so just use our "factory" image which you can find
> at :
https://people.osmocom.org/~tnt/ice1usb/factory-202210/
> So the file to flash from there is factory-image-20221025.bin . And
> that should get the device working albeit the firmware will be some
> factory test firmware. Feel free to follow the TEST-PROCEDURE.txt if
> you want to check the hardware, or else you can just follow the normal
> DFU update procedure to flash your device with the latest firmware (no
> need to update gateware, that one is already good)
>
> As for building the gateware yourself : Which toolchain are you using
> ? I know the FPGA is very full, but it should fit. I just tried a test
> build here of master and it worked fine (it didn't meet timing out of
> the box, you often need to try a feed seeds, but that doesn't
> influence the resource usage which is what fails in your case).
>
> Cheers,
>
> Sylvain