2009-03-22 07:35 PM
STM8_firmware_library
#can-init #stm8s-can-example2011-05-17 06:01 AM
Hello Cam,
you have also to go to the following menu: 'Project'--> 'Settings'--> 'C Compiler' Select the category 'Preprocessor' and in the 'Additional include directories' include the include library directory (\STM8SFWlib\FWLib\library\inc). Let me know... Regards, Olga2011-05-17 06:01 AM
Thanks Olga,
Your suggestion got me a step further but it didn't totally fix the problem I was having. I had created the project in one folder and then put the source files in a sub-folder of the project folder. When I built the project the compiler decided to un-include the stm8_interrupt_vector.c file that I had chosen from the sub-folder and it would then use the stm8_interrupt_vector.c file from the base project folder, which was actually for a different project. Lesson learned: create a seperate project folder for each project within a workspace! The project also needed your suggestion, so thanks for your help! Cam2011-05-17 06:01 AM
Just in case you want to leave the file in the sub-folder, you can change the stm8_interrupt_vector.c file throught this link:
'Project'--> 'Settings'--> 'Linker' Select the category 'Input' and after select the vector file that you want. Regards, Olga2011-05-17 06:01 AM
Hello Everyone,
I am new to STM microcontrollers and have started working with STM8/128 Eval board. I am experimenting with the CAN feature available with the Firmware library. But I am facing an issue with Initialisation of CAN controller. The function CAN_Config tries to Init the CAN controller by setting neccessary bits in CAN_MCR register but never comes out of the Init state and CAN Tx or Rx attempts there after. I wanted to check if some one has faced the same issue and was able to fix it. Regards, Achyut2011-05-17 06:01 AM
I have a trivial question here.
What directory structure would you recommend while using the examples from the firmware library? An example folder contains some source & header files. After creating a new project, peripheral specific source files and the library inc files are also required. So, any suggestions about how to maintain particular directory structure? Should some files be copied into new directories or should they be used from their current location? -SU [ This message was edited by: sandeep.undale on 23-03-2009 08:06 ]2012-07-23 04:25 AM