0

我目前在我的 stm32 项目和可以显示不同条形码(QRCode、Datamatrix...)的静态库之间的链接存在很大问题。确实,我需要这个库在 Epaper 屏幕上显示不同的条形码。

不幸的是,我找不到在我的项目中实现的简单源代码。我必须通过一个静态库...

我设法为我的电路板的良好架构编译了这个,但我的项目显示存储错误。我不知道该怎么做了!如果有人有解决方案,我会很高兴!

对我来说最好的办法是简单地使用这个库的源代码,但是这些源代码需要预编译才能一起工作......

在网上,我设法为 QRCodes 找到了一个 .c 和一个 .h(这在我的项目中完美运行),但对于其他类型的代码,我找不到任何东西(Datamatrix、Code128、Aztec Code...) .

图书馆链接:https ://github.com/woo-j/zint

控制台日志:

Building target: Peson_2.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -static -L"C:\libs\zint\build\backend" -specs=nosys.specs -specs=nano.specs -T"../STM32F401RCTx_FLASH.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "Peson_2.elf" @"objects.list"  -lzint-static -lm
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/compiler/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: Peson_2.elf section `.rodata' will not fit in region `FLASH'
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/compiler/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 153928 bytes
collect2.exe: error: ld returned 1 exit status
makefile:38: recipe for target 'Peson_2.elf' failed
make: *** [Peson_2.elf] Error 1

14:02:01 Build Finished (took 18s.724ms)
4

0 回答 0