Problem and confirmed configuration
An AP1120 TFT C WVGA 7-inch T panel uses a partitioned CFast card. The reported layout maps the SYSTEM partition to HD0 and labels the USER partition as drive F:. Calling SdmSystemDump with the device set to HD0 writes the dump to the SYSTEM partition, while substituting HD3 does not access the USER partition.
| Partition | Reported mapping | SystemDump result |
|---|---|---|
| SYSTEM |
HD0 / C:
|
Dump creation works |
| DATA1 | D: |
Not evaluated |
| DATA2 | E: |
Not evaluated |
| USER | F: |
HD3 does not work directly |
Why changing HD0 to HD3 fails
The SystemDump device argument requires a configured file device. The reported drive-letter order does not establish that the USER partition is directly addressable as HD3. Do not infer a file-device identifier from the partition position or drive letter.
Configure access to the USER partition
- Create a file device that points to the USER partition. Configure it either in the CPU configuration or at runtime with the
DevLinkfunction block. - Confirm that the file-device link completes successfully before requesting the dump.
- Replace
HD0in the existing device string with the name assigned to that linked file device. Keep the desired file name, such asSysDump, in the file argument. - Execute
SdmSystemDumpwithEnable = TRUEandConfiguration = 0, using the linked file-device name as its device argument.
Verify the dump destination
Check the SdmSystemDump status output and verify that the dump file appears on the USER partition rather than the SYSTEM partition. If it does not, validate the file-device link and its partition target before changing the dump call; the evidence does not provide numeric status codes or a fixed file-device name.
FAQ
How do I save an AP1120 SystemDump to the USER partition?
Create a file device pointing to the USER partition through the CPU configuration or DevLink, then pass that file-device name to SdmSystemDump instead of HD0.
Why does HD3 not select the USER partition?
The partition order and F: drive letter do not confirm that HD3 is a valid file device. Explicitly link a file device to the USER partition.
How can I confirm that SysDump was written to the correct partition?
Verify the SdmSystemDump status and confirm that SysDump exists on the USER partition. If it appears under HD0, recheck which partition the configured file device targets.