This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compilation issue with KEIL

Hi,

I am building my application for lpc3131 processor using keil toolchain. I am able to create bin and rom image but when i try to debug( that i can do only through axf file), my usbmem example( provided by nxp ) does not work. But the same code complied through codesourcery toolchain works perfectly on board.

Kindly provide some insight in this respect.

Parents Reply Children
  • KEIL Toolchain is able to generate AXF and HEX file. With the KEIL Utility fromelf, you can convert ELF images into other formats for use by ROM tools and for loading directly into memory.

    http://www.keil.com/support/man/docs/armutil/armutil_Cacbafgi.htm

    http://www.keil.com/support/man/docs/armutil/armutil_Babchceg.htm

    Debugging the firmware of an USB Device, needs a little more considerations and preparations. So, I think that, you can temporarily skip the debugging, and just download the firmware to your target board, run it, and see if it works properly.

  • I am able to create bin and rom image

    If you already use the fromelf utility successfully, just failed to debug the firmware, then I will recommend you to create a new thread titled with "XXX USB XXX", you may have a better chance to get helps.

    For debugging an USB Device:


    www.beyondlogic.org/.../usb6.htm

    These timeout periods are quite acceptable for even the slowest of devices, but can be a restriction during debugging. 50mS doesn't provide for many debugging characters to be sent at 9600bps on an asynchronous serial port or for a In Circuit Debugger/Emulator to single step or to break execution to examine the internal Registers. As a result, USB requires some different debugging methods to that of other microcontroller projects.

  • Now I am able to debug my application through axf file and usbem example is working fine. But ROM format creation is still an issue. I will go through the links provided.

    What is the difference between bin and rom format except CRC check? And if this is the only difference, does my board demand the format with CRC checksum only ?