Hi,
The CAN Part is working with our custom hardware when we generate the code using freemaster. But it is not working with the example bootloader gateway code . The difference what we are seeing on this code are the clock initialization API. Could you please help us what is the difference between these API calls.
In Freemaster
CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,
g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);
In Example Bootloader Gateway Code, we are seeing the clock initialization with this API
SOSC_init_8MHz(); /* Initialize system oscillator for 8 MHz xtal */
SPLL_init_160MHz(); /* Initialize SPLL to 160 MHz with 8 MHz SOSC */
NormalRUNmode_80MHz(); /* Init clocks: 80 MHz sysclk & core, 40 MHz bus, 20 MHz flash */
LMEM->PCCCR = 0x85000001; /* Invalidate cache & enable write buffer, cache */