2018年6月29日 星期五

STM32F4discovery + Jlink + OpenOCD 0.9.0

1. 安裝openocd
$ sudo apt-get install openocd
2. 查看ST-LINK的vid和pid
pi@raspberrypi:~ $ lsusb
Bus 001 Device 007: ID 1366:0105 SEGGER
3. 修改stm32f4discovery.cfg,將stlink-v2-1.cfg 改為 jlink.cfg 將transport select hla_swd 改為 transport select swd
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/jlink.cfg]

transport select swd

source [find target/stm32f4x.cfg]

reset_config srst_only
4. 啟用openocd
$ sudo openocd -f board/stm32f4discovery.cfg
5. 參考來源 https://blog.csdn.net/u013944565/article/details/78569746 https://www.linuxidc.com/Linux/2015-08/121321.htm https://stackoverflow.com/questions/31638347/stm32f0-st-link-v2-openocd-0-9-0-open-failed

STM32F4discovery + ST-link v2.1 + OpenOCD 0.9.0

1. 安裝openocd
$ sudo apt-get install openocd
2. 查看ST-LINK的vid和pid
pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 0483:374b STMicroelectronics ST-LINK/V2.1 (Nucleo-F103RB)
3. 修改stm32f4discovery.cfg,將stlink-v2.cfg 改為 stlink-v2-1.cfg
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/stlink-v2-1.cfg]

transport select hla_swd

source [find target/stm32f4x.cfg]

reset_config srst_only
4. 啟用openocd
$ sudo openocd -f board/stm32f4discovery.cfg
5. 參考來源 https://blog.csdn.net/u013944565/article/details/78569746 https://www.linuxidc.com/Linux/2015-08/121321.htm https://stackoverflow.com/questions/31638347/stm32f0-st-link-v2-openocd-0-9-0-open-failed

2018年6月24日 星期日

SDK編譯

1. 安裝toolchain
$ sudo chmod 777 /opt

$ make install-glibc-toolchain
2. arm-none-linux-gnueabi-gcc -v 出現: No such file or directory
$ sudo apt-get install ia32-libs
3. make menuconfig 出現: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. ***
$ sudo apt-get install libncurses5-dev
4. make menuconfig 出現: /bin/bash: dialog: command not found
$ sudo apt-get install dialog
5. configure: error: GNU M4 1.4 is required
$ sudo apt-get install m4
6. ./bootstrap: 18: ./bootstrap: aclocal: not found
$ sudo apt-get install automake
7. ./bootstrap: 20: ./bootstrap: libtoolize: not found
$ sudo apt-get install libtool
8. *** [flex.info] Error 1
$ sudo apt-get install flex
9. WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site.
$ sudo apt-get install texinfo
10. ../../ylwrap: line 111: yacc: command not found
$ sudo apt-get install bison
11. /bin/sh: 1: lzop: not found
$ sudo apt-get install lzop
12. "mkimage" command not found - U-Boot images will not be built
$ sudo apt-get install uboot-mkimage

2018年6月1日 星期五

義法

推薦行程:


Day 1 國內-巴黎,機票選擇當天抵達

Day 2 巴黎藝術時尚一日:羅浮宮-聖母院-香榭麗舍大街-凱旋門

Day 3 巴黎-米蘭:艾菲爾鐵塔-塞納河遊船-老佛爺購物,晚上乘坐夜火車前往米蘭

Day 4 米蘭-威尼斯:米蘭大教堂-埃曼紐爾二世拱廊-聖馬可廣場-嘆息橋

Day 5 威尼斯-佛羅倫斯,威尼斯外島彩色島-聖馬可大教堂-貢多拉,傍晚出發前往佛羅倫斯

Day 6 佛羅倫斯藝術一日:佛羅倫斯美術學院-聖母百花大教堂-烏菲茲美術館

Day 7 佛羅倫斯-羅馬:皮蒂宮-特萊維噴泉-西班牙廣場

Day 8 羅馬:遊覽梵蒂岡博物館、聖彼得大教堂、聖天使堡….

Day 9 羅馬尋古一日:鬥獸場-真理之口-威尼斯廣場

Day 10 離開羅馬

Day 11 抵達國內


> 巴黎
建議遊玩天數3天


【巴黎市區】
艾菲爾鐵塔、凱旋門、羅浮宮、巴黎聖母院是巴黎著名四大地標建築,如果在巴黎只有一天時間,那就參觀這四個景點吧。

【巴黎近郊】
凡爾賽宮,楓丹白露宮、迪士尼、山谷購物村、吉維尼小鎮,均是可以從巴黎一日往返的近郊遊玩熱門地。

【聖米歇爾山】
> 米蘭
【米蘭市區】
【聖西羅球場】

> 威尼斯
【主島】
【外島】

> 佛羅倫斯
建議遊玩天數2天


【聖母百花大教堂】

> 羅馬
建議遊玩天數2天

【羅馬市區】
鬥獸場、許願池、萬神殿、西班牙台階、圖拉真柱…..

【梵蒂岡】
聖彼得大教堂

https://kknews.cc/travel/k844g28.html
https://kknews.cc/travel/59nb56k.html
https://kknews.cc/zh-tw/travel/j8z4q6q.html
http://www.musictravel.tw/?action=travel&id=53#