Skip to content

[BUG] IAR ARMCM33 Non-Secure portasm.s stray URL outside comment delimiters causes "Invalid syntax" assembler error in portasm.s #1480

Description

@murali78260

Describe the bug
Building the FreeRTOS-Kernel with the IAR toolchain targeting the ARM CM33 TrustZone Non-Secure port fails immediately with an assembler "Invalid syntax" error at **portable/IAR/ARM_CM33/non_secure/portasm.s**.

The root cause is a stray URL (http://files.iar.com/ftp/pub/box/bxarm-9.60.3.deb) that was accidentally placed outside the /* */ comment delimiters on that line. The IAR assembler sees the bare URL text as an invalid assembly token and aborts.

Corrupted line as it exists in the file:
ldmia r2!, {r0, r3, lr} http://files.iar.com/ftp/pub/box/bxarm-9.60.3.deb/* Read from stack - r0 = xSecureContext, r3 = PSPLIM and LR restored. */

The /* needs to be moved before the URL so the entire text is inside the comment:
ldmia r2!, {r0, r3, lr} /* http://files.iar.com/ftp/pub/box/bxarm-9.60.3.deb Read from stack - r0 = xSecureContext, r3 = PSPLIM and LR restored. */

Target

  • Development board: PNEV7642FAMA(NXP)
  • Instruction Set Architecture: ARM CM33 TZ
  • IDE and version: IAR ARM 9.70.2
  • Toolchain and version: ewarm-9.70.2

Host

  • Host OS: Windows
  • Version: Windows 11

To Reproduce

  • Clone FreeRTOS-Kernel main branch.
  • Open or create an IAR EWARM project targeting an ARM CM33 TrustZone device (e.g. NXP PNEV7642FAMA).
  • Add portable/IAR/ARM_CM33/non_secure/portasm.s to the project.
  • Build the project.
  • The assembler fails on line 466 with: Error[0]: Invalid syntax portasm.s 466

Expected behavior
The file should assemble without errors. The URL on line 466 must be enclosed inside the /* */ comment delimiters so the assembler does not encounter bare non-instruction text.

Screenshots

Image Image

Additional context
commit track history: History for portable/IAR/ARM_CM33/non_secure/portasm.s - FreeRTOS/FreeRTOS-Kernel · GitHub

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions