question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SDRAM initialization fails on some OrangeCrabs when LDM/UDM are used independently

See original GitHub issue

I’m not sure where this bug belongs, but I found that a pre-built orangecrab image from https://github.com/litex-hub/linux-on-litex-vexriscv/issues/164 can’t initialize SDRAM:

Initializing SDRAM @0x40000000...
Switching SDRAM to software control.
Read leveling:
  m0, b0: |11100000| delays: 01+-01
  m0, b1: |00000000| delays: -
  m0, b2: |00000000| delays: -
  m0, b3: |00000000| delays: -
  best: m0, b00 delays: 01+-01
  m1, b0: |11100000| delays: 02+-01
  m1, b1: |00000000| delays: -
  m1, b2: |00000000| delays: 00+-00
  m1, b3: |00000000| delays: -
  best: m1, b00 delays: 01+-01
Switching SDRAM to hardware control.
Memtest at 0x40000000 (2MiB)...
  Write: 0x40000000-0x40200000 2MiB     
   Read: 0x40000000-0x40200000 2MiB     
  bus errors:  2/256
  addr errors: 32/8192
  data errors: 524279/524288
Memtest KO
Memory initialization failed

Same thing happens with a bitstream built with ./make.py --board=orangecrab --cpu-count=1 --build. I tried with two different OrangeCrab boards, the outcome is the same. The orangecrab target from litex-boards works without problems.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:29 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
enjoy-digitalcommented, Jan 13, 2021

@gregdavill: I’ve just been able to reproduce the issue on a Versa ECP5, so this probably has more chance to be related to the DM handling in the ECP5 LiteDRAM PHY than OC hardware (possible the DM swap does not help here, but this does not seem to be the root cause). I’ll try to investigate more (and it’s easier on the 45F of the Versa that has more room for LiteScope) but I have to work others priorities for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FTMCTRL/MCTRL/SDCTRL: SDRAM Initialization Errata
1.1. Scope of the Document. This document describes an errata for several SDRAM memory controllers where initialization of.
Read more >
ExecuteReturnSnowflakeId() 雪花Id重复- Donet5/SqlSugar - IssueHint
SDRAM initialization fails on some OrangeCrabs when LDM/UDM are used independently, 29, 2020-12-22, 2022-09-14. When to release next version, 1, 2020-12-01 ...
Read more >
linux-on-litex-vexriscv - githubmemory
SDRAM initialization fails on some OrangeCrabs when LDM/UDM are used independently. kammoh. kammoh CLOSED · Updated 9 months ago ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found