# Link between code and bin not working

**URL:** <https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [December 29, 2010, 9:53am UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709 "2010-12-29T09:53:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oji](https://avatars.discourse-cdn.com/v4/letter/o/c6cbf5/32.png) [@oji](https://community.sparkfun.com/u/oji)\
**Post date:** [December 29, 2010, 9:53am UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709/1 "2010-12-29T09:53:52Z")

</div>

Hi,

I downloaded FreeRTOS and started the lm3s project and followed the FreeRTOS howto for setting up the system.

I am now able to program the device, so openOCD is setup correctly (i think).

When i try to debug, it does not show code and in eclipse it ssays it could not set breakpoint.

The strange thing is i am **able** to pause the program and run it, but i can not see in C code where the program is at (disassembly works too in eclipse).

What can cause this???

---

<div class="post-metadata">

**Author:** ![tnkirk](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@tnkirk](https://community.sparkfun.com/u/tnkirk)\
**Post date:** [December 30, 2010, 3:27am UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709/2 "2010-12-30T03:27:36Z")

</div>

In your load script for GDB, did you set the symbol file?

In Eclipse when you set up your Debug configuration, this would be in your either be in your GDB command file if you have one, or else what I do is I have the following line as part of my run commands, in addition to the load, monitor, continue, etc…:

#set symbol file

#symbol-file “C:/workspace/blinktest1/gcc/blinky.axf”

symbol-file “C:/working/FreeRTOS\_V4.5.0\_LM3Sxxxx\_GCC\_Eclipse/FreeRTOS/Demo/CORTEX\_LM3Sxxxx\_Eclipse/RTOSDemo/RTOSDemo.axf”

---

<div class="post-metadata">

**Author:** ![oji](https://avatars.discourse-cdn.com/v4/letter/o/c6cbf5/32.png) [@oji](https://community.sparkfun.com/u/oji)\
**Post date:** [December 30, 2010, 9:22am UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709/3 "2010-12-30T09:22:13Z")

</div>

O ok, i will test this as soon as i can, i am now using eclipse helios en have just seen you could set the image and symbols. Have a good feeling about this.

---

<div class="post-metadata">

**Author:** ![oji](https://avatars.discourse-cdn.com/v4/letter/o/c6cbf5/32.png) [@oji](https://community.sparkfun.com/u/oji)\
**Post date:** [December 31, 2010, 9:08am UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709/4 "2010-12-31T09:08:52Z")

</div>

HI, enabled the check-boxes for symbol etc. and i could see where the C code was at, but the device always was in Faul isr, so i downloaded Galileo version of eclipse and it worked out of the box.

---

<div class="post-metadata">

**Author:** ![oji](https://avatars.discourse-cdn.com/v4/letter/o/c6cbf5/32.png) [@oji](https://community.sparkfun.com/u/oji)\
**Post date:** [January 21, 2011, 1:06pm UTC](https://community.sparkfun.com/t/link-between-code-and-bin-not-working/18709/5 "2011-01-21T13:06:50Z")

</div>

My older version works ok and i am not planning on upgrading, but the problem seems to be larger than only on my device, and someone already made a patch.

[https://lists.berlios.de/pipermail/open … 17349.html](https://lists.berlios.de/pipermail/openocd-development/2010-December/017349.html)

I did not test it.
