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

オープン
#1,480 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@novadusk がすでに取り組んでいます。

2026年8月28日 から。

  • #1485 @novadusk による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C
スター
4.6k
フォーク
1.6k
平均マージ
2日 22時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FreeRTOS/FreeRTOS-Kernel のほかの issue

FreeRTOS/FreeRTOS-Kernel の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。