[Gnuk-users] Firmware update by USB

NdK ndk.clanbo at gmail.com
Tue Jan 20 12:45:01 UTC 2015


Il 19/01/2015 05:13, NIIBE Yutaka ha scritto:

Now that I finally received my StLinkV2, I'm trying to follow your
instructions, but getting an error.

First I check I'm using latest git:
$ git pull
Already up-to-date.

>   $ cd src
>   $ ./configure --vidpid=234b:0000
$ ./configure --vidpid=234b:0000
Header file is: board-fst-01.h
Debug option disabled
Configured for bare system (no-DFU)
PIN pad option disabled
CERT.3 Data Object is NOT supported
Key generation on device is NOT supported
Card insert/removal by HID device is NOT supported

(the first time I tried adding --enable-certdo and --enable-keygen)

>   $ 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/sys.lst -DCHX_PRIO_MAIN=5   -mthumb -mno-thumb-interwork
-DTHUMB -MD -MP -MF .dep/sys.o.d -I. -I../polarssl/include -I../chopstx
sys.c -o build/sys.o
sys.c: In function 'gpio_init':
sys.c:256:19: error: 'RCC_ENR_IOP_EN' undeclared (first use in this
function)
   RCC->APB2ENR |= RCC_ENR_IOP_EN;
                   ^
sys.c:256:19: note: each undeclared identifier is reported only once for
each function it appears in
sys.c:257:19: error: 'RCC_RSTR_IOP_RST' undeclared (first use in this
function)
   RCC->APB2RSTR = RCC_RSTR_IOP_RST;
                   ^
make: *** [build/sys.o] Errore 1

Seems the definition of RCC_RSTR_IOP_RST is missing (at least I couldn't
grep it anywhere...).

Quite surely it's something easy to fix (just a #define), but I'm a
complete newbie when it comes to arm development...

BYtE,
 Diego.




More information about the gnuk-users mailing list