after few days using SPC5studio,I found that the way to solve this problem may not be change your SPC5studio version,you can check your frequency of External crystal , and check whether or not it is corresponding to the Settings of your SPC5studio!!!...
I have already fixed my problem, the reason is my SPC5studio version, I have replaced it with the version which was provided by ST technology support.
i have change the samples code, and i change the platform from SPC560B50L5 to SPC560B50L1,and remove PE_LED1-PE_LED4 in Board Initialization Component. other contents that I have no change.
and my main function is:/* Inclusion of the main header files of all the imported components in the
order specified in the application wizard. The file is generated
automatically.*/
#include "components.h"
#include "can_lld_cfg.h"
/**
* FLEX...