stm32-slcan icon indicating copy to clipboard operation
stm32-slcan copied to clipboard

Blue pill build error

Open Hrishie89 opened this issue 11 months ago • 2 comments

  1. 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.
  2. do i need to configure CAN and USART in IOC ?
  3. where exactly to add libopencm3 folder ? nvic interrupt is giving error for usart and can.

can you specify these things clearly for the beginners?

Hrishie89 avatar Dec 23 '24 16:12 Hrishie89

  1. 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.
  2. Yes, you need to initialize the peripherals based on the design of your development board in the CubeIde environment
  3. I rarely use this library. for setup information go to https://github.com/libopencm3/libopencm3.
  4. To understand, I need a piece of nvic and usart code :>)

DmTom23 avatar Dec 24 '24 03:12 DmTom23

@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 😄

pawelskr avatar Feb 05 '25 10:02 pawelskr