Skip to content

kabirz/zephyr_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zephyr enviroment setup

help

sdk version: zephyr-sdk-0.16.8

zephyr application

zephyr source code

west init -m <this_git_url> app
cd app
west update

build data_collect

support daq_f407vet6 and apollo_h743ii

applay all patches

# build
west build -b daq_f407vet6/apollo_h743ii apps/applications/data_collect --sysbuild

generate app

python apps/tools/export_images.py

image

  • build/app.bin: all image(mcuboot+zephyr).
  • build/data_collect/zephyr/zephyr.signed.bin: signed image for upgrade.

shell

  smp-tool -t udp -d 192.168.12.101 shell interactive

flash

debug tool

cargo-flash --chip STM32F407VETx/STM32H743IITx --binary-format bin --base-address 0x8000000 --path build/app.bin

smp-tool:

  smp-tool -t udp -d 192.168.12.101 app flash -u build/data_collect/zephyr/zephyr.signed.bin

python tool:

# mcuboot flash
./tools/smp_upload.py -a 192.168.12.101 --mcuboot build/data_collect/zephyr/zephyr.signed.bin
# app
./tools/smp_upload.py -a 192.168.12.101 build/data_collect/zephyr/zephyr.signed.bin