ARM-software / CMSIS-Compiler

CMSIS Compiler support for Arm Compiler
https://arm-software.github.io/CMSIS-Compiler/latest/index.html
Apache License 2.0
26 stars 13 forks source link

IAR error with [--require_prototypes] build option #59

Open DCHSTM opened 2 months ago

DCHSTM commented 2 months ago

Hi

In our project, we enable this [--require_prototypes] build option in IAR.

This makes errors: "xxx\source\iar\retarget_io.c",63  Error[Pa045]: function "__write" has no prototype "xxx\source\iar\retarget_io.c",37  Error[Pa045]: function "__read" has no prototype

Please could you add the function prototypes in the source\iar\retarget_io.c file

VladimirUmek commented 2 months ago

Hi,

I believe this will be fixed once https://github.com/ARM-software/CMSIS-Compiler/pull/58 gets merged. The reason for your error is that LowLevelIOInterface.h is not included in retarget_io.c. See https://github.com/ARM-software/CMSIS-Compiler/blob/96b1a30136d522c58e72d8fb2c98a63e6f984124/source/iar/retarget_io.c#L19 if you want to fix it manually.

DCHSTM commented 2 months ago

Hi great, we'll apply the patch. do you know when the patch will be officially delivered?