CANopen Bootloader Documentation
Version 4.10.00
Loading...
Searching...
No Matches
Initialization Process

The CANopen FD Bootloader stack is initialized with CblMgrInit(). This routine will setup the CAN controller and initialize all necessary services. Afterwards the stack can be started by calling the CblMgrStart() function.

In summary three steps are necessary to run the CANopen FD Bootloader:

The initialization functions of the CANopen FD Bootloader stack have to be executed prior to any other API functions.

Starting in Classical CANopen mode

void MyCblInit(void)
{
//----------------------------------------------------------------
// Initialize the CANopen Bootloader stack
//
//----------------------------------------------------------------
// Start the CANopen Bootloader, node-ID = 1,
// nominal bitrate = 500 kBit/s,
//
//----------------------------------------------------------------
// now the CANopen FD Bootloader stack is initialized and
// has to be triggered by calling CblTmrEvent() with
// a cycle time of CBL_TIMER_PERIOD
}
@ eCP_BITRATE_500K
Definition canpie.h:677
@ eCP_CHANNEL_1
Definition canpie.h:732
uint8_t CblMgrStart(uint8_t ubBitrateSelV, uint8_t ubNodeIdV)
uint8_t CblMgrInit(uint8_t ubCanIfV, uint16_t uwConfigV)