stm32-slcan
stm32-slcan copied to clipboard
Blue pill build error
- I'm using blue-pill you already have a main function do i need to delete my main function which is by default there for stm32 cube ide environment.
- do i need to configure CAN and USART in IOC ?
- where exactly to add libopencm3 folder ? nvic interrupt is giving error for usart and can.
can you specify these things clearly for the beginners?
- First, transfer the lines you need from the function, usually this is initialization and launch of modules. Then. Yes, you can remove the unnecessary main function.
- Yes, you need to initialize the peripherals based on the design of your development board in the CubeIde environment
- I rarely use this library. for setup information go to https://github.com/libopencm3/libopencm3.
- To understand, I need a piece of nvic and usart code :>)
@Hrishie89 I guess you cannot build project? Here is quick guide:
git submodule update --init --recursive
cd libopencm3/
make
cd ..
make
and the output of make are both stm32-slcan.bin and stm32-slcan.elf you can flash into board 😄