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

C library for STM32 with emgo #22

Open
4 tasks
olemis opened this issue Feb 13, 2019 · 2 comments
Open
4 tasks

C library for STM32 with emgo #22

olemis opened this issue Feb 13, 2019 · 2 comments
Assignees
Labels
arch-armhf ARM>=7 CPU w/ Thumb-2 & VFP3-D16 FPU stdev wallet-hw Related to Skycoin hardware wallet wip Work in progress
Milestone

Comments

@olemis
Copy link
Contributor

olemis commented Feb 13, 2019

Feature description

C library for STM32 MCU

Is your feature request related to a problem? Please describe.
It is not possible to run the library in lib/cgo on MCU .

Describe the solution you'd like

Use emgo to transpile skycoin/skycoin library code to C , then link binaries for STM32 platform

Describe alternatives you've considered
All other alternatives for compiling with go for MCU in the end rely on Firmata, which does not fit in our use case scenario.

Additional context
Ideally this could be used to upgrade the cipher library used in skycoin/hardware-wallet. Priority consists in support for STM32F4 series.

Possible implementation

  • Transpile skycoin/skycoin library code to C using emgo .
  • Link against library for STM32
  • Parameterize the test suite (if needed) so as to test multiple implementations
  • Execute the current test suite by calling the binaries obtained in aforementioned steps
@olemis olemis self-assigned this Feb 13, 2019
@olemis olemis added stdev wip Work in progress labels Feb 13, 2019
@olemis
Copy link
Contributor Author

olemis commented Feb 13, 2019

@stdevBalibrea please start working on this issue . What's the exact architecture of STM32F4 devices ? I guessed it was armhf based on STM32 @ Wikipedia article, but I might be wrong .

@olemis olemis added the arch-armhf ARM>=7 CPU w/ Thumb-2 & VFP3-D16 FPU label Feb 13, 2019
olemis added a commit to simelo/libskycoin.orig that referenced this issue Feb 13, 2019
@olemis olemis added this to the 0.26.0 milestone Feb 13, 2019
@olemis olemis added the wallet-hw Related to Skycoin hardware wallet label Feb 13, 2019
@stdevAlDen
Copy link

@stdevBalibrea please start working on this issue . What's the exact architecture of STM32F4 devices ? I guessed it was armhf based on STM32 @ Wikipedia article, but I might be wrong .

or maybe stm32f2 but I'm not sure:

@olemis olemis modified the milestones: 0.26.0, 0.26.1 May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-armhf ARM>=7 CPU w/ Thumb-2 & VFP3-D16 FPU stdev wallet-hw Related to Skycoin hardware wallet wip Work in progress
Projects
None yet
Development

No branches or pull requests

2 participants