GithubHelp home page GithubHelp logo

can-bus-arduino_core_stm32's People

Contributors

seeers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

can-bus-arduino_core_stm32's Issues

Configure Filters to default values

Hello.

Your code will be very helpful.
Thank you.

Configure Filters to default values is not correct.

Your code:

    // Configure Filters to default values
    CAN1->FM1R |= 0x1C << 8;              // Assign all filters to CAN1
    CAN1->FMR  |=   0x1UL;                // Set to filter initialization mode
    CAN1->FA1R &= ~(0x1UL);               // Deactivate filter 0
    CAN1->FS1R |=   0x1UL;                // Set first filter to single 32 bit configuration

My code:

    // Configure Filters to default values
    CAN1->FMR  |=   0x1UL;                // Set to filter initialization mode
    CAN1->FMR  &= 0xFFFFC0FF;             // Clear CAN2 start bank
    CAN1->FMR  |= 0x1C << 8;              // Assign all filters to CAN1
    CAN1->FA1R &= ~(0x1UL);               // Deactivate filter 0
    CAN1->FS1R |=   0x1UL;                // Set first filter to single 32 bit configuration

I tried your code on STM32F103C8

I tried your code on STM32F103C8 but it didn't work.

My environment:
Arduino_Core_STM32 1.8,0

Pin Connection:

STM32F103  MCP2551
PB9      --TXD
GND      --VSS
5V       --VDD
PB8      --RXD
GND      --RS
           CNAH     -----  To Arduino DUE
           CANL     -----  TO Arduino DUE

Arduino-DUE and Arduino-UNO can communicate properly.
Can you any advice??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.