[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M735VAFPVBK10NXJ75DS1J8S":3,"skill-same:01M735VAFPVBK10NXJ75DS1J8S":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M735VAFPVBK10NXJ75DS1J8S","automotive-qnx",null,"Advanced QNX Neutrino RTOS development patterns for automotive applications Covers 2 topics across qnx domain. Includes 2 skill files covering .","pangzhenying2025\u002Fhermes-automotive-skills","pangzhenying2025","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F213717646?v=4","01M735F4ESJ0SM29HHRG810PS8","01M735F4FX3N7R55KGY8AYBRZ0",11,"MIT","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fautomotive-qnx\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: automotive-qnx\ndescription: >\n  Advanced QNX Neutrino RTOS development patterns for automotive applications Covers 2 topics across qnx domain. Includes 2 skill files covering .\ntags: [automotive, automotive-qnx, microkernel, neutrino, posix, qnx, rtos]\n---\n\n# Automotive Qnx\n\n2 skill files covering qnx domain for automotive software engineering.\n\n\n## Instructions\n\n### qnx-advanced\n\n## Advanced QNX Neutrino RTOS Development Guide\n\n### Overview\n\nQNX Neutrino is a POSIX-compliant, microkernel-based RTOS widely used in\nsafety-critical automotive systems (ADAS, digital cockpits, gateways). Its\nmicrokernel architecture runs device drivers and file systems as user-space\nprocesses, providing fault isolation that is essential for ISO 26262 compliance.\nQNX is pre-certified to IEC 61508 SIL 3, making it suitable for ASIL-D\nautomotive applications.\n\n### Microkernel Architecture\n\n```\nUser Space:\n┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐\n│ App:ADAS │ │ App:Diag │ │ Driver:  │ │ Driver:  │ │  File    │\n│ Control  │ │ Service  │ │ CAN      │ │ Ethernet │ │  System  │\n└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘\n     │            │            │            │            │\n═════╪════════════╪════════════╪════════════╪════════════╪════════\n     │       Message Passing (MsgSend\u002FMsgReceive\u002FMsgReply)\n═════╪════════════╪════════════╪════════════╪════════════╪════════\n     │            │            │            │            │\n┌────┴────────────┴────────────┴────────────┴────────────┴────┐\n│                    QNX Neutrino Microkernel                  │\n│  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐       │\n│  │ Threads  │ │ Signals  │ │ Timers   │ │ Interrupt│       │\n│  │ Scheduling│ │ Sync     │ │ Clock    │ │ Dispatch │       │\n│  └──────────┘ └──────────┘ └──────────┘ └──────────┘       │\n└─────────────────────────────────────────────────────────────┘\n```\n\n### IPC Mechanisms\n\nQNX provides several IPC mechanisms, each suited for different use cases:\n\n| Mechanism | Latency | Data Size | Blocking | Use Case |\n|-----------|---------|-----------|----------|----------|\n| Messages | ~1-5 us | Arbitrary | Synchronous | Client-server communication |\n| Pulses | ~0.5 us | 32-bit value | Asynchronous | Event notification, ISR to thread |\n| Shared Memory | ~0 (direct) | Arbitrary | None (needs sync) | Large data (sensor, video) |\n| Signals | ~1 us | Signal number | Asynchronous | Legacy POSIX compatibility |\n\n### Message Passing Model\n\nQNX message passing is synchronous and forms the basis of the entire OS:\n\n```\nClient                    Server\n  │                         │\n  │  MsgSend(coid, ...)     │\n  ├────────────────────────►│ MsgReceive(chid, ...)\n  │     (client BLOCKED)    │\n  │                         │ Process request...\n  │  MsgReply(rcvid, ...)   │\n  │◄────────────────────────┤\n  │  (client UNBLOCKED)     │\n```\n\nThe three-phase send-receive-reply protocol ensures that:\n1. The client knows the server received the message (no lost messages)\n2. The server knows which client to reply to (rcvid)\n3. Priority inheritance is automatic (server runs at client priority)\n\n### Pulses for Asynchronous Notification\n\nPulses are lightweight (40-byte), non-blocking notifications ideal for:\n- Interrupt service routines notifying handler threads\n- Timer expiration events\n- Asynchronous event signaling between processes\n\nPulse codes from `_PULSE_CODE_MINAVAIL` to `_PULSE_CODE_MAXAVAIL` are\navailable for application use. System pulses use codes below MINAVAIL.\n\n### Resource Manager Framework\n\nResource managers are QNX's device driver framework. Any process can register\na pathname (e.g., `\u002Fdev\u002Fcan0`) and handle POSIX I\u002FO operations:\n\n- `open()` -> `io_open` handler\n- `read()` -> `io_read` handler\n- `write()` -> `io_write` handler\n- `devctl()` -> `io_devctl` handler (ioctl equivalent)\n- `close()` -> `io_close` handler\n\nThis allows applications to interact with custom hardware using standard\nPOSIX file operations, simplifying application-level code.\n\n### Thread Scheduling\n\nQNX supports three POSIX scheduling policies:\n\n| Policy | Behavior | Use Case |\n|--------|----------|----------|\n| SCHED_FIFO | Run until blocked or preempted by higher priority | Safety-critical real-time |\n| SCHED_RR | Round-robin among same-priority threads | Fair sharing |\n| SCHED_OTHER | System-defined (sporadic in QNX) | Non-real-time tasks |\n\nPriority range: 1 (lowest) to 255 (highest). Priority 0 is the idle thread.\nTypical automotive allocation:\n- 200-255: Interrupt handler threads\n- 100-199: Safety-critical control loops (ADAS, brake-by-wire)\n- 50-99: Normal real-time tasks (CAN processing, diagnostics)\n- 10-49: Non-critical tasks (logging, HMI updates)\n- 1-9: Background tasks\n\n### Interrupt Handling\n\nQNX interrupt handling follows a two-level model:\n1. **ISR (InterruptAttach)**: Runs at interrupt level, minimal work only\n   (read status, clear interrupt, return event)\n2. **Handler thread**: Receives pulse from ISR, does actual processing in\n   user space with full OS services available\n\nThis model keeps interrupt latency low while allowing complex processing\nin a safe, preemptible context.\n\n### Shared Memory with Synchronization\n\nFor large data transfers (camera frames, LIDAR point clouds), shared memory\navoids copying. Always use synchronization:\n- `pthread_mutex` with `PTHREAD_PROCESS_SHARED` attribute for cross-process\n- Atomic operations (`atomic_add`, `atomic_cmpxchg`) for lock-free counters\n- Condition variables for producer-consumer patterns\n\n### Best Practices\n\n- Prefer message passing over shared memory for control data (automatic priority inheritance)\n- Use pulses for ISR-to-thread notification (never do heavy work in ISR context)\n- Set explicit scheduling policy and priority for all real-time threads\n- Use `ThreadCtl(_NTO_TCTL_RUNMASK, ...)` for CPU affinity on multi-core SoCs\n- Always handle MsgReceive return codes: 0 = pulse, >0 = message, -1 = error\n- Clean up channels and connections properly to avoid resource leaks\n- Use `tracelogger` and `pidin` for debugging scheduling and timing issues\n- Test interrupt latency with oscilloscope on real hardware\n\n### QNX Neutrino RTOS Development\n\n## QNX Neutrino RTOS Development Guide\n\n### Overview\n\nQNX Neutrino is a commercial, POSIX-compliant, microkernel RTOS used\nextensively in automotive systems. Unlike monolithic kernels (Linux), QNX\nruns all drivers, file systems, and protocol stacks as user-space processes\ncommunicating via message passing. This architecture provides:\n- **Fault containment**: A driver crash does not bring down the kernel\n- **Deterministic timing**: Microkernel interrupt latency \u003C 1 microsecond\n- **Safety certification**: Pre-certified to IEC 61508 SIL 3\n- **POSIX compliance**: Applications port easily from Linux\n\n### QNX SDP (Software Development Platform)\n\nThe QNX SDP includes compilers, libraries, and tools for multiple targets:\n\n```\nQNX SDP 7.1\u002F8.0\n├── host\u002Flinux\u002Fx86_64\u002F    Host tools (compilers, debuggers)\n│   └── usr\u002Fbin\u002F\n│       ├── qcc           QNX C\u002FC++ compiler driver\n│       ├── ntox86_64-g++ Target-specific G++\n│       └── ntoaarch64le-g++\n├── target\u002Fqnx7\u002F          Target sysroot\n│   ├── x86_64\u002F           x86-64 target libraries\n│   ├── aarch64le\u002F        ARM64 target libraries\n│   └── armle-v7\u002F         ARMv7 target libraries\n└── usr\u002Fqde\u002Feclipse\u002F      Momentics IDE\n```\n\n### Cross-Compilation with qcc\n\n```bash\n# qcc is the compiler driver that selects the correct target toolchain\n# Syntax: qcc -V\u003Ccompiler>_nto\u003Ctarget> [flags] source.c\n\n# x86-64 target\nqcc -Vgcc_ntox86_64 -o app_x86 main.c\n\n# ARM64 target (i.MX8, R-Car H3)\nqcc -Vgcc_ntoaarch64le -o app_arm64 main.c\n\n# ARMv7 target (i.MX6)\nqcc -Vgcc_ntoarmv7le -o app_armv7 main.c\n\n# C++ with optimization\nqcc -Vgcc_ntoaarch64le -std=c++14 -O2 -o app main.cpp -lstdc++\n```\n\n### Process Model\n\nEvery QNX process is a full POSIX process with:\n- Its own virtual address space (MMU protection)\n- One or more threads\n- Channels for receiving messages\n- Connections for sending messages to other processes\n\n```\nProcess A (Client)              Process B (Server)\n┌─────────────────┐            ┌─────────────────┐\n│  Thread 1       │            │  Thread 1       │\n│    │            │            │    │            │\n│    ├─Connection──┼───────────┼──►Channel       │\n│    │  (coid)     │  message  │    │ (chid)     │\n│    │            │            │    │            │\n└─────────────────┘            └─────────────────┘\n```\n\n### Pathname Space\n\nQNX unifies all resources under a single pathname space managed by\nprocess manager (procnto). Resource managers register pathnames:\n\n```\n\u002Fdev\u002Fcan0        → CAN driver resource manager\n\u002Fdev\u002Fser1        → Serial driver\n\u002Fdev\u002Fshmem\u002Fdata  → Shared memory object\n\u002Fproc\u002F           → Process information pseudo-filesystem\n\u002Fnet\u002F            → Network-transparent access to remote nodes\n```\n\nApplications use standard `open()`, `read()`, `write()`, `close()` to\ninteract with any resource manager, whether it is a hardware driver,\na file system, or a custom service.\n\n### AUTOSAR Adaptive on QNX\n\nQNX is a primary target for AUTOSAR Adaptive Platform deployments:\n- ara::com (SOME\u002FIP) maps to QNX message passing + vsomeip\n- ara::exec uses QNX process manager for application lifecycle\n- ara::log integrates with QNX slogger2 for system logging\n- ara::per uses QNX filesystem services for persistence\n- Thread scheduling maps directly to QNX SCHED_FIFO\u002FSCHED_RR\n\n### Debugging and Profiling\n\n```bash\n# Remote debugging via GDB\n# On target: start pdebug (debug agent)\npdebug 8000 &\n\n# On host: connect GDB\nntoaarch64le-gdb app_arm64\n(gdb) target qnx \u003Ctarget_ip>:8000\n(gdb) upload app_arm64 \u002Ftmp\u002Fapp_arm64\n(gdb) run\n\n# System profiling with tracelogger\ntracelogger -n 5 -f trace.kev    # Capture 5 buffers\ntraceprinter trace.kev            # Text output\n\n# Process info\npidin                              # Process listing\npidin -f aAbBF                     # Detailed thread info\npidin mem                          # Memory usage\n```\n\n### Automotive Use Cases\n\n| Domain | QNX Application | Key Feature |\n|--------|----------------|-------------|\n| Digital Cockpit | Instrument cluster, HMI | GPU composition, Screen Framework |\n| ADAS | Sensor fusion, planning | Deterministic scheduling, hypervisor |\n| Gateway | CAN-Ethernet bridge | Resource managers, high throughput |\n| Telematics | OTA, connectivity | Networking stack, security |\n| Hypervisor | Multi-OS (QNX + Linux) | QNX Hypervisor for type-1 isolation |\n\n### Best Practices\n\n- Use `qcc` compiler driver instead of calling target compilers directly\n- Set `QNX_HOST` and `QNX_TARGET` environment variables before building\n- Use resource managers for all hardware abstraction (not direct register access)\n- Deploy with `on -f -p\u003Cpriority>` to set process priority at launch\n- Use slogger2 for structured logging (not printf to stdout)\n- Profile with tracelogger to identify scheduling anomalies\n- Test on both x86-64 (faster development cycle) and target architecture (ARM64)\n- For AUTOSAR Adaptive, use C++14 standard as required by the specification\n","# Automotive Qnx\n\n2 skill files covering qnx domain for automotive software engineering.\n\n\n## Instructions\n\n### qnx-advanced\n\n## Advanced QNX Neutrino RTOS Development Guide\n\n### Overview\n\nQNX Neutrino is a POSIX-compliant, microkernel-based RTOS widely used in\nsafety-critical automotive systems (ADAS, digital cockpits, gateways). Its\nmicrokernel architecture runs device drivers and file systems as user-space\nprocesses, providing fault isolation that is essential for ISO 26262 compliance.\nQNX is pre-certified to IEC 61508 SIL 3, making it suitable for ASIL-D\nautomotive applications.\n\n### Microkernel Architecture\n\n```\nUser Space:\n┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐\n│ App:ADAS │ │ App:Diag │ │ Driver:  │ │ Driver:  │ │  File    │\n│ Control  │ │ Service  │ │ CAN      │ │ Ethernet │ │  System  │\n└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘\n     │            │            │            │            │\n═════╪════════════╪════════════╪════════════╪════════════╪════════\n     │       Message Passing (MsgSend\u002FMsgReceive\u002FMsgReply)\n═════╪════════════╪════════════╪════════════╪════════════╪════════\n     │            │            │            │            │\n┌────┴────────────┴────────────┴────────────┴────────────┴────┐\n│                    QNX Neutrino Microkernel                  │\n│  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐       │\n│  │ Threads  │ │ Signals  │ │ Timers   │ │ Interrupt│       │\n│  │ Scheduling│ │ Sync     │ │ Clock    │ │ Dispatch │       │\n│  └──────────┘ └──────────┘ └──────────┘ └──────────┘       │\n└─────────────────────────────────────────────────────────────┘\n```\n\n### IPC Mechanisms\n\nQNX provides several IPC mechanisms, each suited for different use cases:\n\n| Mechanism | Latency | Data Size | Blocking | Use Case |\n|-----------|---------|-----------|----------|----------|\n| Messages | ~1-5 us | Arbitrary | Synchronous | Client-server communication |\n| Pulses | ~0.5 us | 32-bit value | Asynchronous | Event notification, ISR to thread |\n| Shared Memory | ~0 (direct) | Arbitrary | None (needs sync) | Large data (sensor, video) |\n| Signals | ~1 us | Signal number | Asynchronous | Legacy POSIX compatibility |\n\n### Message Passing Model\n\nQNX message passing is synchronous and forms the basis of the entire OS:\n\n```\nClient                    Server\n  │                         │\n  │  MsgSend(coid, ...)     │\n  ├────────────────────────►│ MsgReceive(chid, ...)\n  │     (client BLOCKED)    │\n  │                         │ Process request...\n  │  MsgReply(rcvid, ...)   │\n  │◄────────────────────────┤\n  │  (client UNBLOCKED)     │\n```\n\nThe three-phase send-receive-reply protocol ensures that:\n1. The client knows the server received the message (no lost messages)\n2. The server knows which client to reply to (rcvid)\n3. Priority inheritance is automatic (server runs at client priority)\n\n### Pulses for Asynchronous Notification\n\nPulses are lightweight (40-byte), non-blocking notifications ideal for:\n- Interrupt service routines notifying handler threads\n- Timer expiration events\n- Asynchronous event signaling between processes\n\nPulse codes from `_PULSE_CODE_MINAVAIL` to `_PULSE_CODE_MAXAVAIL` are\navailable for application use. System pulses use codes below MINAVAIL.\n\n### Resource Manager Framework\n\nResource managers are QNX's device driver framework. Any process can register\na pathname (e.g., `\u002Fdev\u002Fcan0`) and handle POSIX I\u002FO operations:\n\n- `open()` -> `io_open` handler\n- `read()` -> `io_read` handler\n- `write()` -> `io_write` handler\n- `devctl()` -> `io_devctl` handler (ioctl equivalent)\n- `close()` -> `io_close` handler\n\nThis allows applications to interact with custom hardware using standard\nPOSIX file operations, simplifying application-level code.\n\n### Thread Scheduling\n\nQNX supports three POSIX scheduling policies:\n\n| Policy | Behavior | Use Case |\n|--------|----------|----------|\n| SCHED_FIFO | Run until blocked or preempted by higher priority | Safety-critical real-time |\n| SCHED_RR | Round-robin among same-priority threads | Fair sharing |\n| SCHED_OTHER | System-defined (sporadic in QNX) | Non-real-time tasks |\n\nPriority range: 1 (lowest) to 255 (highest). Priority 0 is the idle thread.\nTypical automotive allocation:\n- 200-255: Interrupt handler threads\n- 100-199: Safety-critical control loops (ADAS, brake-by-wire)\n- 50-99: Normal real-time tasks (CAN processing, diagnostics)\n- 10-49: Non-critical tasks (logging, HMI updates)\n- 1-9: Background tasks\n\n### Interrupt Handling\n\nQNX interrupt handling follows a two-level model:\n1. **ISR (InterruptAttach)**: Runs at interrupt level, minimal work only\n   (read status, clear interrupt, return event)\n2. **Handler thread**: Receives pulse from ISR, does actual processing in\n   user space with full OS services available\n\nThis model keeps interrupt latency low while allowing complex processing\nin a safe, preemptible context.\n\n### Shared Memory with Synchronization\n\nFor large data transfers (camera frames, LIDAR point clouds), shared memory\navoids copying. Always use synchronization:\n- `pthread_mutex` with `PTHREAD_PROCESS_SHARED` attribute for cross-process\n- Atomic operations (`atomic_add`, `atomic_cmpxchg`) for lock-free counters\n- Condition variables for producer-consumer patterns\n\n### Best Practices\n\n- Prefer message passing over shared memory for control data (automatic priority inheritance)\n- Use pulses for ISR-to-thread notification (never do heavy work in ISR context)\n- Set explicit scheduling policy and priority for all real-time threads\n- Use `ThreadCtl(_NTO_TCTL_RUNMASK, ...)` for CPU affinity on multi-core SoCs\n- Always handle MsgReceive return codes: 0 = pulse, >0 = message, -1 = error\n- Clean up channels and connections properly to avoid resource leaks\n- Use `tracelogger` and `pidin` for debugging scheduling and timing issues\n- Test interrupt latency with oscilloscope on real hardware\n\n### QNX Neutrino RTOS Development\n\n## QNX Neutrino RTOS Development Guide\n\n### Overview\n\nQNX Neutrino is a commercial, POSIX-compliant, microkernel RTOS used\nextensively in automotive systems. Unlike monolithic kernels (Linux), QNX\nruns all drivers, file systems, and protocol stacks as user-space processes\ncommunicating via message passing. This architecture provides:\n- **Fault containment**: A driver crash does not bring down the kernel\n- **Deterministic timing**: Microkernel interrupt latency \u003C 1 microsecond\n- **Safety certification**: Pre-certified to IEC 61508 SIL 3\n- **POSIX compliance**: Applications port easily from Linux\n\n### QNX SDP (Software Development Platform)\n\nThe QNX SDP includes compilers, libraries, and tools for multiple targets:\n\n```\nQNX SDP 7.1\u002F8.0\n├── host\u002Flinux\u002Fx86_64\u002F    Host tools (compilers, debuggers)\n│   └── usr\u002Fbin\u002F\n│       ├── qcc           QNX C\u002FC++ compiler driver\n│       ├── ntox86_64-g++ Target-specific G++\n│       └── ntoaarch64le-g++\n├── target\u002Fqnx7\u002F          Target sysroot\n│   ├── x86_64\u002F           x86-64 target libraries\n│   ├── aarch64le\u002F        ARM64 target libraries\n│   └── armle-v7\u002F         ARMv7 target libraries\n└── usr\u002Fqde\u002Feclipse\u002F      Momentics IDE\n```\n\n### Cross-Compilation with qcc\n\n```bash\n# qcc is the compiler driver that selects the correct target toolchain\n# Syntax: qcc -V\u003Ccompiler>_nto\u003Ctarget> [flags] source.c\n\n# x86-64 target\nqcc -Vgcc_ntox86_64 -o app_x86 main.c\n\n# ARM64 target (i.MX8, R-Car H3)\nqcc -Vgcc_ntoaarch64le -o app_arm64 main.c\n\n# ARMv7 target (i.MX6)\nqcc -Vgcc_ntoarmv7le -o app_armv7 main.c\n\n# C++ with optimization\nqcc -Vgcc_ntoaarch64le -std=c++14 -O2 -o app main.cpp -lstdc++\n```\n\n### Process Model\n\nEvery QNX process is a full POSIX process with:\n- Its own virtual address space (MMU protection)\n- One or more threads\n- Channels for receiving messages\n- Connections for sending messages to other processes\n\n```\nProcess A (Client)              Process B (Server)\n┌─────────────────┐            ┌─────────────────┐\n│  Thread 1       │            │  Thread 1       │\n│    │            │            │    │            │\n│    ├─Connection──┼───────────┼──►Channel       │\n│    │  (coid)     │  message  │    │ (chid)     │\n│    │            │            │    │            │\n└─────────────────┘            └─────────────────┘\n```\n\n### Pathname Space\n\nQNX unifies all resources under a single pathname space managed by\nprocess manager (procnto). Resource managers register pathnames:\n\n```\n\u002Fdev\u002Fcan0        → CAN driver resource manager\n\u002Fdev\u002Fser1        → Serial driver\n\u002Fdev\u002Fshmem\u002Fdata  → Shared memory object\n\u002Fproc\u002F           → Process information pseudo-filesystem\n\u002Fnet\u002F            → Network-transparent access to remote nodes\n```\n\nApplications use standard `open()`, `read()`, `write()`, `close()` to\ninteract with any resource manager, whether it is a hardware driver,\na file system, or a custom service.\n\n### AUTOSAR Adaptive on QNX\n\nQNX is a primary target for AUTOSAR Adaptive Platform deployments:\n- ara::com (SOME\u002FIP) maps to QNX message passing + vsomeip\n- ara::exec uses QNX process manager for application lifecycle\n- ara::log integrates with QNX slogger2 for system logging\n- ara::per uses QNX filesystem services for persistence\n- Thread scheduling maps directly to QNX SCHED_FIFO\u002FSCHED_RR\n\n### Debugging and Profiling\n\n```bash\n# Remote debugging via GDB\n# On target: start pdebug (debug agent)\npdebug 8000 &\n\n# On host: connect GDB\nntoaarch64le-gdb app_arm64\n(gdb) target qnx \u003Ctarget_ip>:8000\n(gdb) upload app_arm64 \u002Ftmp\u002Fapp_arm64\n(gdb) run\n\n# System profiling with tracelogger\ntracelogger -n 5 -f trace.kev    # Capture 5 buffers\ntraceprinter trace.kev            # Text output\n\n# Process info\npidin                              # Process listing\npidin -f aAbBF                     # Detailed thread info\npidin mem                          # Memory usage\n```\n\n### Automotive Use Cases\n\n| Domain | QNX Application | Key Feature |\n|--------|----------------|-------------|\n| Digital Cockpit | Instrument cluster, HMI | GPU composition, Screen Framework |\n| ADAS | Sensor fusion, planning | Deterministic scheduling, hypervisor |\n| Gateway | CAN-Ethernet bridge | Resource managers, high throughput |\n| Telematics | OTA, connectivity | Networking stack, security |\n| Hypervisor | Multi-OS (QNX + Linux) | QNX Hypervisor for type-1 isolation |\n\n### Best Practices\n\n- Use `qcc` compiler driver instead of calling target compilers directly\n- Set `QNX_HOST` and `QNX_TARGET` environment variables before building\n- Use resource managers for all hardware abstraction (not direct register access)\n- Deploy with `on -f -p\u003Cpriority>` to set process priority at launch\n- Use slogger2 for structured logging (not printf to stdout)\n- Profile with tracelogger to identify scheduling anomalies\n- Test on both x86-64 (faster development cycle) and target architecture (ARM64)\n- For AUTOSAR Adaptive, use C++14 standard as required by the specification\n",{"name":5,"tags":23,"description":30},[24,5,25,26,27,28,29],"automotive","microkernel","neutrino","posix","qnx","rtos","Advanced QNX Neutrino RTOS development patterns for automotive applications Covers 2 topics across qnx domain. Includes 2 skill files covering .\n","main","764e05645935fe0d4c219ab3786883289700a063","skills\u002Fautomotive-qnx",3,"https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025","2026-05-19 20:41:59",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add pangzhenying2025\u002Fhermes-automotive-skills --skill automotive-qnx",{"tool":44,"command":45},"bunx","bunx skills add pangzhenying2025\u002Fhermes-automotive-skills --skill automotive-qnx",{"tool":47,"command":48},"pnpm","pnpm dlx skills add pangzhenying2025\u002Fhermes-automotive-skills --skill automotive-qnx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fautomotive-qnx\u002FSKILL.md",true,[],[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7360ZT6X73B7WX8G9T42MRX","china-sotif","China standard: Sotif. # 中国 SOTIF 标准集 — GB\u002FT 43267 + CSAE 316.1\u002F316.2 + CSAE 336","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-sotif\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7360VT7N20KBKD59QG6BEVQ","china-scenario-safety","China standard: Scenario Safety. # 场景安全评估框架 — ISO 34501\u002F34502 + ISO 34503\u002F34504\u002F34505","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-scenario-safety\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7360SM9DD8BAECKC7C03ST1","china-odd","China standard: Odd. # 自动驾驶系统设计运行条件（ODD）标准","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-odd\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7360QDGZAFVAJ2M2BQY5AAS","china-multi-pillar","China standard: Multi Pillar. # \"多支柱\"标准综合应用指南","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-multi-pillar\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7360N6FMFHK17MH5MB96R9Z","china-l3-fusa-sotif","China standard: L3 Fusa Sotif. # L3 有条件自动驾驶系统 功能安全和预期功能安全技术要求","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-l3-fusa-sotif\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7360J517TM1JC1YS6M2YX38","china-l2-adas-safety","China standard: L2 Adas Safety. # L2 组合驾驶辅助系统安全要求（强制性国标草案）","https:\u002F\u002Fgithub.com\u002Fpangzhenying2025\u002Fhermes-automotive-skills\u002Fblob\u002Fmain\u002Fskills\u002Fchina-l2-adas-safety\u002FSKILL.md",[],[]]