-
Notifications
You must be signed in to change notification settings - Fork 3k
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
LPC824: export to LPCXpresso, target running with wrong clock speed #2884
Comments
Do you mind making a pull request with this fix? |
I have commited the fix to my forked repo. (How) can I send the PR for this single commit? There are other committs that are not necessary or confusing? |
Assuming that
I hope that helps. |
ok, that worked, hope I've done it right because this is my first PR. |
Yeah! It looks good. |
Fix for #2884, LPC824: export to LPCXpresso, target running with wron…
…g clock speed SystemInit() was called condititionally, but necessary defines were not set in mbed. Calling SystemInit() unconditional now. Removed also conditiional calls to legacy CodeRed lib.
This issue is fixed and meanwhile GCC_CR has become obsolete. The startup code in GCC_ARM toolchain includes a call to SystemInit and this toolchain should be used. |
LPC824: export to LPCXpresso, target running with wrong clock speed
Description
Bug
Target
LPC824, LPCXpresso824-MAX
Toolchain:
GCC_CR
Toolchain version:
LPCXpresso V8.2.0
meed-os sha:
729ef15 Merge pull request #2682 from ohagendorf/bugfix_can_loop_test
Expected behavior
System clock should be set to 30 MHz.
Actual behavior
System clock is 12 MHz.
Steps to reproduce
export blinky to LPCXpresso, use Blinky test program. Blink frequency is wrong by factor 2.5 (30 / 12).
Enhancement
Suggested enhancement
SystemInit() is not called in startup_LPC812_CR.cpp because of missing define:
because of missing _USE_CMSIS define.
Solution:
_USE_CMSIS could be added in the project defines. But this define is used only once here. Maybe another existing define could be used for this purpose?
The text was updated successfully, but these errors were encountered: