Skip to content
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

ported the flash peripheral from pebble/qemu and added support to reset #36

Merged
merged 2 commits into from
Sep 11, 2021
Merged

ported the flash peripheral from pebble/qemu and added support to reset #36

merged 2 commits into from
Sep 11, 2021

Conversation

lcgamboa
Copy link

I adapted Pebble's support to load the file from a flash drive. The -pflash file.bin option should now be used instead of -kernel (which still works). The flash reset function loads the address of the stack and the pc that is specific to the ARM M3, allowing the qemu to be reset.
Support for FLASH_REGS was copied from the https://github.com/baselsayeh/qemu_stm32_flash repository and added so that binaries compiled on Arduino run without generating problem. The programs write and check the flash latency value.

@beckus beckus merged commit 8fec31d into beckus:stm32 Sep 11, 2021
@beckus
Copy link
Owner

beckus commented Sep 11, 2021

Thank you @lcgamboa for the contribution! Sorry for the very long delay in merging it.

@lcgamboa
Copy link
Author

Hi @beckus,
Your work on the stm32 implementation on qemu is fantastic.
I have implemented two boards based on it, they are in the experimental version of PICSimLab.
But some code compiled in arduino IDE doesn't work due to lack of DWT Cycle counter implementation. As my knowledge of qemu are few and the qemu documentation doesn't help, I have no idea how to get started.
Glad to know that the project is still being held.

@beckus
Copy link
Owner

beckus commented Sep 12, 2021

Thanks @lcgamboa , I'm glad you found the project useful. Although I enjoyed working on the project as a hobby, unfortunately I don't have much time to work on it these days, and am only doing very minimal maintenance.
Interesting, I added a link to PICSimLab in the QEMU STM32 webpage.
I'm not familiar with the DWT, so I don't have any suggestions. Even after working on this project, I still have a fairly limited understanding of the entire ecosystem...

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