[Upgrading, Modifying and Unlocking] cannedbrain:
I'm having trouble with downloading PIT file from my device. Everytime creating the PIT file, it'd be corrupted. I'm using:

Mac OS X 10.11.6 El Capitan 64bit, the system set to allow installation from anywhere.

Samsung Galaxy J2 Prime (SM-G532G)

Heimdall-1.4.1-Unofficial-Signed.dmg from github

JOdin3 CASUAL

Java 8 Update 151 (64bit)

When using KOdin3 directly to download PIT (rebooted the device in download mode), it failed and returned this:

<ID:0/008> Added!!Device Connected
Device Removed
Device Removed
Device Removed
/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh: line 2: export: `download-pit': not a valid identifier
/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh: line 2: export: `--output': not a valid identifier
/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh: line 2: export: `/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/part.pit': not a valid identifier
Usage: heimdall <action> <action arguments>Action: close-pc-screenArguments: [--verbose] [--no-reboot] [--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]Description: Attempts to get rid off the "connect phone to PC" screen.Note: --no-reboot causes the device to remain in download mode after the action is completed. If you wish to perform another action whilst remaining in download mode, then the following action must specify the --resume flag.Action: detectArguments: [--verbose] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]Description: Indicates whether or not a download mode device can be detected.Action: download-pitArguments: --output <filename> [--verbose] [--no-reboot] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]Description: Downloads the connected device's PIT file to the specified output file.Note: --no-reboot causes the device to remain in download mode after the action is completed. If you wish to perform another action whilst remaining in download mode, then the following action must specify the --resume flag.Action: flashArguments: [--<partition name> <filename> ...] [--<partition identifier> <filename> ...] [--pit <filename>] [--verbose] [--no-reboot] [--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>] or: --repartition --pit <filename> [--<partition name> <filename> ...] [--<partition identifier> <filename> ...] [--verbose] [--no-reboot] [--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]Description: Flashes one or more firmware files to your phone. Partition names (or identifiers) can be obtained by executing the print-pit action.Note: --no-reboot causes the device to remain in download mode after the action is completed. If you wish to perform another action whilst remaining in download mode, then the following action must specify the --resume flag.WARNING: If you're repartitioning it's strongly recommended you specify all files at your disposal.Action: helpDescription: Displays this dialogue.Action: infoDescription: Displays information about Heimdall.Action: print-pitArguments: [--file <filename>] [--verbose] [--no-reboot] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]Description: Prints the contents of a PIT file in a human readable format. If a filename is not provided then Heimdall retrieves the PIT file from the connected device.Note: --no-reboot causes the device to remain in download mode after the action is completed. If you wish to perform another action whilst remaining in download mode, then the following action must specify the --resume flag.Action: versionDescription: Displays the version number of this binary.

From the log file:

[VERBOSE]Heimdall Device detected!
[VERBOSE]Done with message object
[ERROR]Heimdall Failure Detected
[ERROR]Setting up interface failure
[DEBUG]Executing ELEVATED Heimdall Command: "/usr/local/bin/heimdall" "download-pit" "--output" "/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/part.pit"
[DEBUG]Write Finished
[VERBOSE]/var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh
[DEBUG]Setting executable /var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh. Result=true
[DEBUG]###executing real-time command: /var/folders/4d/44hhln7n4sdcy_j81dkcm1_c0000gp/T/CASUALbhe-2017-11-20-18.50.10/ElevateScript.sh###
[VERBOSE]Heimdall Device detected!
[VERBOSE]Heimdall Device detected!
[VERBOSE]Did not find pit
[INTERACTION][SHOWERROR] Title:Could not obtain pit.
Message:We could not obtain the pit file. We tried, but it didn't work.
press: Empty

When using Heimdall frontend it returned this error:

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
ERROR: Setting up interface failed!
Releasing device interface...

Any idea?

---------- Post added at 07:03 PM ---------- Previous post was at 07:02 PM ----------

Try downloading it from github: https://github.com/Benjamin-Dobell/Heimdall/issues/291