[Gnuk-users] compilation fails --with-dfu
Jan Suhr | Nitrokey
jan at nitrokey.com
Mon Dec 5 19:53:19 UTC 2016
Hi!
When building Gnuk 1.2 for the Nitrokey Start target and with DFU, the
compilation fails with the following error:
$ make
arm-none-eabi-gcc -c -mcpu=cortex-m3 -O3 -Os -g -ffunction-sections
-fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes
-Wa,-alms=build/main.lst -mthumb -mno-thumb-interwork -DTHUMB -MD -MP
-MF .dep/main.o.d -I. -I../polarssl/include -I../chopstx main.c -o
build/main.o
main.c: In function 'main':
main.c:302:10: error: 'CHIP_ID_ADDR' undeclared (first use in this function)
if ((*CHIP_ID_ADDR)&0x07 == 0x04) /* High dencity device. */
^
main.c:302:10: note: each undeclared identifier is reported only once
for each function it appears in
../chopstx/rules.mk:56: recipe for target 'build/main.o' failed
make: *** [build/main.o] Error 1
Compilation works well *without* the DFU option.
Here are my settings:
./configure --vidpid=20a0:4211 --target=NITROKEY_START --enable-certdo
--enable-factory-reset --with-dfu
Any help would be much appreciated!
Best regards,
Jan
More information about the gnuk-users
mailing list