Hello
I've an issue with debugging :
calling "PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);"
I'm getting disconnected from debug with "No source available for "__isr_vector() at 0x0" screen
The software on the S32KEVB still run without issue but I can't use debugger
The disconnection append in file "pin_port_hw_access.c",
In the function "void PINS_Init(const pin_settings_config_t * config)"
on the line "config->base->PCR[config->pinPortIdx] = regValue;"
for the 7th pin (previous pins are initialized without debugger disconnection)
It's seems to be PTC4, used for FTM1/ch0 peripheral
Any idea why I'm getting disconnectied from debugging, and how to avoir this ?
Thanks
Maxime
{
.base = PORTC,
.pinPortIdx = 4U,
.pullConfig = PORT_INTERNAL_PULL_DOWN_ENABLED,
.driveSelect = PORT_LOW_DRIVE_STRENGTH,
.passiveFilter = false,
.mux = PORT_MUX_ALT2,
.pinLock = false,
.intConfig = PORT_DMA_INT_DISABLED,
.clearIntFlag = false,
.gpioBase = NULL,
.digitalFilter = false,
},
Hi Maxime,
PTC4 is default as debug pins(JTAG_TCLK / SWD_CLK), if you change it FTM1_CH0, then the debug connection will be error.
Did you consider use PTB2 as FTM1_CH0?
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------