Skip to content

Conversation

shandianchengzi
Copy link

Pull Request

Summary of changes

Fixed a compilation error in QSPIFBlockDevice.cpp where MBED_CONF_QSPI_NUM_STATUS_REGISTER was incorrectly referenced instead of the correct configuration parameter MBED_CONF_QSPIF_QSPI_NUM_STATUS_REGISTER. This change replaces the incorrect macro with the proper one to resolve the build failure.

The error occurred during compilation:

/home/shandian/pure_experiments_env/examples/mbed-os-example-ble/BLE_Advertising/mbed-os/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp:1096:37: error: 'MBED_CONF_QSPI_NUM_STATUS_REGISTER' was not declared in this scope; did you mean 'MBED_CONF_QSPIF_QSPI_NUM_STATUS_REGISTER'?
 1096 |             _num_status_registers = MBED_CONF_QSPI_NUM_STATUS_REGISTER;
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     MBED_CONF_QSPIF_QSPI_NUM_STATUS_REGISTER

Impact of changes

This change fixes a compilation error that prevented building applications using QSPIFBlockDevice with Macronix vendor quirks enabled. No functional impact on existing code as it simply corrects a configuration parameter reference.

Migration actions required

None. This is a simple bug fix that doesn't require any migration actions.

Documentation

None. This change only fixes a code error and doesn't require documentation updates.


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


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.

1 participant