Skip to content

Issue in the CANopen.c file #3

@Nightowl6

Description

@Nightowl6

In the line 363,

err =CO_CANmodule_init( CO->CANmodule[0], CANbaseAddress, CO_CANmodule_rxArray0, CO_RXCAN_NO_MSGS, CO_CANmodule_txArray0, CO_TXCAN_NO_MSGS, bitRate);

CANbaseAddress is an int whereas the function CO_CANmodule_init() takes a pointer as its second argument which creates the following error

"..\CANopen Src\CANopen.c(365): error: #167: argument of type "int32_t" is incompatible with parameter of type "CAN_HandleTypeDef *""

What's the recommended course of action? Modify the CO_CANmodule_init() or is there anything else to do?

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