Hi Joe
To re-confirm. Flash (in certain newer parts) will give hard faults if 'previously' it was incorrectly programmed, so whatever software or debugger tries to access it as a read it will cause the error. After a mass-erase the complete flash should be Ok again so it doesn't point to any problem with your loader as long as it didn't cause the original error (or previous versions didn't).
>>I hope NXP provides you some income since you are about the only person that responds to questions. Since NXP purchased Freescale, the "Factory" support for this forum has really down down the tube!!!
I don't think that the support has deteriorated, but the forum seems to be mutating more into how to get the Freescale/NXP code to actually work rather than technical (and more interesting) chip/peripheral issues. The way of semiconductor companies during the last years has been to try to give customers a black-box which magically generates code, dumbing down the users so that they can only actually get things working when this happens to work or they have the time to invest in actually filling in the learning gap to make progress. In fact I think that there are many more NXP employees that are supporting the forum recently and some are obviously knowledgable in some areas but also seem to get stuck when the magic stops working and then write that they are "passing on the question to the 'team' who did that part". Sometimes they do get back but quite often not, or only after weeks or months.
The strategy may be not the best for developers who end up being dependent on tools to solve even quite simple problems and cannot move to other devices (including competitors) because they know (and also their employers who are funding this know), that it would be a too great learning curve (also read as costly). The strategy is however good for semiconductor manufacturers since new customers think that they are getting everything handed to them on a plate while they are in fact often getting "locked in" so that it is too late later when they realise how much their development with all the free code thrown at them will actually cost to get it finished, so they just plow on anyway.
In fact I have been a Freescale Design Allicance Partner for 10 years and worked closely with various FAEs (they come and go so many of these are now with Atmel, Texas or similar) and have supported around 1'000 Coldfire/Kinetis projects during the period (some delivering code and some taking on new protocol developments or in some cases complete product development). In various projects I managed to convince customers to move to the (in my eyes) better Coldfire or more recently Kinetis environments (often the origial intention was to use something that they already knew from ST or Atmel etc.) and supply complete operating environments to give them flying starts. Together with Freescale FEAs we organised eval boards to get started with (which I could get at reduced rates as a Partner at the time) and I experienced many efficient and reliable product developments, with many original Coldfire users now having migrated to Kinetis where we are still active on new product developments as continued collaborators.
The world changes though (also before the NXP takeover). Freescale originally worked closer with partners, offering reduced evaluation boards as well as pre-release examples and information. Over the years I have invested about $10k in Freescale development and evaluation boards and was very pleased to sometimes get first pre-release versions free so that I could get some experience and port my own code to so that we could start using them faster for new work. More recently (again before the change) the focus changed to what seems to be an internal struggle to get up an internal software framework available (based on foreign OS, open-source stacks and such) and gradually any advantages of being a software development partner have deteriorated (no more reductions on hardware or contact concerning new parts to be released shortly).
A few weeks ago I received a letter from NXP saying that they have reviewed our parnership and have decided to terminate it, so at least I have nothing more to compain about. Initially I thought that I should explain to them how many new customers that I had helped to win for Freescale over the years and the many hundreds (or thousands) of products that I helped get to market faster (I have no idea of how many millions of parts that have been involved) but decided that it was not worth the effort anyway. So now I am pure free-lancer (zero NXP ties either contactually or morally) and have my own greater freedom in being able to choose to better support other chip lines if I see fit (I do like the Kinetis though so do this because I really enjoy it). When one gets older I think that one learns to accept things that one cannot change anyway.
If there was one thing that would sometimes be nice it would be to have a small recognition - for example, I have many industrially proven solutions that Freescale/NXP SW simply can't match. When I point this out to someone who (may) be able to benefit from it as an 'off-the-shelf' solution that they can have even for free if needed [eg. a USB host boot loader for a K21 to build with Rowley Crossworks] someone from NXP will then write that they highly recommend the user to take an application note example that runs on a K60 and builds with IAR and port it as being the "preferred solution". I see absolutely no way that that is in the interest of NXP (or the customer) to advice to embark on a further porting adventure (which may equate to several weeks of work and project delay with no guarantee of success) rather than take something proven so that they can get to market quicker (and potentially more reliably) and ultimately sell more of their and NXP's products. However there are literally hundreds of such posts - one of my US customers actually said to me once that they had seen such a post where in his opinion "that 'stomped' on you there".
Anyway, that explains the Flash stuff ;-)
Regards
Mark