|
From: Jonathan L. <ji...@eC...> - 2008-02-18 16:31:04
|
kitts wrote: > First of all. sorry for being on the development list. I was unable to find a > users list. Please do redirect me if this place is inappropriate. > > I use KDevelop as my IDE for development along with the arm-eabi-none > toolchain from Codesourcery. This setup / combination works very well for me > when loading into and executing from RAM. However, it become slightly more > complex with operating from flash. I first need to create a bin file and then > need to launch openocd with a alternate config file along with a script to > first flash the device and then launch gdb with an alternate init script. > > Recently i was informed by folks at Codesourcery that GDB is capable of > writing to flash on the load instruction. There aren't very many implementations outside of codesourcery. Fortunately one of them is in openocd.... > I would like to know if i can > follow this method with openocd as it would save a lot of development time. I > would request anyone with any knowledge on this to guide me as i was unable > to find any openocd examples that followed this method. openocd implements the required functionality, or at least it's meant to ;-). So it's up to you to drive GDB to use it. You will only be able to do it from kdevelop if kdevelop gives you a GDB command line you can use. Note that the feature is only available in GDB 6.6 and later. The key is to define your memory map in GDB correctly to indicate which memory regions are flash. Then when you do a 'load' it automatically reprograms the flash. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["The best things in life aren't things."]------ Opinions==mine |