- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I planned this program to show the minimum usage of the basic components of PSoC
and to help testing a new board or peripheral when application is yet to be written.
このプログラムは PSoC を初めて使用する方に基本的なコンポーネントの使い方をお見せするとともに
新しく作った基板や周辺をアプリケーションが出来る前に試せるようにと考えて作ってみました。
More than a couple weeks has passed since I posted CY8CKIT-044 version of this program.
And what I learned during this period is that PSoC 6 is different from PSoC 4!
Anyway, here is the first PSoC 6 version of this program.
このプログラムの CY8CKIT-044 版を投稿してから、既に2週間以上が経ってしまいました。
その間で学んだことは、PSoC 6 は PSoC 4 とは違う!という事でした。
何はともあれ、このプログラムの PSoC 6 用の初版です。
When you build and program or debug, you will see something like below.
Basically the same help message is displayed.
Except the last one and the prompt.
プロジェクトをビルドして書込むかデバッグを開始すると下記のような表示になります。
基本的に前回のものと同じです、
最後の命令とプロンプトを除いては。
Assuming that the E-Ink Shield is mounted on your CY8CKIT-062-BLE.
Enter "i2c" at the prompt.
Now prompt changes to "CM0P:i2c>"
Enter "scan" to scan the I2C bus... it finds a device at 0x68, which is the BMI160 on the E-Ink Shield.
We can read its ID from the register address 0.
So enter "readreg 0", then expected ID of D1 is returned.
CY8CKIT-062-BLE に付いてくる E-Ink シールドを接続した状態で
プロンプトに "i2c" と入力します。
するとプロンプトは "CM0P:i2c>" にかわります。
更に "scan" と入力すると I2C バス上にあるデバイスを探し始め... 0x68 にデバイスがあることが分かります、
これは E-Ink シールドに乗っている BMI160 センサーです。
このセンサはレジスタアドレス 0 を読むと ID を返すことになっています。
そこで "readreg 0" と入力すると、予定通り ID の D1 が返されました。
Now let's try the catch of the day!
Either push "reset" key or Enter "return" to return to the "CM0P:>" prompt.
Then enter "cm4" to switch the core to the CorTex-M4.
The splash says that it is "MCU Tester (CM4)..." and the last command is now "cm0".
Here we can use all commands in the previous mode, except "cm4".
For example, if you enter "i2c" same set of commands are available.
それでは今回の目玉を実験しましょう!
基板の RST ボタンを押すか、"return" コマンドを入力して "CM0P:>" プロンプトに戻ってください。
そこで "cm4" と入力すると、使用コアが CorTex-M4 に変わります。
オープニングメッセージも "MCU Tester (CM4) ..." となってコマンドリストの最後は cm0 に変わっています。
ここで cm0 の時に使えたコマンドは cm4 を除き全て同様に使用できます。
例えば ”i2c" と入力すると I2C モードで使用できた全てのコマンドがここでも使えます。
To return the root prompt, enter "return".
Then enter "mem" to test the Memory Mode.
According to the TRM of PSoC 6/62 SRAM seems to be starting from 0x08000000.
So please enter "dump 0x08000000" to see what in the memory now.
トップレベルのプロンプトに戻るには、"return" を入力します。
次にメモリーモードを試したいので、"mem" と入力してください。
PSoC 6/62 の TRM によると、SRAM は 0x08000000 から始まっているようなので
"dump 0x08000000" と入力して、今、メモリーの中に何が入っているのか見てください。
Enter "return" to go back to the root prompt.
Then enter "cm0" to switch the core to CorTex-M0+.
Now we are home.
再度、トップレベルのプロンプトに戻るのに "return" と入力してください。
その後、"cm0" と入力すると CorTex-M0+ のコアに戻ることができます。
ただいま!
To explain all the commands will take some time and energy, so let me cheat by saying that...
For other commands, please refer to the page of the previous version below.
コマンド全ての説明はかなり長くなってしまいますので、各コマンドについては
先のヴァージョンの説明がある以下の URL をご参照ください。
MCU Tester, a Swiss Army Knife for PSoC (CY8CKIT-044 version)
moto
27-May-2020 First introduction lines were added
28-May-2020 Sensor name corrected to BMI160
28-May-2020 There were source/header for spi and i2c missing with the first attachment. Attached file was replace with 200528A version.
2-Feb-2021 A version for CY8CKIT-062-WiFi-BT was added.
15-Feb-2021 A version for CY8CPROTO-063-BLE was added.
- Labels:
-
PSoC 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Motoo-san,
Thanks for the great example code.
I have a question about it. What version of PDL are you using?
I want to confirm the operation on PSoC Creator4.3 before porting into MTB.2.1
Regards,
Kenshow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Kenshow-san,
Thank you for asking!
Since I downloaded 3.1.2 not a once and I "thought" I installed it (not a once),
I've been believing that I had and used 3.1.2, but when I checked the PDL version
in my PSoC Creator's Build Settings...
to my surprise, my PSoC Creator is using 3.1.0!
So I opened the PDL folder, and found that 3.1.2 was not installed!
Then I installed 3.1.2 and now my system has 3.1.2
But for the answer to your question, the sample attached in the first post is using the PDL 3.1.0.
28-May-2020
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
On 28-May-2020, one of my colleagues informed me that there were folders for spi and i2c missing.
So I replaced the attachment with 200528A version.
With 200528A version, there are some updates.
(1) loop and interval to i2c, just like the 5LP version.
(2) PDL used is now PDL 3.1.2 (Although I don't know if it affects the project).
28-May-2020
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I added schematic page enable/disable support.
Except tty, each schematic page can be enabled/disabled before compiling the project.
tty 以外の回路図ページを個別にenable / disable 出来るようになりました。
テストしたいコンポーネント以外のページを disable することで、必要なコンポーネントだけのテストが可能になりました。
Please refer to the description in the following sample.
使用方法は下記のサンプルページをご参照ください。
PSoC Creator Schematic Page Enable/Disable Sample
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moto,
Is there a Version of this MCU Tester, a Swiss Army Knife for PSoC - PSOC6 in Modus Toolbox?
I thought i once saw it on the forum , but just looked and could not find it.
if it is can you please point me to thread or attach.
-Thanks
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Mike-san,
I'm sorry for this slow response.
And I'm even more sorry that there is no Modus Toolbox version of this sample, so far.
Yes, I want to implement it in Modus Toolbox, too.
Probably, I need to study Modus Toolbox more, though.
Anyway, thank you very much for asking.
Best Regards,
2-Feb-2021
Motoo Tanaka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Recently I had a chance to write some program on CY8CKIT-062-WiFi-BT.
So this morning, I decided that it is the time to port this sample onto CY8CKIT-062-WiFi-BT!
I copied the project and changed the target device...
when I checked the pins, no pin needed to be changed...
After all, I could run this project without modifying a line of code,
except changing the target device.
CY8CKIT-062-BLE and CY8CKIT-062-WiFi-BT were quite compatible, Good Job Cypress!
Anyway, attached is the version for CY8CKIT-062-WiFi-BT.
moto