This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

boot_serial TivaWare_C_Series-2.1.0.12573 issue for IAR

Hi, I am trying to debug "boot_serial" example from TivaWare_C_Series (2.1.0.12573) but without success, (when programming only it works)

The code compiles, but when debugging with I-jet or TI Stellaris in IAR

first I get the following message:

and after pressing ok I the debugger stops at the following line:

When it should be pointing after ResetISR,

when pressing step over it just stays at the same line.

However when using the same boot_serial with ccs, it seems to work

It enters to ResetISR, and after running it further it enters UARTReceive

So it seems to work fine with CCS but no with IAR

I would like to know if I need to setup different settings for boot_serial project in IAR,

any suggestions?

  • Picture orders

    1.

    2.

    3

    4.

  • Hello Igor

    The default settings of the project must allow it work on the two IDEs. I am not sure on IAR, but in case of CCS there is Run to option, which keeps the CPU at ResetISR or main depending upon what options have been selected.

    Regards
    Amit
  • Hi Amit,

    The problem is, I suspecting in "bl_link.icf" file, when compling TI example from TivaWare_C_Series-2.1.1.71\boot_loader

    I'm getting the following messages (I'm using TM4C123G)

    The debugger can't get to first instruction after ResetISR,

    What could be wrong here?

  • Hello Igor,

    Th IDE is trying to find main which does not exist in the boot loader

    Regards
    Amit
  • Hi Amit,

    I know there is no main in bootloader, but how can tell the debugger to go ResetISR,

    Setting in debugger->setup->run to->ResetISR, or Linker->Library Entert symbol->ResetISR doesn't help either

    Also the warnings produced

    Could cause the problem? how do I fix them?

  • Hello Igor

    I ran the boot serial code on TM4C123 and when I do a System Reset (after I uncheck run to main), the code stops at flash vector location for ResetISR

    Regards
    Amit
  • Hello Igor,
    IAR also has a 'run to main' setting which can be found here:
    PROJECT>OPTIONS>DEBUGGER>SETUP.
    Deselecting this will allow you to single step from the startup rather than automatically land at a 'main' routine if it's present.
    But like Amit says, if the code doesn't contain 'main' then it'll flag an error.

    So, I'd check your memory map settings for the project as these are the other 2 warnings you have. On the same IAR setup page, as above, check you have the correct 'device description file' and then that the linker file contains the correct memory map for your device as one of the warnings suggests a mismatch. The linker setup file is found here:
    PROJECT>OPTIONS>LINKER>CONFIG>LINKER CONFIGURATION FILE

    Once the setup is correct, if you then wish to run to 'ResetISR', select a breakpoint in the margin at the routine, to produce a red dot, and select 'Go'.

    Hope that helps
  • Poster "Pete" here has provided very sound/detailed guidance. (Bravo!)

    That said - your listing reveals IAR ver 6.4 - which is quite old. Newer IAR version may better reflect the "memory models" of the more recent TM4C devices - which in conjunction w/Pete's guidance - may speed you to your objective...

    Note: Forum - at times - is maddening.   I made extra effort to "click on Igor" and the bloody forum rejects that - responds (instead) to Pete...