Skip to content
This is the micro controller code generated by PTB WG 1.71 in WP1 of the EMPIR project.
C C++ Other
Branch: SSU_V2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
Drivers
Inc
Middlewares/Third_Party
Src
doc/profiling
nanopb @ a9c207e
protobuff_deps
startup
tools
webpages
.cproject
.gitignore
.gitmodules
.mxproject
.project
NUCLEO-F767ZI.xml
README.md
STM32F767ZITx_FLASH.ld
met4FOF_SSU_V2 Debug (1).cfg
met4FOF_SSU_V2 Run.cfg
met4FOF_SSU_V2.ioc
met4FOF_SSU_V2.pdf
met4FOF_SSU_V2.txt
syscalls.c

README.md

Software for the Met4FoF Smartup Unit V2

Build System.

The software was and is created with SW4STM32 (gcc). SEGGER Systemview can be used for debugging.

Dependencies and used libraries

Used for Library Name Version Link
real-time operating system FreeRTOS 9.0.0 https://www.freertos.org/FreeRTOS-V9.html
Ethernet LWIP 2.0.3 ST DM00103685
Data serialization nanopb a2db482... https://github.com/nanopb/nanopb

using nanopb to generate Code

C

see also https://jpa.kapsi.fi/nanopb/docs/ and https://github.com/nanopb/nanopb/blob/master/docs/concepts.rst

nanopb_picture

cd nanopb/
mkdir messages
cp ../protobuff_deps/messages.proto messages/
cp generator/proto/nanopb.proto ./
protoc -omessage.pb messages/messages.proto
python generator/nanopb_generator.py message.pb
cp message.* ../protobuff_deps/
cd ./generator/proto
make

python

https://developers.google.com/protocol-buffers/docs/pythontutorial

cd protobuff_deps
mkdir python
protoc --python_out=python messages.proto

Converting St-Link to Segger J-link

https://www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/ Download software extract and run STLinkReflash.exe

  1. Accept Segger license
  2. Accept ST license
  3. Choose Upgrade to J-Link [1] The device is flashed and reconnected Output looks like
Preparing for FW update (can take up to 10 seconds)...O.K.
Identifying ST-LINK variant...O.K.: ST-LINK/V2-1
Performing firmware update...O.K.

now you have an working J-Link at your STM32-Board.

Debug Output

RTT_pic

https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/

https://mcuoneclipse.com/2015/07/07/using-segger-real-time-terminal-rtt-with-eclipse/

Telnet Config for RTT dumping

Param Value
Host 127.0.0.1
Timeout 20 sec
Port 19021
You can’t perform that action at this time.