Debugger error/デバッグ不良

Tip / ログイン to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
適用対象外

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とプログラムを添付しておきます。

よろしくお願いいたします。

0 件の賞賛
1 解決策

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.

元の投稿で解決策を見る

0 件の賞賛
8 返答(返信)
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

先ず、Noteに関してはUSBFS_1:Dm(0)\,\USBFS_1:Dp(0)\にPinがアサインされていない状態でビルドした際に、自動にPinがアサインされた事の通知です。PSoC CreatorのDesign Wide Resources (EMG.cydwr) --> Pinsで確認してください。

次にお使いのHW (Board) 情報を頂けないでしょうか?

0 件の賞賛
Anonymous
適用対象外

tamx 様

お返事ありがとうございます。Pinアサインに関して確認いたしましたが、

やはり使用していないPinが適当に割り振られているだけのようでした。

今回のエラーと根本的に関係がないようなのでこのnoteはスルーしようと思います。参考になりました。

使用しているボードは

PSoC 5LP CY8C5868AXI-LP035

です。

お手数ですが、解決までお付き合いいただけると幸いです。

0 件の賞賛

今回のWarningはDesign(TopDesign.cysch)の中で非同期のシグナル(ADCのeoc)がClocking networkに存在している事を示しており、

Sync Componentを使用することにより対処可能です。

詳しくは、下記ドキュメントのPage 20に今回のWarningに関する記述がございますので、ご参照ください。

http://www.cypress.com/file/179056/download

0 件の賞賛

デバッグ開始時の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が発生しないことを確認しました。

0 件の賞賛

Wouldn't be too bad to answer in English language as originally posted. So other people could see if the question is answered.

Bob

Anonymous
適用対象外

Hi Bob.

I wanted reply as many as possible.

I appreciate with you.

Regards

0 件の賞賛

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.

0 件の賞賛
Anonymous
適用対象外

tamx様

お返事ありがとうございました。添付の資料を拝見し、その通りにSync Componentを配置したところWarningも消え、コードの変更を加えたところデバッグもきちんと動き出しました。

この度はご丁寧にありがとうございました。

0 件の賞賛