Jump to content

ntfreak

Members
  • Content Count

    32
  • Joined

  • Last visited

  • Days Won

    1

ntfreak last won the day on June 26 2012

ntfreak had the most liked content!

About ntfreak

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    UK
  1. ntfreak

    problem in Debugging through GDB

    http://forum.stellarisiti.com/index.php?/topic/309-ICDI-support-in-OpenOCD#entry3483
  2. ntfreak

    ICDI support in OpenOCD

    manish, You should have really created separate thread as this one relates to the TI ICDI support within OpenOCD. Sorry but i see nothing wrong in the above log, you have flashed the target, set a breakpoint (@ main) and then told it to continue. The note about breakpoints is nothing to worry about, it just means gdb has detected that hardware breakpoints are supported and is using them. OpenOCD passes gdb info about the memory map, from which the above decision is made. Cheers Spen
  3. ntfreak

    ICDI support in OpenOCD

    There is a link in this very thread - http://forum.stellarisiti.com/topic/309-icdi-support-in-openocd/page-2#entry1186 Not the latest version, but should work ok to get you started. Spen
  4. Had a quick look at the tutorial and it looks ok to me, i already had eclipse/OpenOCD setup so did not need to follow it. So what is not working, can you post logs, cmds used, anything that may help us to help you? Cheers Spen
  5. ntfreak

    Anyone building CMSIS under Linux?

    Save yourself lots of grief and use gcc to link. Too many tutorials use ld and it generally will end in tears. Spen
  6. ntfreak

    OpenOCD and cygwin causing stackdump

    Following on to build native mingw in cygwin i use the following configure line: # bootstrap only needed on first checkout./bootstrap# build line for native 32bit windows./configure --enable-maintainer-mode --build=i686-pc-cygwin --host=i686-w64-mingw32 --disable-shared --disable-werror --enable-stlink# to build for 64bit we would use./configure --enable-maintainer-mode --build=i686-pc-cygwin --host=x86_64-w64-mingw32 --disable-shared --disable-werror --enable-stlink You will need to have the windows native cross compiler installed mingw64-i686-gcc-core etc for 32bit or mingw64-x86_64-gcc-core etc for 64bit build and also libusbx - http://sourceforge.net/projects/libusbx/files/releases/1.0.14/Windows/libusbx-1.0.14-win.7z/download You will need to put the add the header and lib files to the compilers create /usr/i686-w64-mingw32/sys-root/mingw/include/libusb-1.0/ and place libusb.h into it (note call it libusb-1.0 not libusbx-1.0 /usr/x86_64-w64-mingw32/sys-root/mingw/include/libusb-1.0/ for 64bit compiler. next add the correct lib (from above archive) to either below. i use the static one. /usr/i686-w64-mingw32/sys-root/mingw/lib/ /usr/x86_64-w64-mingw32/sys-root/mingw/lib/ As a note I use enable-stlink as it builds for the ti-icdi as well, they use the same driver backend so are built together. Cheers Spen
  7. ntfreak

    OpenOCD and cygwin causing stackdump

    one note is your are using the old OpenOCD git url, either use git clone git://git.code.sf.net/p/openocd/code openocd git clone http://git.code.sf.net/p/openocd/code openocd Cheers Spen
  8. ntfreak

    OpenOCD and cygwin causing stackdump

    Firstly i would try using OpenOCD master as support for the ICDI has been merged for a while. I have built ICDI support using cygwin, however i use it to cross compile for native windows (mingw). Infact i have just fixed a bug with this adapter that was causing random issues: https://forum.sparkfun.com/viewtopic.php?f=18&t=34636 Cheers Spen
  9. ntfreak

    ICDI support in OpenOCD

    For info ICDI support has now been merged into OpenOCD master branch, so no more patches are required. Cheers Spen
  10. ntfreak

    ICDI support in OpenOCD

    It is not a known problem, but i would like to find out why. Like i say i have only tested linux and windows and they do not have this issue - for me anyway. First i would say check you have the latest ICDI firmware loaded - the version you have will be printed when OpenOCD connects - ICDI Firmware version: 9454 Mine is using 9454, at the moment the only way to update is on windows, you have to install the LMI Flash Programmer - http://www.ti.com/tool/lmflashprogrammer The error returned is a read timeout, so the ICDI is receiving a cmd but not replying, if updating the firmware does not change the issue then as a test could you change the timeout value to 2 secs. This can be changed by altering the define ICDI_READ_TIMEOUT to say 2000 (2secs) - file src/jtag/drivers/ti_icdi_usb.c:42. Cheers Spen
  11. ntfreak

    ICDI support in OpenOCD

    martytoof, Make sure you are using the latest patchset, quite a few tutorials link to older ones - latest is #14 so you would do the following git fetch http://openocd.zylin.com/openocd refs/changes/22/922/14 && git checkout FETCH_HEAD I do not use mac so have not tested under that OS, what version libusb are you using? Cheers Spen
  12. ntfreak

    TapATalk updated to 3.3.4

    Thanks, that's better:-)
  13. ntfreak

    TapATalk updated to 3.3.4

    Not sure when it broke but the plugin is not displaying multi page posts correctly. It repeats the first page for every page. Was working fine and is working for other forums i use. For info using android 2.4.5 of tapatalk. Cheers Spen
  14. ntfreak

    ICDI support in OpenOCD

    It is a known issue, depending on where your gdb came from, see http://www.mail-archive.com/openocd-development@lists.berlios.de/msg18182.html for a workaround. When I get some spare time I am meaning to update OpenOCD to better handle this issue. Cheers Spen
  15. ntfreak

    ICDI support in OpenOCD

    This is something i need to look into more, as you have seen the std cortex implementation does have a maskisr function that does what you want. The higher level adapters (stlink/icdi) do not have access to this implementation, but with a few changes i sure we can get it working on the icdi aswell. One solution if you are using an ide is to use the "run to", as this sets a breakpoint and works around the issue. Cheers Spen
×