AP1120 SystemDump: Configuring the USER Partition Guide

Karen Mitchell1 min read
B&R AutomationHMI ProgrammingTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

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

  1. Create a file device that points to the USER partition. Configure it either in the CPU configuration or at runtime with the DevLink function block.
  2. Confirm that the file-device link completes successfully before requesting the dump.
  3. Replace HD0 in the existing device string with the name assigned to that linked file device. Keep the desired file name, such as SysDump, in the file argument.
  4. Execute SdmSystemDump with Enable = TRUE and Configuration = 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.

Back to blog