nickgammon / BigNumber

BigNumber library for the Arduino
MIT License
87 stars 22 forks source link

Incompatible with Teensy 4.0 #19

Open l0ad-error opened 2 years ago

l0ad-error commented 2 years ago

Hi, for some reason using BigNumber::begin begins heating the backside of the Teensy 4.0. If you are not fast enough and restore your Teensy with the self-rescue 15 second button press, this will eventually kill it. Verified with a minimal sketch and two Teensy 4.0. I have no idea how this could be happening, just wanted to let you now.

nickgammon commented 2 years ago

All that BigNumber::begin does is call bc_init_numbers which initializes a few default numbers (zero, one and two) by calling bc_new_num. All bc_new_num does is allocate some memory and assign a couple of variables.

I find it hard to believe that doing a couple of memory allocations would make your Teensy heat up and self-destroy. I suggest you have a hardware problem, what it is I don't know. Perhaps there is a piece of wire on your bench that is short-circuiting the board.

You could ask on the Teensy forum whether they think that badly-written software could possible make the board heat up and die. Not that I am suggesting that this particular library is badly-written. :)