-
Notifications
You must be signed in to change notification settings - Fork 93
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
added support for Micron MT29F nand flash (IEC-110) #327
added support for Micron MT29F nand flash (IEC-110) #327
Conversation
Hi, I don't really understand what the CI is failing at |
@UnTraDe the failing clang-tidy job was fixed on the master branch, if your rebase your branch it should get fixed here as well. Pre-commit check has noticed a minor formatting issue. If you install pre-commit hooks ( (Alternatively, you can check the failing pre-commit job log and manually apply formatting changes as shown there.) |
Just a formatting issue left diff --git a/spi_nand_flash/src/nand.c b/spi_nand_flash/src/nand.c
index 61975a4..4791980 100644
--- a/spi_nand_flash/src/nand.c
+++ b/spi_nand_flash/src/nand.c
@@ -136,13 +136,13 @@ static esp_err_t spi_nand_micron_init(spi_nand_flash_device_t *dev)
.command = CMD_READ_ID,
.dummy_bits = 16,
.miso_len = 1,
- .miso_data = &device_id};
+ .miso_data = &device_id
+ };
spi_nand_execute_transaction(dev->config.device_handle, &t);
dev->read_page_delay_us = 25;
dev->erase_block_delay_us = 10000;
dev->program_page_delay_us = 600;
- switch (device_id)
- {
+ switch (device_id) {
case MICRON_DI_34:
dev->dhara_nand.num_blocks = 2048;
dev->dhara_nand.log2_ppb = 6; // 64 pages per block |
I've fixed the formatting :) |
@UnTraDe I'm sorry, I forgot one thing: please increase the version number in
to 0.2.0. Then your changes will be automatically released once the PR is merged. |
I see no downside to it... @RathiSonika WDYT? |
Yes, there shouldn't be an issue. In fact, it should be uint32_t. Thank you for pointing that out. |
Should I make it part of this PR or open a separate one? |
Is there anything else blocking this PR? 🤔 |
@UnTraDe Sorry for the late reply, I was on leave. You can either add the If you could clean up the commit history ( |
bfb385b
to
6b8aa6d
Compare
@igrr |
@igrr Sorry for bumping again, currently our project relies on cloning the fork locally, and specifying it's path relative to the |
0b05d1c
to
2f4efeb
Compare
@UnTraDe I've pushed one additional fix for CI to pass and cleaned up commit history. I'll merge it as soon as the pipeline passes. |
Checklist
url
field definedChange description
Add support for the Micron MT29F nand chip, tested specifically on
MT29F4G01ABAFDWB