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

Call to switch_demux_using_fabric_ip() causes SDCARD boot issue for minimalistic FPGA design (MSS + Clocks only). #67

Open
3 of 8 tasks
ChrRudel opened this issue May 31, 2024 · 0 comments

Comments

@ChrRudel
Copy link

Microchip PolarFire SoC Issue Template

Checklist

Please complete this checklist before filing an issue:

  • [x ] Are you using the latest releases of our deliverables? Using HSS 2024.02.1
    • If not please update to the latest version of the each deliverable needed (reference design, HSS, Linux / bare metal example) and re-test as this issue may already have been resolved.
  • Is this something you can debug and fix?
    • Send a pull request! Bug fixes and documentation fixes are welcome.
  • Have a usage question?
    • Ask your question on our discussion forum. We use the discussion forum for usage questions.
  • Have an idea for a feature?
    • Post the feature request on the discussion forum. This will allow us to assess and plan for the feature without having an open issue until it is released. GitHub issues should only be used for code bugs.
    • Is this issue directly related to Microchip code? I.e have you found an upstream bug?
      • If so please open an issue against the upstream repository and not the Microchip fork.

The switch_demux_using_fabric_ip() function always gets called at boot time inside the mmc_init_sdcard() function.
This creates a problem for boards which do not feature an external switch. The FPGA design also does not contain additional fabric logic to control it.

20240531_HSS_Problematic_switch_demux_using_fabric_ip_call

We observe a problem on the Discovery Kit when using a minimalistic FPGA design (FIC_3_PERIPHERALS_0 and FIC_0_PERIPHERALS_0 removed from the reference design).
With that design change the board would not boot from SD Card.
The HSS Boot is stuck at "Attempting to select SDCARD ..." and HSS is stuck in an endless restart cycle.

Commenting out Line #168 in hart-software-services/services/mmc/mmc_api.c resolved the problem and SDCARD boot is working again for that board+fpga design combination.

Please make sure to add all the information needed to understand the bug so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

  • Provide a minimal code snippet example that reproduces the bug where appropriate.
  • Provide screenshots where appropriate
  • Does this occur all of the time or is it intermittent? All the time
  • Have you tried on another board? Tested on Two boards.

"MSS Only" FPGA Design (FIC_0_ / FIC_3_PERIPHERAL removed from 2024.04 MPFS-DISCO-KIT Refdesign):

image

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

No branches or pull requests

1 participant