Frequently Asked Questions | Developers

Frequently Asked Questions

Estimated reading time: 2 minutes

Question/Problem Answer
When trying to build a Nano app via the make command on some apps, this error could appear fatal error: 'zxmacros.h' file not found (or any other .h file). Run git submodule update --init on the repo’s root or git clone" --recurse-submodules.
What is the maximum size of a message that can be sent in a single APDU? The length of the data part is 255 bytes and the whole message sent in a single APDU is 260 bytes with the blocks cla, ins, p1, p2 and one extra byte that encodes the length of the data that follows.
The Ledger team can not fork a repo which is already a fork on LedgerHQ (e.g. ledger-panacea is a clone of ledger-cosmos but LedgerHQ has already a fork of ledger-cosmos). This is a limitation of GitHub and the only solution for this is to break the link between the repository and the upstream one. This is done like in this tutorial.
Can I freely choose the CLA in my Nano App as long as it is one byte or is there eanything I need to be aware of? Apart from not using a few CLAs that are reserved for the SDK, OS, etc, developers are free to choose. For example, 0xB0 is for SDK.
How can I load an app without Ledger Live on my ledger nano S or S+? Here the link to the documentation.
When do I have to build the docker Image? You have to do it whenever there is a new firmware update (Ledger app builder updated).
When I build the application, I have this error message: No targets specified and no makefile found. You need to go down one level in the repo to the app subfolder and then run the make command. You must have launched your ledger-app-builder before.
I’m getting the error message Ledger device: CLA_NOT_SUPPORTED. Many reasons could occur this error: the nano app does not support the functionality you are implementing yet, you opened the wrong Nano App, or the CLA byte is not correctly set.

Did you find this page helpful?

How would you improve this page for developers?

Application Environment
Getting Started
Theme Features

Nano Apps