W dniu 2012-02-02 20:54, Øyvind Harboe pisze: > On Thu, Feb 2, 2012 at 7:48 PM, Chris Morgan<[email protected]> wrote: >> Hi Oyvind. >> >> Would you be able to provide some guidance on how to resolve the >> issues with the lpc2478.cpu and others that are setting TARGETNAME >> from the init_target path and board files like the ea board file that >> use TARGETNAME when sourced and before the init code is called? > > I'm short on time these days and I forget all the details.... > > I believe Freddie was pretty much on top of the issues. > > Freddie pointed out that there were some grander thoughts, but 0 > adoption of those grander thoughts on how initialisation could be > done more generally and more robustly. Perhaps a more crude and > more easily understood approach would be better.
I've just checked and you CAN define handlers (like reset-init) inside procedures (like init_targets()), so I think that adding a init_boards() function that would be executed after init_targets() is quite a good idea. Overriding init_targets() is not the best idea if you only need to do something completely different (init some external RAM, configure resets, ...) than init_targets() does in current script... What do you think? I could try to do some patches to make that work, but I'm first looking for your opinion on this approach (keeping init_targets(), adding init_boards() or init_board() [second one sounds better, but is not consistent with init_targets()])... 4\/3!! ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
