Hi pgo,
Hurray! Finally found the issue!!
Only now I saw the SRSID print modification you did!
It's all about the NMI input Pin, the damn thing!
My board uses the PTB4/NMI as an input pin, with an external pull down resistor, which causes the NMI to interrupt and lockup the core.
I've removed the pull down resistor and voila, it works!!
There are two things to do on the "Kinetis-FTMRH-flash-program-gcc" to fix this, I guess:
Here is the definition of the SIM_SOPT_NMIE field of the SIM_SOPT register. It's value should be (1<<1) as it is the BIT1 of the SIM_SOPT register.
Here is the commented line that disables the NMI Pin. It should be uncommented.
Could you generate a new .hex file with those fixes please?
I believe that with the NMI pin disabled I'll be able to program my board without having to modify anything on it.
Let's how it goes!
Thanks a lot!