Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blue pill build error #5

Open
Hrishie89 opened this issue Dec 23, 2024 · 2 comments
Open

Blue pill build error #5

Hrishie89 opened this issue Dec 23, 2024 · 2 comments

Comments

@Hrishie89
Copy link

  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?

@DmTom23
Copy link

DmTom23 commented Dec 24, 2024

  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 :>)

@pawelskr
Copy link

pawelskr commented Feb 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants