Skip to content

TRANSMIT_FIFO_INDEX is 0 (should be 2) #18

@PeterOGB

Description

@PeterOGB

I haven't been able to build your Arduino code as I don't have a suitable shield for an Arduino, but I am using it as a starting point for code to run on a Pi PICO with a MCP2518 attached.
Looking at the code I se TRANSMIT_FIFO_INDEX is defined as 0, but functions like C1FIFOCON_REGISTER() expect 1..31 (according to the comments).
I think using C1FIFOCON_REGISTER (TRANSMIT_FIFO_INDEX) will produce a register address for CiTXQCON (0x50) not CiFIFOCON1 (0x5C).
Peter Onion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions