Open adkinsjd opened 7 months ago
Hi @adkinsjd! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
Hi @adkinsjd ,
We really appreciate when community sends PR. Take a look at contribute-guidelines for more info about how to do it.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Hi @adkinsjd , Do you have plans to send the patch ?
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug I have been trying to erase the end of flash on an Atmel Sam4s(8b) using the current sam flash driver. When you attempt to erase the last page the driver returns an EFAULT error despite successfully erasing the last page. I believe this is because the success condition at https://github.com/zephyrproject-rtos/zephyr/blob/2f6b41a694ee47dac5c431a81b7673026b0908c3/drivers/flash/flash_sam.c#L397
cannot be met for the final page, as it requires a start_offset of the last page+1 to meet the condition. I am unsure of the best way to fix the issue, but currently in my application I have added the following check after the erase page function runs and it seems to be working:
Note this can't replace the current check condition or else the final page would never be erased.
To Reproduce Run flash_erase on an atmel sam chip for the last page of flash.
Expected behavior No error is reported.
Impact I believe I have solved the issue in my working tree, but I don't feel knowledgeable enough about the flash architecture to submit a PR.
Logs and console output
Environment (please complete the following information):