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

fix application on nanox devices #27

Open
ryankurte opened this issue Mar 22, 2023 · 2 comments
Open

fix application on nanox devices #27

ryankurte opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels
blocked bug Something isn't working

Comments

@ryankurte
Copy link
Contributor

the pre-release nanox firmware launches but crashes when requesting account keys and during transaction signing, this does not occur in the simulator or when compiling the same application for the nanosplus.

we've tried:

  • reducing stack use further which resolved the account-keys crash, getting us to the crash in transaction signing
    (stack use improvements (towards nanox execution) #23)
  • tested swapping from armv6 to armv7 which makes computations dramatically more efficient
    (and tested both v6 and v7 ISA applications on the nanosplus, where they work as expected)
@ryankurte ryankurte added the bug Something isn't working label Mar 22, 2023
@ryankurte ryankurte self-assigned this Mar 22, 2023
@ryankurte
Copy link
Contributor Author

ryankurte commented May 22, 2023

update: nanox requires SP to never exceed 8k where the nanos only requires SP < 8k when making syscalls. further optimisation of stack frames in #45 has us under this limit, though it is yet to be tested on a nanox.

@ryankurte
Copy link
Contributor Author

further stack reduction did not resolve the issue on the nanox, however, ledger have a fix in the works that resolves this limitation, so for the moment we're blocked on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant