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

Đang mở
#1,480 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@novadusk đang làm issue này rồi.

Từ ngày 28/8/2026.

  • #1485 của @novadusk — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C
Star
4.6k
Fork
1.6k
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FreeRTOS/FreeRTOS-Kernel

Tất cả issue của FreeRTOS/FreeRTOS-Kernel

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.