CMSIS-Compiler icon indicating copy to clipboard operation
CMSIS-Compiler copied to clipboard

preliminary file redirection support for IAR

Open RobinKastberg opened this issue 1 year ago • 3 comments

I did some file redirection support for IAR. I don't have the expertise to test this properly (it seems to compile, and should get called) It is modeled after the gcc support.

RobinKastberg avatar Aug 21 '24 14:08 RobinKastberg

Sorry I missed to test it with file redirection enabled. It is currently rife with compilation errors. Please wait a little while and I will fix it :)

RobinKastberg avatar Aug 21 '24 16:08 RobinKastberg

There, I have a starting point. I tested this with component: CMSIS-Compiler:File Interface:Custom and - file: ../template/file_interface/retarget_fs.c and it seems to compile.

I removed errno handling, the gcc one looked like it had the incorrect sign anyways. And it is really unclear whose responsibility it is to set these. (IAR errno.h doesn't have POSIX codes anyways)

RobinKastberg avatar Aug 22 '24 09:08 RobinKastberg

Thanks for providing PR!. I'll review and try to test making sure that we have a working solution.

VladimirUmek avatar Aug 22 '24 09:08 VladimirUmek