Hi guys,
I have tested the flexcan demo project(interrupt_transfer) from SDK package which use flexcan2, it works and print the log information.
But when i changed it from FLEXCAN2 to FLEXCAN1, it blocked at IOMUXC_SetPinMux process.
Default demo code
====================
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B0_14_FLEXCAN2_TX, /* GPIO_AD_B0_14 is configured as FLEXCAN2_TX */
1U); /* Software Input On Field: Force input path of pad GPIO_AD_B0_14 */
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B0_15_FLEXCAN2_RX, /* GPIO_AD_B0_15 is configured as FLEXCAN2_RX */
1U);
My Code
================================================================
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B1_08_FLEXCAN1_TX, /* GPIO_AD_B0_14 is configured as FLEXCAN2_TX */
1U); /* Software Input On Field: Force input path of pad GPIO_AD_B0_14 */
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B1_09_FLEXCAN1_RX, /* GPIO_AD_B0_15 is configured as FLEXCAN2_RX */
1U);
when I block my code, then it runs and print log information.
br,
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I think I need more information about the issue, as you mentioned, whether you mean it will encounter a hardfault error when executing the modified code.
Further, I was wondering if you can introduce the testing process, such as code modification, board, etc
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Project: flexcan_interrupt_transfer demo from SDK_2.9.3_EVK-MIMXRT1060
Boards: Customized
ICF: flexspi_nor_release
Refer to attached file code_change1 and code_change2 for Code modified.
Test Process:
Case 1: Use demo project with Flexcan2(default)
Using mfgtool to download to target board and it print the log( refer to attached file log.png) .
Case 2: Use demo project with modified code(Flexcan1)
step.1 Download to the target board and there is nothing prompt.
step.2 When block the modified code, then there are log as Case1.
Hi,
Thanks for your reply.
I followed your description to modify the flexcan_interrupt_transfer demo, you can test with it.
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------