On Monday 15 February 2010, Jörg Fischer wrote: > Hi, > > just finished my openocd.cfg for the Hitex LPC1768-Stick: > http://www.hitex.com/index.php?id=lpc1768-stick-details > > It has an FT2232D for JTAG with "stm32stick" layout connected to > the NXP LPC1768 µC (Cortex M3). > > The attached openocd.cfg contains the full configuration, > because the tcl/target/lpc1768.cfg seems to have some issues: > > "arm core_state arm" is not possible on the LPC1768.
Of course not ... it's Cortex-M3 processor, which only supports the Thumb2 instruction set ... not "classic ARM" So even if the "arm" command prefix were supported for Cortex-M parts (it isn't) ... the hardware wouldn't be able to implement that particular operation. Some day I expect the Cortex-M parts will support more of those standard-for-OpenOCD ARM commands, like the standard disassembly and mrc/mcr commands ... but they will *NEVER* support "use ARM instructions not Thumb". What's the issue? Your script isn't trying that impossible thing, and shouldn't. I don't see anything wrong. > It also doesn't remap the Bootloader on Address 0x00000000 > correctly. The LPC1768-Stick has only a 4 MHz > quartz crystal (needed for the flash definitio line). Are you saying that nothing puts the flash at 0, and it's always the boot loader? I thought the remapping was part of the boot configuration for LPC chips... > A bigger issue was Reset configuration: OpenOCDs lpc1768.cfg > states: "trst_and_srst srst_pulls_trst" which seems to be correct, > BUT you cannot issue a "reset init" (unless you change the rest config > to "trst_only"). Why is there no fallback to "trst_only"...? > > The reset_config "trst_and_srst separate" works for me too. Hmm, that's strange. Other boards with "srst_pulls_trst" can successfully "reset init". What causes the problem you see? > Thanks for a great jtag debugging tool, > > -- J. Fischer > > > ps. > For Windows (7) 64 Bit Users: Hitex ships no 64 Bit drivers, and the > Tools won't install on 64 Bit Systems. But i could make FTDIs driver > work by adding the USB-IDs to the drivers inf files. My 32 Bit OpenOCD > linked to ftd2xx lib (using mingw gcc) works well on 64 Bit Windows 7 now. We do seem to be doing several things right. :) - Dave _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
