Vxworks Command Cheat Sheet
To help me tailor this guide or provide specific scripts, could you tell me:
| Command | Description | |---------|-------------| | d <address> [,<width>] [,<count>] | Display memory (width: b, w, l). Example: d 0x100000, l, 16 | | dasm <address> [,<count>] | Disassemble from address | | m <address> <value> | Modify memory (write byte/word/long) | | fill <address>, <len>, <value> | Fill memory region with value | | copy <src>, <dest>, <len> | Copy memory | | cmp <addr1>, <addr2>, <len> | Compare two memory regions | | show <symbolName> | Show value of global symbol |
sp (spawn helper), i (interrupt info), intShow, excShow — Interrupt and exception diagnostics.
The command interpreter ( cmd mode) provides a Unix-like environment for navigating and manipulating files.
VxWorks is a real-time operating system (RTOS) used extensively in embedded systems. Interacting with it often requires the use of its target shell, which supports a variety of commands for task management, memory manipulation, and system diagnostics. vxworks command cheat sheet
| Command | Description | |---------|-------------| | ls [“path”] | List directory contents | | cd “path” | Change current directory | | pwd | Print working directory | | cat “file” | Display file content | | cp <src> <dst> | Copy file | | rm “file” | Delete file | | mkdir “dir” | Create directory | | rmdir “dir” | Remove empty directory | | ioHelp | Show I/O system help (device drivers) |
| Command | Description | |---------|-------------| | d <address> [,width] [,count] | Display memory (hex/ASCII) – e.g., d 0x1000, 4, 32 | | m <address> <value> | Modify memory byte (use mh for half-word, mw for word) | | fill <start> <end> <value> | Fill memory range with a byte value | | copy <src> <dst> <len> | Copy memory | | search <start> <end> <pattern> | Search memory for a byte pattern | | checkStack <taskId> | Check stack overflow/usage of a task |
| Command | Description | Example | |---|---|---| | ls or ls "path" | List directory contents | ls "/fd0/" | | cd "path" | Change current working directory | cd "/usr/bin/" | | pwd | Print current working directory | pwd | | mkdir "dirname" | Create a new directory | mkdir "/newdir" | | rmdir "dirname" | Remove an empty directory | rmdir "/olddir" | | rm "filename" | Remove a file or directory | rm "test.txt" | | copy "src", "dest" | Copy a file | copy "a.txt", "b.txt" | | cp "src", "dest" | Alternative copy command with wildcard support | cp "*.c", "/backup/" | | cat "filename" | Display file contents | cat "/etc/config" | | dosFsShow device, level | Display dosFs volume configuration | dosFsShow "/fd0", 1 |
– Displays a summary of system memory (allocated, free, biggest free block). To help me tailor this guide or provide
: Use this to check the error code of the very last failed command.
wdStart / wdCancel / wdShow — Watchdog timer utilities.
: Verifies if any tasks have exceeded their allocated stack space.
checkStack [taskName|Id] : Prints the stack usage for a task to help identify potential overflows. VxWorks is a real-time operating system (RTOS) used
What (e.g., task crash, network loss, memory leak) are you trying to solve?
Sends ICMP echo requests to verify network connectivity to a host. arpShow() arp -a
gei, e1000, uboot environment commands, or BSP-specific network commands — Device utilities vary by BSP and driver set.
