Hi Nitish Pattanayak,
I don't know what the code you are using.
But I highly recommend you use our newest SDK project for KM34, it also have the IAR project.
Please download the newest SDK code from this link:
Welcome | MCUXpresso SDK Builder
Then select the chip as MKM34Z256VLL7 , generate the code and download it.
You can test this code: SDK_2.2_TWR-KM34Z75M\boards\twrkm34z75m\driver_examples\gpio\led_output
It's also the led blinky code.
Besides, your IAR is really very old, I am afraid your IAR can't support the KM34, so please download the new IAR 8.X, our sdk code also based on the IAR 8.x.
You can download the new IAR from the IAR website.
Then try it again, I have tested the IAR8.x km34 project, it works OK, it doesn't have your problem.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------