Hi Team ,
We are using IMXRT 1020 EVK and everything was going good , we have recently got our EVK Fabricated,
In EVK we have MIMXRT1021DAG5A
In our custom board we have MIMXRT1021CAG4A
We are flashing the custom board using PE Micro Universal JTAG.
We have taken the GPIO Output example from the SDK , the same example when flashed on EVK is working fine but when we flash our custom board we are facing problem .
We are getting no log in the console window but if we see the Faults Widget in the IDE
We are getting below errors
In the Disassembly window the execution is struck at "00209c66"
We are using the same memory driver in the MCU setting as the EVK
IBUSERR Instruction Bus error
Forced - Indicated a forced hard fault , Generated by escalation of a fault with configurable priority that cannot be handled . either because of priority or because it is disabled
We have tested adding break points , the code is being executed till the end of while (1) , but in the next iteration it is going into hard fault .
What could be the reason for this fault ?
Will the chips be loaded with basic bootloader so that they can be flashed so that the binary goes into QSPI based external memory , we have the same schematic as the EVK.
Hi Naren chandra,
Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Before answering your question, I'd like to know more details about this error, so please answer these below inquiries.
1) Which IDE did you use?
2) Can you replicate the error when debugging other demo projects?
3) Did the demo project work well before triggering the Instruction Bus error?
Looking forward to your reply.
Looking forward to your reply.
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.
-------------------------------------------------------------------------------
Hi jeremyzhou
Thanks for the reply ,
1) Which IDE did you use?
we are using MCUXpresso 11.1.1 series
2) Can you replicate the error when debugging other demo projects?
We are facing the same with all the demo examples , we have testes with hello world , led blinky , gpio input and output ,
The examples are working fine on the EVK but with the custom board we are facing the issue
3) Did the demo project work well before triggering the Instruction Bus error?
We have debugged the project , it is sequentially executing till the end of while(1) , but for next iteration it is directly going into Hard fault
Thanks , hope you provide some remedy so that we can come out of the situation and proceed with the Development ,
Thanks and regards,
Naren
Hi Naren chandra,
Thanks for your reply.
I'd like to suggest you do the below tests to figure the issue out.
1) Try other IDEs to debug the project, like IAR, Keil, etc.
2) Try to debug other custom boards to confirm whether can replicate the error.
3) After enabling Link application to RAM, the demo will run in the RAM after entering debug mode, then check the error will happen or not.
Please give a try.
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.
-------------------------------------------------------------------------------
Hi jeremyzhou
Thanks for the suggestion , We tried dumping the code using RAM option ticked in and we are about to flash the chip
We tried GPIO, PWM,UART examples
How every Flex SPI was taking us to semi hard fault handler
WE are not able to flash it into External flash , as running in RAM is not what we are looking for
We are making our other custom boards ready so that we can test it
Also setting ups other IDEs
But until then if you have any suggestions from these inputs let us know
Regards,
Naren
Hi Naren chandra,
Thanks for your reply.
According to your reply, I guess the issue is related to the hardware, so I'd like to suggest you run the flexspi_nor_polling_transfer demo to do some various operations about the QSPI chip to validate the hardware connection whether it's good, please give a try.
And, could you replicate this issue on other custom boards?
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.
-------------------------------------------------------------------------------
Hi jeremyzhou
Thanks for the response ,
We tried running the flexspi_nor_polling_transfer demo in RAM as well , but it is ending in Semi hard fault Error handler .
Where as GPIO , UART and PWM are running fine when executed from RAM .
Sure as suggested will check the same in other custom board .
Regards,
Naren