2023年10月5日 星期四

STM32MP1 download image

First, switch to DFU mode, refer to the image
$ lsusb
Bus 003 Device 009: ID 0483:df11 STMicroelectronics STM Device in DFU Mode

$ STM32_Programmer_CLI -l usb
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.10.0
      -------------------------------------------------------------------

=====  DFU Interface   =====

Total number of available STM32 device in DFU mode: 1

  Device Index           : USB1
  USB Bus Number         : 003
  USB Address Number     : 002
  Product ID             : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
  Serial number          : 0025001F3132511831373339
  Firmware version       : 0x0110
  Device ID              : 0x0500

Select tsv file of target board
ubuntu@ubuntu17G-XD:~/STMicroelectronics/Yocto
$ stm32mp1_openthread/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1/flashlayout_st-image-otbr/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv ^C

ubuntu@ubuntu-17G-XD:~/STMicroelectronics/Yocto
$ cd stm32mp1_openthread/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1

ubuntu@ubuntu-17G-XD:~/STMicroelectronics/Yocto/stm32mp1_openthread/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1
$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-otbr/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv



$ cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
        key_mgmt=NONE
}
network={
        ssid="SomebodyiPhone"
        psk=1111111111111111111111111111111111111111111111111111111111111111
}


$ connect_wifi.sh
#!/bin/bash

#wpa_passphrase "your_ssid_name" "your_ssid_key" >> /etc/wpa_supplicant.conf
wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
sleep 5
iw wlan0 link

#
#ot-ctl thread stop
#ot-ctl ifconfig down
#ot-ctl networkkey 00112233445566778899aabbccddeeff
#ot-ctl extpanid 1111111122222222
#ot-ctl panid 8737
#ot-ctl channel 14
#ot-ctl ifconfig up
#ot-ctl thread start

沒有留言:

張貼留言