cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Pinmap Wizard for SPC560B50L5

nooshin_1382
Associate II
Posted on March 12, 2015 at 18:04

Hi

When i want to config Pin for flexcan1 in spc560b50L5 i set the pin PC10 and PC11 for TX and RX but flexcan1port not work.

 (same function work for CANFlex 0)

then i change the other pins in pinmap wizard like output but when i close the pinmap and next time re-open the pin map all CANRX pins have an error.

when i check the pins pinmap automaticly change the CANRX and Flexcan1 do not work

is this a bug or not ?

please help me

thanks

Best Regards Vanima
5 REPLIES 5
Erwan YVIN
ST Employee
Posted on March 13, 2015 at 15:31

Hello Vanima ,

No problem happenned on 3.4.2

1) Open the Pinmap Wizard

2) Set the pin PC10 and PC11 for TX and RX but flexcan1

    Save the Pinmap (CTRL+S)

3) Close the Pinmap, the Pinmap Information has been put in your configuration editor  ...now your configuration.xml has the DIRTY Decorator .. you have to save your Configuration editor.

This behavoir is like that to prevent from some synchro issues between the Pinmap & the configuration editor.

if you reopen the PINMAP WIZARD , it should be OK

   Best regards

                      Erwan

nooshin_1382
Associate II
Posted on March 14, 2015 at 06:53

Hi Erwan

Thank you so much for fast Response

I do your note's butthis issue is not solved

i take a picture from my screenfor you

PIN102 ,PIN103 ,PIN116 are output .

these are Warnings in console :

Warning: Wrong direction for function: ''CAN1RX''. Expected ''Digital Input'', found ''O''. Set to ''Digital Input''.

Warning: Function ''CAN1RX'' on pin ''PC[11]'' already configured on pin ''PC[3]''.

Warning: Function ''CAN1RX'' on pin ''PF[15]'' already configured on pin ''PC[11]''.

why Pin map change the setting?

How Can I Enable the flexcan2 pins Manualy in my program?

best regards

vanima

________________

Attachments :

pinmap.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qXMm&d=%2Fa%2F0X0000000bok%2FWf3h.ofE9RxTuAfvLBr2bp0T9NKE2Lc7GqJaF5Ihejg&asPdf=false
Erwan YVIN
ST Employee
Posted on March 16, 2015 at 11:14

Hello Vanima ,

I have reproduced the bug :

The error report has been submitted

You can set manually in the ''io_settings'' part your different pins in HAL Board

(cf screenshot)

For this , you need to use the Reference Manual

Best Regards

Erwan

________________

Attachments :

2015-03-16_111349.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWHx&d=%2Fa%2F0X0000000boA%2FE4UqnBxVXaZrTIvGIVCJetRWnkffGi0HGN3lfHjWBHs&asPdf=false
nooshin_1382
Associate II
Posted on March 16, 2015 at 13:09

Hi Erwan,

I try that you said but not work the io pin configured successfully .

I configured Flexcan1 with 2 way but have no response from flexcan 1.

way 1 : I Edit Your XML file SPC560B_512k.xml and solve the problem i say with deleting other pin function but when i build the project and compile project flexcan1 is not work.

way 2 : i set manualy alternative function's of pin but until now Flexcan0 is ok but Flexcan1 and Flexcan2 is not work.

I send my code for you i need to use 2 can port and i should finish my project until friday

I do not know is Flexcan1 and Flexcan2 work in SPC560B50L5?

can yousend me a example or any code with using two can port?

thanks So much

With Best Regards

Vanima

________________

Attachments :

Main.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qUdp&d=%2Fa%2F0X0000000bnm%2FpXthhQ0cWqYBleIk89d5ZJJqydsRYQd4JiucaQ40oG4&asPdf=false
Erwan YVIN
ST Employee
Posted on March 17, 2015 at 09:45

Hello Vanima ,

We have patched the Data model (Model 512K) to correct the ''original'' issue on the pinmap.

1) SPC560B_512k.xml in attachment to replace in :

c:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.wizard.pinmap.spc5_1.0.0.201502050947\resources\

2) SPC5Studio has to be restarted

Please keep the old one.

I am trying to provide to you a demo application with Flexcan1 and Flexcan2 in SPC560B50L5 asap.

Best Regards

Erwan

________________

Attachments :

SPC560B_512k.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qXFg&d=%2Fa%2F0X0000000boi%2FWi_mNwyrwb3TVtog3Q.E24sywuG6VsONa6fqyww88GE&asPdf=false