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

Added SKIP_SYSCLK_INIT for the loader #2

Merged
merged 2 commits into from
Jun 13, 2020
Merged

Added SKIP_SYSCLK_INIT for the loader #2

merged 2 commits into from
Jun 13, 2020

Conversation

emb4fun
Copy link
Collaborator

@emb4fun emb4fun commented Jun 11, 2020

In general the Loader will switch off the SDRAM clock at start. This is a problem in case of debugging a flash session where the SDRAM clock was initialize before by the startup script. This can be prevented by using the SKIP_SYSCLK_INIT switch. However, it must be ensure that the clock is initialized before the Loader using the startup script.

emb4fun added 2 commits June 11, 2020 07:47
In general the Loader will switch off the SDRAM clock at start. This is a problem in case of debugging a flash session where the SDRAM clock was initialize before by the startup script. This can be prevented by using the SKIP_SYSCLK_INIT switch. However, it must be ensure that the clock is initialized before the Loader using the startup script.
I use a RT1062 CPU with octo flash.

When debugging in Flash the download only works every second time for me. The
error message is:

Erase failed
Memory erase operation failed: no driver installed for memory range

But when the loader is compiled with debug output, it works here every time.
It looks like a small delay is needed to make the download work every time.
@Masmiseim36 Masmiseim36 merged commit 71d9486 into Masmiseim36:master Jun 13, 2020
@emb4fun emb4fun deleted the development branch June 13, 2020 19:57
Masmiseim36 added a commit that referenced this pull request Aug 31, 2020
Added SKIP_SYSCLK_INIT for the loader
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