Skip to main content
VMedi.0
Visitor II
August 15, 2019
Question

Is there any way to implement BigNumbers on a STM32F4?

  • August 15, 2019
  • 3 replies
  • 3525 views

I need to implement some BigNumber math on an STM32F4 (bn.h, conv.h, modular.h). I would like to use functions such as W8_to_Big(), StAllocBig(), and InitBig(). Unfortunately I cannot find any information on how to use these functions. Are there any examples or documentation that I could use to get a better understanding of these functions? Any help is appreciated!

This topic has been closed for replies.

3 replies

Pavel A.
Super User
August 15, 2019

Try Micro Python, it has big numbers like the normal Python. And it runs on F4.

-- pa

Tesla DeLorean
Guru
August 15, 2019

Perhaps stop couching it in terms of STM32F4, and review ARM support generally in the Cortex-Mx family, and embedded systems. Check for any porting guides.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
After Forever
Senior III
August 16, 2019

I'm not sure which library you are referring to (bn.h, conv.h, modular.h), but you can try to use tiny-bignum-c - https://github.com/kokke/tiny-bignum-c

or even GNU GMP (if you want something more advanced) - https://gmplib.org/