2024-02-06 08:28 PM
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.
This image is CUBEMX Current LIN settings. If there is anything wrong, please provide a solution.
thank you, sir
2024-02-06 09:50 PM
Wouldn't that suggest that your build address is wrong?
2024-02-06 10:00 PM
Can you tell me in detail which build address you are referring to?
2024-02-06 10:23 PM
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.