Open7

tinySA Ultra操作メモ

satonesatone

初回動作確認

  1. 電源ON
    • 画面が付けばOK
  2. コンソール接続
    • MacbookとtinySAをUSBケーブルで接続
    • USBシリアル通信でバージョンなどを確認
% ls -l /dev/tty.*
crw-rw-rw-  1 root  wheel  0x900000a  1 18 21:26 /dev/tty.usbmodem4001  ← これ

% screen /dev/tty.usbmodem4001

tinySA Shell
ch> help
commands: freq time dac nf saveconfig clearconfig zero sweep pause resume wait repeat status caloutput save recall trace trigger marker line usart_cfg vbat_offset color if if1 lna2 agc actual_freq freq_corr attenuate level sweeptime leveloffset levelchange modulation rbw mode spur lna direct ultra load ext_gain output deviceid correction calc menu text remark
Other commands: version reset data frequencies scan hop scanraw test touchcal touchtest usart capture refresh touch release vbat help info selftest sd_list sd_read sd_delete threads

ch> info
tinySA ULTRA
2019-2024 Copyright @Erik Kaashoek
2016-2020 Copyright @edy555
SW licensed under GPL. See: https://github.com/erikkaashoek/tinySA
Version: tinySA4_v1.4-151-g31a89ce
Build Time: Jan 31 2024 - 15:23:02
Kernel: 4.0.0
Compiler: GCC 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
Architecture: ARMv7E-M Core Variant: Cortex-M4F
Port Info: Advanced kernel mode
Platform: STM32F303xC Analog & DSP

ch> version
tinySA4_v1.4-151-g31a89ce
HW Version:V0.4.5.1.1 
satonesatone

ファームウェアアップデート

STM32CubeProgrammerはWindows向けのようなのでdfu-utilを使用
https://tinysa.org/wiki/pmwiki.php?n=Main.UpdatingTheFirmware

  1. 最新のファームウェアのDL
  2. binファイルの名前変更
    • tinySA.bin に変更
  3. dfu-utilのインストール
% brew install dfu-util
% dfu-util -V
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
  1. tinySAにDFUモードを有効にした上で接続
    • 電源をOFF
    • USBでPCと接続
    • ジョグボタンを押したあとに電源ON
      • 画面は黒いままだが電源付近のランプは付いている
  2. 接続されていることの確認
    • リストにそれっぽいのがあればOK
% dfu-util --list
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found Runtime: [17e9:4301] ver=3781, devnum=4, cfg=1, intf=1, path="1-2.1", alt=0, name="UNKNOWN", serial="0000360113700"
Found DFU: [0483:df11] ver=2200, devnum=5, cfg=1, intf=0, path="0-1.1", alt=1, name="@Option Bytes  /0x1FFFF800/01*016 e", serial="206930532038"
Found DFU: [0483:df11] ver=2200, devnum=5, cfg=1, intf=0, path="0-1.1", alt=0, name="@Internal Flash  /0x08000000/128*0002Kg", serial="206930532038"
  1. アップデート
    • binのパスを指定する
    • -Sを指定する必要があった
    • 完了したら自動でtinySAの画面がONになる
% dfu-util -a 0 -s 0x08000000:leave -D tinySA.bin -S 206930532038
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(10) = dfuERROR, status(10) = Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations
Clearing status
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
Downloading element to address = 0x08000000, size = 185968
Erase   	[=========================] 100%       185968 bytes
Erase    done.
Download	[=========================] 100%       185968 bytes
Download done.
File downloaded successfully
Submitting leave request...
Transitioning to dfuMANIFEST state
  1. バージョンが上がったか確認
  • tinySAのCONFIG>VERSIONかシリアル接続でも確認可能