sinara-hw / sinara

Sayma AMC/RTM issue tracker
Other
42 stars 7 forks source link

Artiq starts with long delay on some boards #575

Closed gkasprow closed 6 years ago

gkasprow commented 6 years ago

@sbourdeauducq I noticed that on the board I got from @hartytp today the ARTIQ starts after several tens of seconds. Another board in my lab behaves in the same way. Other boards start immediately. What enable the bootloader to start? What reset signal do you use?

sbourdeauducq commented 6 years ago

Define "start".

hartytp commented 6 years ago

HMC830 wasn't locking

marmeladapk commented 6 years ago

No, it's before even Misoc logo appears in terminal.

sbourdeauducq commented 6 years ago

I would suspect there is some Sayma-bug around the flash that prevents the FPGA from reading it and loading its bitstream fast. Check the DONE pin to find out. Note that if you tweaked the bitstream instead of building it straight from artiq/migen/misoc, you could have changed the flash readout settings too.

gkasprow commented 6 years ago

It starts itself after a minute. Then it works fine. I will have a look at done pin

czw., 9 sie 2018, 17:58 użytkownik Sébastien Bourdeauducq < notifications@github.com> napisał:

I would suspect there is some Sayma-bug around the flash that prevents the FPGA from reading it and loading its bitstream fast. Check the DONE pin to find out. Note that if you tweaked the bitstream instead of building it straight from artiq/migen/misoc, you could have changed the flash readout settings too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinara-hw/sinara/issues/575#issuecomment-411808370, or mute the thread https://github.com/notifications/unsubscribe-auth/AEH-vgdkEkX2niER3aJiVeHxeoSLnor7ks5uPFw5gaJpZM4V1l1T .

gkasprow commented 6 years ago

Btw,there is LED on the panel tied to the done pin

czw., 9 sie 2018, 18:14 użytkownik Grzegorz Kasprowicz kasprowg@gmail.com napisał:

It starts itself after a minute. Then it works fine. I will have a look at done pin

czw., 9 sie 2018, 17:58 użytkownik Sébastien Bourdeauducq < notifications@github.com> napisał:

I would suspect there is some Sayma-bug around the flash that prevents the FPGA from reading it and loading its bitstream fast. Check the DONE pin to find out. Note that if you tweaked the bitstream instead of building it straight from artiq/migen/misoc, you could have changed the flash readout settings too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinara-hw/sinara/issues/575#issuecomment-411808370, or mute the thread https://github.com/notifications/unsubscribe-auth/AEH-vgdkEkX2niER3aJiVeHxeoSLnor7ks5uPFw5gaJpZM4V1l1T .

jordens commented 6 years ago

Are you saying there is a delay between DONE and the bootloader output? There are only idelay calibrations and pll locks going on on that time. If they take long something is really fishy.

gkasprow commented 6 years ago

No, I just said that there is LED tied to DON pin, but it means I have to check how much time it takes to configure.

gkasprow commented 6 years ago

It is DONE pin that goes high after such long time...

hartytp commented 6 years ago

I never saw that on that board.

gkasprow commented 6 years ago

It looks like the configuration takes longer than usual. maybe FPGA reads entire memory instead of part of it? Eventually it manages to configure both FPGAs correctly. On some boards I played with Vivado tools and programmed the FLASH memory, maybe Vivado left there something that now makes booting longer?

jordens commented 6 years ago

I don't see what could be left. If artiq has been flashed recently the relevant parts of the flash have been overwritten. But if you flash a artiq .bit using vivado then the loading options can be changed on the fly and can be slow.

hartytp commented 6 years ago

As I said, @gkasprow I've never seen this issue on that board using artiq_flash so I don't think there is a real hardware/artiq issue here.

gkasprow commented 6 years ago

No, I flashed it with artiq_flash recently, but before was playing with vivado tools. So there is some issue which would be nice to explain before we produce v2.

marmeladapk commented 6 years ago

Note that if you tweaked the bitstream instead of building it straight from artiq/migen/misoc, you could have changed the flash readout settings too.

It was probably this issue. I changed eth rx clock phase with tcl script. When I built bitstreams again, this time changing value in misoc, artiq starts immediately.