micro-ecc icon indicating copy to clipboard operation
micro-ecc copied to clipboard

Hard fault on cortex M0+

Open danyhm opened this issue 2 years ago • 0 comments

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.

danyhm avatar Mar 18 '23 16:03 danyhm