Jump to content
43oh

ntfreak

Members
  • Content Count

    32
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ntfreak

  1. http://forum.stellarisiti.com/index.php?/topic/309-ICDI-support-in-OpenOCD#entry3483
  2. 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. 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. Save yourself lots of grief and use gcc to link. Too many tutorials use ld and it generally will end in tears. Spen
  6. 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-x
  7. 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. 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. For info ICDI support has now been merged into OpenOCD master branch, so no more patches are required. Cheers Spen
  10. 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
  11. 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. 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
  13. 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
  14. 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
  15. OpenOCD support is still being tested, however currently no known issues. http://forum.stellar...ort-in-openocd/ Spen
  16. How did you build OpenOCD, you will need to pass --enable-ti-icdi to configure Spen
  17. try using 'monitor reset halt' rather than 'monitor halt reset'. As a side note it is often safer to use 'monitor reset init'. this does the same as reset halt except it will call any registered reset scripts - if any. you may also use extended remote rather than remote, then you have access to the gdb start/run cmd's that will perform a reset and set a breakpoint on main automatically. so use target extended-remote :3333 rather than target remote :3333 Spen
  18. The code to set breakpoints is in target/cortex_m.c Spen
  19. I have just updated the windoze binaries, fixing a very obscure timeout issue - no functional changes. Same url as before: https://docs.google.com/uc?export=download&id=0Bzv7UpKpOQhnQTcwWU9PcFNEU00 Spen
  20. That has been a known OpenOCD issue for a while - it is on my todo list. It does depend on what gdb you use, however the fix is here: http://www.mail-archive.com/openocd-development@lists.berlios.de/msg18182.html Spen
  21. That's good news, has anyone else tested as it would be good to get more feedback. If it helps windoze users I can create a binary. ok i have created some test windoze binaries - both 32 and 64bit - https://docs.google.com/uc?export=download&id=0Bzv7UpKpOQhnQTcwWU9PcFNEU00 Spen
  22. watchpoints should work, but to be honest it is a while since i have used them. If i recall one thing that may be worth mentioning is gdb will halt/check/resume when checking memory read/write access, not sure if this is still the same. As a test try setting the watchpoint manually, using telnet or gdb monitor cmd. Spen
  23. ok i have uploaded support for the ICDI to the OpenOCD review system (gerrit) - http://openocd.zylin.com/922 This is really only for devs, as it requires you to build OpenoCD from src. But if you are happy building then feel free to test. Once we iron out any issues it will be commited to OpenOCD master ready for a release. Also for those who wish to discuss join us on ##stellaris over on freenode. Cheers Spen
  24. TI have released some info on the ICDI interface - i have uploaded here for all to access: https://docs.google.com/uc?export=download&id=0Bzv7UpKpOQhnWDFfSENySkJfdW8 Also checlout the following project that supports the ICDI: https://github.com/utzig/lm4tools I am still working on OpenOCD support, the above projects are standalone. Cheers Spen
×
×
  • Create New...