Skip to content

Flash clock and wait states #120

Description

@richardeoin

To calculate the number of wait states for the flash, we use RM0433 Rev 7. Table 17

image

This table implies the calculation should be based on the AXI Interface clock (= rcc_hclk). However the text immediately above it says it should be based on sys_ck. Indeed the block diagram (Fig. 5) shows only sys_ck entering the flash sub-system.

image

image

Which clock should we use for this calculation? (see Figure 49.)

  • sys_ck
  • sys_d1cpre_ck ( = sys_ck / 1)
  • rcc_hclk ( = sys_d1cpre / 2 by default)

Currently we use sys_d1cpre_ck, so the flash is always set to 7 wait states for sys_d1cpre_ck > 225MHz.

TODO:

  • Decide and use correct clock
  • Add flash wait state table for VOS0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions