Skip to content

preliminary file redirection support for IAR#58

Merged
VladimirUmek merged 3 commits into
ARM-software:mainfrom
RobinKastberg:iar-files
Jun 19, 2025
Merged

preliminary file redirection support for IAR#58
VladimirUmek merged 3 commits into
ARM-software:mainfrom
RobinKastberg:iar-files

Conversation

@RobinKastberg

Copy link
Copy Markdown
Contributor

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 RobinKastberg marked this pull request as draft August 21, 2024 16:03
@RobinKastberg

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor Author

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 RobinKastberg marked this pull request as ready for review August 22, 2024 09:09
@VladimirUmek

Copy link
Copy Markdown
Contributor

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

@VladimirUmek VladimirUmek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified, looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants