2010年7月20日火曜日
FreeRTOS for STM32F103 with gcc 4.4.x. (It don't use any evaluation software. It is based on open source software.)
A few days ago, I was checked with 'LED toggle demo program' on CQ-STARM board.
The board has STM32/Cortex-M3. It's not so good example.
(Hey! It's 32 bits MPU! Why don't you use the power of it!)
So, I decided to port FreeRTOS to the board.
http://www.freertos.org/
The clock is 72M[Hz], It can be pracical application.
The design of FreeRTOS is great.
It is easy to port to another platform.
Many demo projects in FreeRTOS uses evaluation software.
(e.g:Rowley CrossWorks, IAR, Keil, Red Suite)
So many users don't like evaluation software I know.
You can try this port if you don't like use it.
The concept is 'Our environment should be free'.
(Download from here)
I hope to your helps!
The board has STM32/Cortex-M3. It's not so good example.
(Hey! It's 32 bits MPU! Why don't you use the power of it!)
So, I decided to port FreeRTOS to the board.
http://www.freertos.org/
The clock is 72M[Hz], It can be pracical application.
The design of FreeRTOS is great.
It is easy to port to another platform.
Many demo projects in FreeRTOS uses evaluation software.
(e.g:Rowley CrossWorks, IAR, Keil, Red Suite)
So many users don't like evaluation software I know.
You can try this port if you don't like use it.
- The environment is Ubuntu 10.04 with open source software.
- It don't use any evaluation software. I don't like it :)
- The demo project oriented from CORTEX_STM32F103_Primer_GCC.
The concept is 'Our environment should be free'.
(Download from here)
I hope to your helps!
2010年7月18日日曜日
CQ-STARMでFreeRTOSを動作させる。(arm-none-eabi-gcc)
先日の時点でCQ-STARMでLEDをチカチカさせることは確認済みです。
せっかくSTM32/Cortex-M3が搭載されている基板なのですから、これだけでは楽しくありません。
そこで調子に乗ってFreeRTOSの最新版をこの基板で動作させることにしました。
http://www.freertos.org/
クロックは72M[Hz]ですから、かなり実用的なアプリケーション開発ができそうです。
FreeRTOSは、その優れた設計思想のおかげでかなり楽にポーティングが可能なOSとなっています。昨夜から始めたポーティング作業が完了したのでファイルにまとめてアップロードしておきます。
何かの参考になれば幸いです。
ダウンロードはこちらから(Download from here)
オープンソースソフトウェアを中心に構成した開発環境では情報が分散しがちです。
ダウンロード先にファイルが何らかのヒントになれば幸いです。
せっかくSTM32/Cortex-M3が搭載されている基板なのですから、これだけでは楽しくありません。
そこで調子に乗ってFreeRTOSの最新版をこの基板で動作させることにしました。
http://www.freertos.org/
クロックは72M[Hz]ですから、かなり実用的なアプリケーション開発ができそうです。
FreeRTOSは、その優れた設計思想のおかげでかなり楽にポーティングが可能なOSとなっています。昨夜から始めたポーティング作業が完了したのでファイルにまとめてアップロードしておきます。
何かの参考になれば幸いです。
- ポーティングはUbuntu 10.04上にオープンソースなソフトウェアのみで行いました。
- 制限の付いた商用ツールなどは使っていません。(あまり使う気になれない。)
- DemoはCORTEX_STM32F103_Primer_GCCを元にしています。
ダウンロードはこちらから(Download from here)
オープンソースソフトウェアを中心に構成した開発環境では情報が分散しがちです。
ダウンロード先にファイルが何らかのヒントになれば幸いです。
2010年7月12日月曜日
Accessing to a STM32 MPU with OpenOCD and JTAGkey2
I tried to run OpenOCD with my JTAGkey2.
- Getting and Extracting the libftd2xx
- http://www.ftdichip.com/Drivers/D2XX.htm
- tar xvfz libftd2xx0.4.16.tar.gz
- Getting the OpenOCD latest source codes.
- git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
- ./bootstrap
- Configuring the option
- ./configure --enable-ft2232_libftdi --with-ftd2xx-linux-tardir=/path/to/libftd2xx0.4.16
- Building...
- make
- Editing a interface configuration file.
- -ft2232_device_desc "Amontec JTAGkey-2"
- +ft2232_device_desc "Amontec JTAGkey-2P A"
- Running...
shinta@ubuntu:~/Projects/openocd/openocd/src$ ./openocd -f interface/jtagkey2.cfg -f target/stm32.cfg
Open On-Chip Debugger 0.5.0-dev-00403-ge8445c9-dirty (2010年07月11日-13:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)
Info : stm32.cpu: hardware has 6 breakpoints, 4 watchpoints
2010年5月6日木曜日
the STM32 Primer Community
随分と前に購入して放置していたSTM32 Primer2。
本格的にRTOSを入れて遊んでみることにした。
the STM32 Primer Communityから開発ツール(CD_STM32-Primer_BN28.zip)をダウンロード。
Ride7/Setup.exeを実行する。
購入時に試した時よりも良くなっている。
RFlasher7上でWrong MCU DEVICE IDといわれる時にはProcessorNameを確認する。
後はhttp://www.stm32circle.com/resources/upgrade.php
か らアップデータを入手して、Raisonance\Ride\lib\ARM\CircleOSにコピーする。
ここでRestore_Primer2_Circle_Factory.batを実行して工場出荷状態に戻しておくと良い。
Cortex_pgm.exe に対してパスが通っていることが前提になっているので
..\..\..\bin\Cortex_pgm TSTM32F103VET6 E PPrimer2_Circle_Factory.hex S
などとする。
本格的にRTOSを入れて遊んでみることにした。
the STM32 Primer Communityから開発ツール(CD_STM32-Primer_BN28.zip)をダウンロード。
Ride7/Setup.exeを実行する。
購入時に試した時よりも良くなっている。
RFlasher7上でWrong MCU DEVICE IDといわれる時にはProcessorNameを確認する。
後はhttp://www.stm32circle.com/resources/upgrade.php
か らアップデータを入手して、Raisonance\Ride\lib\ARM\CircleOSにコピーする。
ここでRestore_Primer2_Circle_Factory.batを実行して工場出荷状態に戻しておくと良い。
Cortex_pgm.exe に対してパスが通っていることが前提になっているので
..\..\..\bin\Cortex_pgm TSTM32F103VET6 E PPrimer2_Circle_Factory.hex S
などとする。
登録:
コメント (Atom)