cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in SPCstudio Complier or SPC MCU Family

nooshin_1382
Associate II
Posted on March 16, 2015 at 19:15

Hi

I want to use 2 can port , i tried a lot for this issue in two MCU :

SPC560B50L5 and SPC560B54L5 Both of them Have a same Response

in this family when i look at the datasheet i saw a Flexcan1 have 3 CANRX pin And 2 CANTX pin  in program you can set the function of pin for can driver when you set pins manualy or set with pinmap .

Finally I found the Special pins for can is work correctly :

only PC[10] =CANTX1 and PC[3] =CANRX1 

the Refrence manual and datasheet said you can select the pin  but it is not correct

is this bug or not ?

best regards

Vanima
2 REPLIES 2
Erwan YVIN
ST Employee
Posted on March 18, 2015 at 09:48

Hello Vanima ,

In fact , the Reference Manual is not cleared .

You have to configure the PADSEL (Cf Table 149)

[DEAD LINK /public/STe2ecommunities/mcu/Lists/SPC56/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/SPC56/Problem%20with%20Flexcan2%20and%20Flexcan3%20in%20spc560b50L5&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000C7B65FFB6DB42540A4DAECE852348058&TopicsView=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/SPC56/AllItems.aspx&currentviews=14]https://my.st.com/public/STe2ecommunities/mcu/Lists/SPC56/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSPC56%2fProblem%20with%20Flexcan2%20and%20Flexcan3%20in%20spc560b50L5&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000C7B65FFB6DB42540A4DAECE852348058&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSPC56%2FAllItems%2Easpx&currentviews=14

   Best Regards

                  Erwan

nooshin_1382
Associate II
Posted on March 19, 2015 at 11:43

Hello Erwan

Thanks a lot , it is completely  solved my problem and very usefull .

with Best Regards

Vanima