fopen() function is causing hang

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

fopen() function is causing hang

223 Views
Nagaveni
Contributor II

Hi, 

I am using IMXRT1170 board. In my application , need to use fopen() function from  stdio.h  in IAR Embedded work bench . when I use fopen() function , it is causing  device. to hang 

can you please tell us , how to overcome form this problem ? or if you suggest any alternate function is also okay..

 

Thanks In Advance.

0 Kudos
1 Reply

185 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Nagaveni ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

   As I know, in the IAR, call the fopen, normally for the fatfs file system.

   But, if in the IAR call the stdio.h, and want to use the fopen, you may meet the issues like FILE undefined, in this situation, you can refer to this post:

https://stackoverflow.com/questions/54179489/iar-compiler-stdio-library

Try to call the complete lib, or add: --dlib_config full

If you have more issues, you also can check with IAR side, as this is not related to the RT chip, it is totally for the IDE call stdio.h issues.

 

Wish it helps you!

If you still have questions about RT, please kindly let me know.

Best Regards,

Kerry

0 Kudos