- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Hello,
I've started PSoC recently because I had to make existing program work.
I hope that it is completed program so I don't have to modify the program code.
However it doesn't work. Now I have below warning and note.
note: pft.M0040:The following 2 pin(s) will be assigned a location by the filter: \USBFS_1:Dm(0)\,\USBFS_1:Dp(0)\
warning: sta.M0021:Warning-1350:Asynchronous path(s) exist from "\ADC_DelSig_1:DEC\/interruput" to "CyBUS_CLK". See the timing report for details.
And when I started to debug, I got below error immediately.
Debugger exited unexpectedly during run. Encountered error (GDB encountered an error and had to close. See output window for more information. See output window for more information.)
I had thought that above note and warning caused Debug error, but they disappear often.
But whatever I do, the debugging error always appears.
Who do you know how to fix them?
My system configuration.
Windows 10
PSoC Creator4.2
Also I attach Time report and my program.
-----below Japanese-----
先日既存のプログラムを動かすためにPSoCを使い始めたのですが、ビルドの際にしばしばwarningとnoteが出てきます。
noteは
pft.M0040:The following 2 pin(s) will be assigned a location by the filter: \USBFS_1:Dm(0)\,\USBFS_1:Dp(0)\
warningは
sta.M0021:Warning-1350:Asynchronous path(s) exist from "\ADC_DelSig_1:DEC\/interruput" to "CyBUS_CLK". See the timing report for details.
と出てきます。クロックやSystem設定をいじったのですが現状変わらずです。
また、何度デバッグを行っても以下のエラーが出てきてしまい、デバッガーが強制終了してしまいます。
Debugger exited unexpectedly during run. Encountered error (GDB encountered an error and had to close. See output window for more information. See output window for more information.)
どなたか解決策等ご存知でしたらご教授願えればと思います。
パソコン環境としては
Windows 10とPSoC Creator 4.2を使用しています。
warningが出た際に吐き出されるTime reportとプログラムを添付しておきます。
よろしくお願いいたします。
解決済! 解決策の投稿を見る。
- ラベル:
-
PSoC 5LP
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Here is summary of answers/clarifications for original 3 questions.
- Regarding the note, this was caused by what the pins are not assigned initially. Actually \USBFS_1:Dm(0)\,\USBFS_1:Dp(0)\ were not assigned before (clean) build. Then PSoC Creator automatically assigned these pins.
- Regarding the warning, the error comes because of timing differences of clocking network. the sync component can be used to solve it.
Please check the following document : http://www.cypress.com/file/179056/download, page 20.
- For the error when starting debug on PSoC Creator, according the output log the error happened in GDB utils.c. The reason why this error happened was that the variable "NB_EMG" in main() was used for the array of element number, e.g. usb_data_cpt[].
So, the workaround would be:
---
#define NB_EMG 6 <== Add this define.
<snip>
int main()
{
/* uint8 NB_EMG = 6; */ <== Comment out this variable.
---
And, this workaround was confirmed on the shared project.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
先ず、Noteに関してはUSBFS_1:Dm(0)\,\USBFS_1:Dp(0)\にPinがアサインされていない状態でビルドした際に、自動にPinがアサインされた事の通知です。PSoC CreatorのDesign Wide Resources (EMG.cydwr) --> Pinsで確認してください。
次にお使いのHW (Board) 情報を頂けないでしょうか?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
tamx 様
お返事ありがとうございます。Pinアサインに関して確認いたしましたが、
やはり使用していないPinが適当に割り振られているだけのようでした。
今回のエラーと根本的に関係がないようなのでこのnoteはスルーしようと思います。参考になりました。
使用しているボードは
PSoC 5LP CY8C5868AXI-LP035
です。
お手数ですが、解決までお付き合いいただけると幸いです。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
今回のWarningはDesign(TopDesign.cysch)の中で非同期のシグナル(ADCのeoc)がClocking networkに存在している事を示しており、
Sync Componentを使用することにより対処可能です。
詳しくは、下記ドキュメントのPage 20に今回のWarningに関する記述がございますので、ご参照ください。
http://www.cypress.com/file/179056/download
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
デバッグ開始時のErrorに関して、Error自体OutputログからGDBのutils.c内で発生しており、その原因となるのはmain()関数内の変数NB_EMGを配列usb_data_cpt[]等のelement数として使用しているためです。
Workaroundは例として下記になります。
#define NB_EMG 6 <== Add this define.
<snip>
int main()
{
/* uint8 NB_EMG = 6; */ <== Comment out this variable.
尚、上記変更でデバッグ開始時にErrorが発生しないことを確認しました。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Wouldn't be too bad to answer in English language as originally posted. So other people could see if the question is answered.
Bob
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Hi Bob.
I wanted reply as many as possible.
I appreciate with you.
Regards
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Here is summary of answers/clarifications for original 3 questions.
- Regarding the note, this was caused by what the pins are not assigned initially. Actually \USBFS_1:Dm(0)\,\USBFS_1:Dp(0)\ were not assigned before (clean) build. Then PSoC Creator automatically assigned these pins.
- Regarding the warning, the error comes because of timing differences of clocking network. the sync component can be used to solve it.
Please check the following document : http://www.cypress.com/file/179056/download, page 20.
- For the error when starting debug on PSoC Creator, according the output log the error happened in GDB utils.c. The reason why this error happened was that the variable "NB_EMG" in main() was used for the array of element number, e.g. usb_data_cpt[].
So, the workaround would be:
---
#define NB_EMG 6 <== Add this define.
<snip>
int main()
{
/* uint8 NB_EMG = 6; */ <== Comment out this variable.
---
And, this workaround was confirmed on the shared project.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
tamx様
お返事ありがとうございました。添付の資料を拝見し、その通りにSync Componentを配置したところWarningも消え、コードの変更を加えたところデバッグもきちんと動き出しました。
この度はご丁寧にありがとうございました。