Jump to content

Vxworks Command Cheat Sheet

Commonly used routines for setting execution breaks and stepping through code. b [address] : Sets a breakpoint at a specific address. bd [address] : Deletes a specific breakpoint. c : Continues execution from a breakpoint.

Best practice: consult BSP docs for device naming conventions; use symbol and object inspections to debug module load failures.

VxWorks 7 handles virtual and physical memory differently than earlier versions, so modern debugging requires awareness of address spaces.

: Displays active network connections (similar to netstat ). routeShow : Displays the IP routing table. vxworks command cheat sheet

– Tests system hardware initialization routines.

memShow – Displays a summary of allocated and free memory blocks in the system partition.

| Command | Description | Example | | :--- | :--- | :--- | | or h | Lists all available shell commands. | h | | help "topic" | Shows help for a specific command or function. | help "taskSpawn" | | ls | Lists files in the target's file system. | ls "/ata0a/" | | pwd | Print current working directory. | pwd | | cd | Change directory. | cd "/tffs0/" | | echo | Print a string to the console. | echo "Hello VxWorks" | | printError | Converts a numeric status code into a readable string. | printError 0x3d | Commonly used routines for setting execution breaks and

: Displays memory contents starting at a specific address. You can specify the number of units and the width (1, 2, 4, or 8 bytes).

/ ll "[path]" : Lists directory contents on a mounted drive or device. cd "[path]" : Changes the current working directory context. pwd : Prints the full directory path currently selected.

iosOpen / iosClose / iosRead / iosWrite — Low-level device I/O functions available in the API and often used via driver utilities. c : Continues execution from a breakpoint

: Shows a stack trace for the specified task. Memory & Object Information

Sends ICMP echo requests to verify remote host connectivity. routeShow; route show Displays the current IP routing table configuration. Show Socket Info inetstatShow; inetstat show

Tasks are the fundamental units of execution in VxWorks. Monitoring task states, priorities, and stacks is critical for debugging deadlocks and performance bottlenecks. C-Expression Shell (Csh) Command Shell (Cmd) Description i; or taskShow; i or task show Displays active tasks, priorities, status, and IDs. Detailed Task Info taskShow(taskId); task show taskId Shows stack usage, CPU registers, and task properties. Spawn a Task taskSpawn("name", pri, opt, stack, func, arg1); task spawn Creates and starts a new execution thread. Suspend Task taskSuspend(taskId); task suspend taskId Freezes execution of a specific task. Resume Task taskResume(taskId); task resume taskId Resumes a suspended task. Delete Task taskDelete(taskId); task delete taskId Terminates a task and frees its basic structures. Show Task Hooks taskHookShow; task hook show Lists user-defined hooks for task creation or deletion. Memory Inspection and Manipulation

Displays the state of a semaphore (Binary, Counting, or Mutual Exclusion). msgQShow(queue_id) msgQShow

: Memory Show . Displays memory allocation statistics (system pool usage).

×
×
  • Create New...