This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAR To Keil Porting issue

Hi all,

For my project related requirements, we started porting the code base, which existed; compatible with IAR to KEIL IDE [Because, we decided to procure license for KEIL IDE].

But we stuck with the following error; while attempting to compile , we tried our level best to resolve this error. But ultimately; we unable to locate the source of error.

The following is the actual piece of response we received while attempting to compile the code base in KEIL

OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s: OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s: 1 warning, 0 errors
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(59): error: A1163E: Unknown opcode RSEG , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(66): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(67): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(68): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(69): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(70): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(71): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(75): error: A1163E: Unknown opcode vSetMSP , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(81): error: A1163E: Unknown opcode xPortPendSVHandler: , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(119): error: A1163E: Unknown opcode vPortSetInterruptMask: , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(129): error: A1163E: Unknown opcode vPortClearInterruptMask: , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(139): error: A1163E: Unknown opcode vPortSVCHandler: , expecting opcode or Macro
OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(160): error: A1163E: Unknown opcode vPortStartFirstTask: , expecting opcode or Macro

If you could suggest a good solution, then i would be grateful.

Thanks & Regards
Prakash V

Parents
  • Hi,

    some parts of the ASM code seem to be IAR compiler specific, we have the same in CMSIS.

    Did you try and change that parts of the FreeRTOS code against the ARM/Keil Code?

    > OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(59):

    FreeRTOS\FreeRTOSv7.0.2\Source\portable\RVDS\ARM_CM3

    I think that should work.

    .
    BR,
    /th.

Reply
  • Hi,

    some parts of the ASM code seem to be IAR compiler specific, we have the same in CMSIS.

    Did you try and change that parts of the FreeRTOS code against the ARM/Keil Code?

    > OS\FreeRTOS\Source\portable\IAR\ARM_CM0\portasm.s(59):

    FreeRTOS\FreeRTOSv7.0.2\Source\portable\RVDS\ARM_CM3

    I think that should work.

    .
    BR,
    /th.

Children
No data