I found another alignment problem, this time i was experimenting with the FRDM-KL25z board, I experienced a hardfault whithin the bss zero loop (using a modified startup assembly from freescale with loop to zero the bss) and it was due to a misaligned __bss_end__ symbol.
I have not looked into the other examples, I noticed the MKL26 example does not even use __bss_end__ in the startup but I seem to recall that some others do.
I found another alignment problem, this time i was experimenting with the FRDM-KL25z board, I experienced a hardfault whithin the bss zero loop (using a modified startup assembly from freescale with loop to zero the bss) and it was due to a misaligned __bss_end__ symbol.
I have not looked into the other examples, I noticed the MKL26 example does not even use __bss_end__ in the startup but I seem to recall that some others do.
the following patch will fix it: