Skip to main content
Visitor II
February 7, 2024
Question

LIN problem after MCU(STM32G473) replacement.

  • February 7, 2024
  • 1 reply
  • 1497 views

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

    This topic has been closed for replies.

    1 reply

    Graduate II
    February 7, 2024

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

    SJ_KIMAuthor
    Visitor II
    February 7, 2024

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

    Graduate II
    February 7, 2024

    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.