This project is forked from RT-Thread Package QRCode, which in turn is forked from Arduino Library QRCode.
- SAM (ARM Cortex-M3, Tested with Arduino Due)
- SAMD (ARM Cortex-M0+, Tested with Arduino MKRZero)
- Uncomment the line with
// RT_T.begin();
in "QRCode.ino"
void setup() {
// RT_T.begin();
}
- Add the following line to "shell_cmd.h" (in RT-Thread Library)
ADD_MSH_CMD(qr, qrcode generator, qrcode, int, uint8_t argc, char **argv)
-
Compile
- You may copy the compiling command from Arduino IDE's output window (select "File-> Preferences-> Show verbose output during: compilation" if you can't see the command)
- Insert options
-mlong-calls -fPIC
-
Link
- You may copy the link command from Arduino IDE's output window
- Keep only "QRCode.ino.cpp.o" and "qrcode.c.o`
- Remove option `-Wl,--unresolved-symbols=report-all"
- Remove option
-L...
- Remove option
-T...
- Remove option
-Wl,--start-group ... -Wl,--end-group
- Insert options "-shared -fPIC -nostdlib -Wl,-marmelf -Wl,-z,max-page-size=0x4"
- Insert entry point option (e.g. "-Wl,-eqrcode")
-
Strip
- Use
arm-none-eabi-strip
to strip unused sections, e.g..hash
,.comment
and.ARM.attributes
- Use