cancel
Showing results for 
Search instead for 
Did you mean: 

LIN problem after MCU(STM32G473) replacement.

SJ_KIM
Associate

CUBEMX, STM32G473 MCU is used.

LIN communication worked well when using STM32F103, but after replacing only the MCU on the PCB board, LIN communication does not work.

When the MCU was replaced, the HAL_Delay() function did not work,

'#define USER_VECT_TAB_ADDRESS' I uncommented this statement and it worked fine.

Did uncommenting this syntax affect LIN communication?

When designing with CUBEMX, the STIMF103 board and Clock Configuration were designed identically.

SJ_KIM_1-1707280042462.png

 

This image is CUBEMX Current LIN settings. If there is anything wrong, please provide a solution.

SJ_KIM_2-1707280063439.png

 

thank you, sir

3 REPLIES 3

Wouldn't that suggest that your build address is wrong?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Can you tell me in detail which build address you are referring to?

A disparity between the 0x08000000 the processors is expecting, the value for FLASH in the linker script, and the value you're writing to SCB->VTOR

Not sure how that'd make PA2/PA3 not work, but I'm pretty sure it's not the pin configuration or the clocks.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..