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

Question: Is it possible use stm32-fmc to interface with memory that is not nand or sdram? #11

Open
seanybaggins opened this issue Apr 6, 2023 · 0 comments

Comments

@seanybaggins
Copy link

seanybaggins commented Apr 6, 2023

Currently trying to use the FMC to interface with SRAM. I really just need to be able to do a read. There isn't a structure for SRAM. Only SDRAM and Nand. I am trying to use SDRAM in place of SRAM. There are a bunch of initialization parameters for SdramChip that I don't think really pertain to me.

    const MODE_REGISTER: u16 = 0x0000;
    const CONFIG: SdramConfiguration = SdramConfiguration {
        column_bits: 8,
        row_bits: 13,
        memory_data_width: 16,
        internal_banks: 2,
        cas_latency: 0,
        write_protection: true,
        read_burst: true,
        read_pipe_delay_cycles: 0,
    };
    const TIMING: SdramTiming = SdramTiming {
        startup_delay_ns: 0,
        max_sd_clock_hz: ?????,
        refresh_period_ns: ?????,
        mode_register_to_active: ????,
        exit_self_refresh: ?????,
        active_to_precharge: ?????,
        row_cycle: ????,
        row_precharge: ????,
        row_to_column: ????,
    }

Is there a way to interface with SRAM without supplying these parameters or dummy parameters that I can provide?

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