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

Abierto
#1,480 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@novadusk ya está trabajando en esto.

Desde el 28/8/2026.

  • #1485 de @novadusk — abierto

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado

Línea de trabajo

The bug is at line 466 of portable/IAR/ARM_CM33/non_secure/portasm.s, where a URL sits outside the /* */ comment on the ldmia r2!, {r0, r3, lr} line. Check pull request #1485 first, since it is already open against this issue and may contain the fix. If the fix is still needed, move the /* in front of the URL so the whole line is commented, then confirm the file assembles under IAR.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

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

Lenguaje dominante
C
Estrellas
4.6k
Forks
1.6k
Merge medio
2 d 22 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FreeRTOS/FreeRTOS-Kernel

Todos los issues de FreeRTOS/FreeRTOS-Kernel

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.