Hi all,
I'm currently trying to get Nimble controller running on the nrf53 net core. All seems fine except that the core is crashing when I multiply 2 uint16_t variables together. When I'm using uint32_t variables the core doesn't crash.
Is there any constraint regarding the variable alignment?
Here is the code that fails:
uint16_t temp = 2, temp2 = 4; temp = temp * temp2;
temp is located at address 0x2100d396 and temp2 is at 0x2100d394. When I run the code, it crashes on temp and temp2 multiplication.
Same code with uint32_t that works fine:
uint32_t temp = 2, temp2 = 4; temp = temp * temp2;
temp is at 0x2100d394 and temp2 at 0x2100d390.
Any idea what I'm missing here? Thanks
Jocelyn