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

Hard fault on cortex M0+ #207

Open
danyhm opened this issue Mar 18, 2023 · 0 comments
Open

Hard fault on cortex M0+ #207

danyhm opened this issue Mar 18, 2023 · 0 comments

Comments

@danyhm
Copy link

danyhm commented Mar 18, 2023

Hello,

I compiled the library with Keil Arm compiler 5 and then used functions uECC_set_rng, uECC_make_key, uECC_sign and uECC_verify in that sequence.

while in the uECC_sign function I always get a Hardfault. after a little debugging, I found out a null pointer (g_rng_function) is being dereferenced!? which is very strange because it should remain a variable that points out to my random function. however, setting a write-debug point on the memory location of g_rng_function yielded that at some point it's being accessed and set to 0?!

anyways I could not find where this was happening so I just manually edited the source to point to my rand function directly.

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

No branches or pull requests

1 participant