cancel
Showing results for 
Search instead for 
Did you mean: 

unable to debug using SPC5-UDESTK

gilad2
Associate II
Posted on April 08, 2015 at 09:33

Hi there,

I am trying to run a test application (SPC560Bxx OS-Less test application) on SPC560B60L5 mounted in SPC560BADAPT144S evaluation board, using SPC5-UDESTK.

After generating and building the test application I am trying to connect by pressing hte debug button, but it says that launch failed, binary not found.

After creating a ''C/C++ Application'' debug configuration and pointing it at the out.elf file in the build directory, I am still failing to connect with the error:

Error while launching command: gdb --version.

Is there anything missing in my SPC5 installation?

Also, could someone point me at a step by step tutorial application notes? I was unable to find one in ST's site.

Thanks in advance.
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
3 REPLIES 3
Erwan YVIN
ST Employee
Posted on April 08, 2015 at 09:44

Hello Gilad ,

You have to use the Debug Button from the activity wizard (SPC5Studio perspective).

(Cf Screenshot)

Do you install PLS-UDE Visual Platform for the debugging?

Best Regards

Erwan

________________

Attachments :

2015-04-08_094341.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWfs&d=%2Fa%2F0X0000000boT%2FrZ_LI1Ww9ZwWarLFKAUqHc0SBda3f6zbN7vPHaYi0MQ&asPdf=false
gilad2
Associate II
Posted on April 08, 2015 at 14:56

Thanks Erwan, I was indeed missing the UDE installation.

So now I am able to load and program the chip and even see the example application blinking a led, so that's great, but the CAN packets it is supposed to transmit are not showing.

I can see in the pin wizard that surprisingly no pads are configured for any flexcan module, so I configured pb0 and pb1 to be flexcan0 pins (those are the pads physically connected to the high speed CAN transceiver on the evaluation board), but still no luck. 

I regenerated the code after configuring the pin wizard, I assume that's what I was supposed to do?

Also, for PB1, the RX CAN pad, I was unable to configure CAN0RX directly, but had to configure it as ''GPIO17 [WKPU4, CAN0RX]''.

as a result I get the warning:

Warning: PADSEL 'ps62' has not a valid selection. Pin 'PIN_GPIO17' set to 'NOT_USED'.

and I am unable to find where to configure that ps62 so the signal will be routed to the flexcan0 module.

I'd appreciate any help on the matter or also a referral to a document a begginer such as myself can read.

Thanks.

Erwan YVIN
ST Employee
Posted on April 10, 2015 at 10:30

Hello Gilad ,

For PADSEL62, LIN0RX/LIN0TX is already set in this demo.(Cf Screenshot)

(no need to set..)

If you want to use CAN0TX/CAN0RX, you should disable LIN0RX/LIN0TX on others pins or used CAN1RX/CAN1TX.

Best regards

Erwan

________________

Attachments :

2015-04-10_102449.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qXVy&d=%2Fa%2F0X0000000bop%2Fe7xy8gZcB_Rsip6x7OFfXvfpLYJ8K6PLygUR.kk29Wk&asPdf=false

2015-04-10_103017.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qXUb&d=%2Fa%2F0X0000000bon%2FaiFvvupOwNVn.8ylJDO_WaBCovxqevgkYLOnqKp27O8&asPdf=false