i am traing to use CAN (controller area network) of STM32F3 in Simulink with package STM32-MAT/TARGET
i started to add ico file in config
whene i start adding the CAN i get this
please any help
May be CAN is not configured in used ioc file, or Simulink model has not been configured to be used with STM32. See attached "STM32_MAT-TARGET_HandsOn.pdf" file Page.20
Please check these solutions, then if these do not solve your issue, please send ioc file.
i know where is the problem, the problem in the configuration of ioc file i dont know how i can configurate the CAN of STM32F303K8
my ico file
Hi abdou si,
When you open block, you drag & drop CAN block : default selected CAN is CAN1.
But name is CAN.
Hi Imen D
can you tel me what timeout shoude i choose when i use HAL_CAN_Receive() because it didn't work
I spent many time to test the CAN mode ,but it still have some error,please give a example of stm32f107 for can1,
thank you very much!
what kind of error
can you share your code
you can find an example in C:\Users\yourcomputer\STM32Cube\Repository
system :win7 64bit and matlab 2016
I had already replace the cansend.tlc and canfilter.tlc in STM_MAT.
1.../../slxfile/../iocfile/CANtest1/Inc/CANtest1_CAN.h(35): error: #5: cannot open source input file "CANtest1_STM32.h": No such file or directory
how to deal with it ,thank you very much!
sorry i didn't understand exactly the problem
please i wanna see screenshot for :
the project in simulinkand the error and the configuration
I had refresh the question,thank you very much!
if that file "CANtest1_STM32.h" existe in your computer that mean you heve juste probem of link edition
did you have this file in your computer
I see,it be added by embedded coder of simulink ,but I have any code in "CANtest1_STM32.h",What can I do for my project.
My project :（Stm32f107）It Send 8 data by canbus(CAN0) used STM32_mat.（simulink）and download my DemoBoard.
go to : Flash - configure Flash tool - C/C++ - include Path and add the poth of the file
Retrieving data ...