查看EFM32的源代码
←
EFM32
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== Commander === '''硬件使用 J-Link:''' [[文件:JLink Interface Pinout SWD.jpg]] 使用 5 根线: VTref, GND, SWIO, SWCLK, RESET Simplicity Commander is the Silabs official tool. It is invoked using a simple Command Line Interface (CLI). * Flash their own applications. * Configure their own applications. * Create binaries for production. Simplicity Commander is designed to support the Silicon Labs Wireless STK and STK platforms By default in Studio v4, Simplicity Commander can be found at the following path: C:\SiliconLabs\SimplicityStudio\v4\developer\adapter_packs\commander\commander.exe '''Doc:''' [http://www.silabs.com/documents/public/user-guides/ug162-simplicity-commander-reference-guide.pdf Simplicity Commander Reference Guide] '''[https://www.silabs.com/products/mcu/programming-options Download:]''' * https://www.silabs.com/documents/public/software/SimplicityCommander-Windows.zip * https://www.silabs.com/documents/public/software/SimplicityCommander-Linux.zip * https://www.silabs.com/documents/public/software/SimplicityCommander-Mac.zip '''Basic:''' <source lang=bash> $ commander flash --help $ commander adapter probe --serialno <J-Link serial number> [--kit] [--boards] [--firmware] $ commander adapter probe --serialno 440050184 $ commander adapter reset $ commander device info --tif SWD–-speed 1000 # 1000 ~ 8000 kHz # If the --tif and --speed options are not used, the default configuration is SWD and 4000 kHz Setting debug interface speed to 1000 kHz Setting debug interface to SWD Part Number : EFR32BG1P332F256GJ43 Die Revision : A2 Production Ver : 138 Flash Size : 256 kB SRAM Size : 32 kB Unique ID : 000b57fffe0934e3 DONE </source> '''Program user data page:''' <source lang=bash> $ commander.exe readmem --range 0x0FE081F0:0x0FE081F8 -d EFM32ZG110F32 # show the chip uuid @devinfo region $ commander readmem --region @userdata --outfile user.hex -d EFM32ZG110F32 # or: .bin, .s37 Reading 2048 bytes from 0x0fe00000... Writing to userpage.hex... DONE $ commander flash --address 0x0fe00000 12008130001.bin -d EFM32ZG110F32 # --region: EFM32, EZR32, EFR32: @mainflash, @userdata, @lockbits, @devinfo # EM3xx: @mfb, @cib, @fib $ commander readmem --range 0x0FE00000:+8 -d EFM32ZG110F32 # show the first 8 bytes @userdata region $ commander device pageerase --region @userdata # erase the userdata area Erasing range 0x0fe00000 - 0x0fe00400 DONE $ commander device pageerase –-range 0x200:0x6000 Erasing range 0x00000000 - 0x00006000 DONE </source> '''Flash serveral files:''' <source lang=bash> $ commander flash blink.s37 userpage.hex Adding file blink.s37... Adding file userpage.hex... Flashing 2812 bytes, starting at address 0x00000000 Resetting... Uploading flash loader... Waiting for flashloader to become ready... Erasing flash... Flashing... Verifying written data... Finished! Flashing 2048 bytes, starting at address 0x0fe00000 Resetting... Uploading flash loader... Waiting for flashloader to become ready... Erasing flash... Flashing... Verifying written data... Resetting... Finished! DONE </source> '''Patch Flash:''' <source lang=bash> $ commander flash -–patch <address>:<data>[:length] $ commander flash --patch 0x120:0xAB --patch 0x3200:0xA5A5:2 Patching 0x00000120 = 0xAB... Patching 0x00003200 = 0xA5A5... Flashing 2048 bytes, starting at address 0x00000000 Resetting... Uploading flash loader... Waiting for flashloader to become ready... Erasing flash... Flashing... Verifying written data... Finished! Flashing 2048 bytes, starting at address 0x00003000 Resetting... Uploading flash loader... Waiting for flashloader to become ready... Erasing flash... Flashing... Verifying written data... Resetting... Finished! DONE </source> ''' Device Lock and Protection:''' <source lang=bash> $ commander device lock –-debug enable Locking debug access... DONE $ commander device lock –-debug disable ERROR: Could not get MCU information Removing all locks/protection... Unlocking debug access (triggers a mass erase)... DONE $ commander device protect --write --range <startaddress>:<endaddress> $ commander device protect --write --range 0x0:0x4000 # Protects all flash pages in the first 16 kB $ commander device protect --write --region @mainflash Write-protecting all pages in main flash. DONE $ commander device protect --write --disable Disabling all write protection for all pages DONE </source> <source lang=bash> $ commander device masserase Erasing chip... DONE $ commander device reset Resetting chip... DONE $ commander device recover Recovering "bricked" device... DONE $ commander aem measure [–-windowlength <time in ms>] $ commander aem measure –-windowlength 200 Averaged over 200 ms: Current [mA]: 5.359 Power [mW] : 17.763 Voltage [V] : 3.314 DONE </source> <br><br>
返回到
EFM32
。
个人工具
3.142.132.137
该IP地址的讨论
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面