I've got a K22F-based board that needs to have a couple of GPIO pins initialized to appropriate values before startup - there's a transmitter connected that shouldn't be left running during the flash load process. It looks like I ought to be able to do this with mem commands (or possibly reg commands) from the init_kinetis.tcl script, but I'm not having any luck getting it to work.
I'm able to set the SCGC5 register without an error, but any port control registers I try to access give me an error. I'm guessing it's just a matter of setting up a missing clock setting or something, but it's late and I'm tired of trying to hunt it down. Does anyone have a working example of a debugger script for the K22 that just sets an I/O pin?