Skip to content

hw/mcu/da1469x: hal_flash manual mode enhanced#1990

Merged
kasjer merged 1 commit intoapache:masterfrom
kasjer:kasjer/da1469x-enhance-hal_flash
Nov 7, 2019
Merged

hw/mcu/da1469x: hal_flash manual mode enhanced#1990
kasjer merged 1 commit intoapache:masterfrom
kasjer:kasjer/da1469x-enhance-hal_flash

Conversation

@kasjer
Copy link
Contributor

@kasjer kasjer commented Sep 6, 2019

  • returning to automode is done by restoring original value of
    QSPIC_CTRLMODE_REG. This will take care of correct bus width
    and D2 D3 lines state. There is no automatic switch to quad mode
    any more.
  • switching to manual mode sequence of call was made:
    da1469x_qspi_mode_manual()
    da1469x_qspi_mode_single()
    now da1469x_qspi_mode_manual() will automatically switch to single mode
    and additionally it will send break sequence that should end any
    continues read mode.
    previous code sent only one byte in single mode that is not enough
    to leave dual continuous read.
  • da1469x_qspi_mode_dual() and da1469x_qspi_mode_single() now setup
    controller in requested state without sending break sequence that
    was sent when manual mode was entered.

@kasjer kasjer force-pushed the kasjer/da1469x-enhance-hal_flash branch from 716eb24 to c1073ec Compare November 5, 2019 13:31
- returning to automode is done by restoring original value of
  QSPIC_CTRLMODE_REG. This will take care of correct bus width
  and D2 D3 lines state. There is no automatic switch to quad mode
  any more.
- switching to manual mode sequence of call was made:
  da1469x_qspi_mode_manual()
  da1469x_qspi_mode_single()
  now da1469x_qspi_mode_manual() will automatically switch to single mode
  and additionally it will send break sequence that should end any
  continues read mode.
  previous code sent only one byte in single mode that is not enough
  to leave dual continuous read.
- da1469x_qspi_mode_dual() and da1469x_qspi_mode_single() now setup
  controller in requested state without sending break sequence that
  was sent when manual mode was entered.
@kasjer kasjer force-pushed the kasjer/da1469x-enhance-hal_flash branch from c1073ec to d3500ee Compare November 5, 2019 13:35
@kasjer kasjer merged commit 99e709d into apache:master Nov 7, 2019
@kasjer kasjer deleted the kasjer/da1469x-enhance-hal_flash branch November 7, 2019 13:43
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

Successfully merging this pull request may close these issues.

2 participants