Following this topic : https://forum.bitcraze.io/viewtopic.php?f=16&t=4263, we made a first custom version of a sniffing Node, simplified to have minimum amount of component on it (no LEDs, no DC regulator...). We flash it via USB (dfu mode) and get sniffing data over UART 1 (called "FTDI" UART on the schematic).
The fact is, for this first version of custom Node, we need to have it powered by the RPI in order to be able to flash and configure it via USB (because USB gives 5V, and we don't have a 3.3DC regulator in the board).
So, we are planning to do a 2nd version of the Tag, keeping the UART for data output, but using the SWD port to flash the STM, since it will allow us to flash the tag without having the need for it to be powered by an RPI.
For now, I am trying to flash an "Official" Node using a ST-LINK V2.1 based on a NUCLEO-64 STM32F072 board. I am working on Debian, and, while in lps-node-firmware repository, flashing with
Code: Select all
make dfu
To connect the ST-LINK to the Node, I use the Cortex SWV adapter that Bitcraze designed. And I have plugged off the two jumper on the NUCLEO ST-LINK in order to use it to flash an external MCU and not the one on the NUCLEO Board.
The problem is, when I try to flash with
Code: Select all
make flash
Code: Select all
openocd -d2 -f interface/stlink-v2.cfg -f target/stm32f0x.cfg -c init -c targets -c "reset halt" \
-c "flash write_image erase bin/lps-node-firmware.elf" -c "verify_image bin/lps-node-firmware.elf" -c "reset run" -c shutdown
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'
make: *** [Makefile:91: flash] Error 1
I hope this is as clear as possible for you.
Thanks in advance,
Sylvain