I finally got around to working more on my command line tool to flash the DEVKIT-MPC57xx boards without having to launch Eclipse: GitHub - jed-frey/opensda_flasher
It uses Python to call GDB and the PE GDB Server. Can be added to Jenkins to flash files after they've been compiled for unit testing. Can load to flash and to RAM (to avoid wear).
Install:
pip install git+https://github.com/jed-frey/opensda_flasher.git#egg=opensda_flasher
Examples:
opensda_flasher flash C:\NXP\workspaceS32DS.Power12\ADC_MPC5744P\Debug\ADC_MPC5744P.elf
opensda_flasher debug C:\NXP\workspaceS32DS.Power12\ADC_MPC5744P\Debug_RAM\ADC_MPC5744P.elf
osf.ini
opensda_flasher init
osf --config osf.ini flash C:\NXP\workspaceS32DS.Power12\ADC_MPC5744P\Debug\ADC_MPC5744P.elf
osf --config=adc.ini init C:\NXP\workspaceS32DS.Power12\ADC_MPC5744P\Debug\ADC_MPC5744P.elf
Then use the config to flash the elf.
osf --config=adc.ini flash
Fixed issue with DEVKIT-MPC5748G timing out.
Added command line option "ports" to show what devices are connected.