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.

How to set SW1 switch on OMAPL138LCDK for emulator connection?



Hi,

I want to run some small project (no OS) on L138LCDK. I have included .gel file, but it complains "Does not match target type, not loaded". I suspect that the configuration for emulator connection is different from Linux boot from SD flash, but I cannot find any info on TI web site. Could you confirm and help me on the board settings for emulator connection?

Thanks,

  • Hi,

    I would like to use emulator XDS200 to debug a small project. I do not understand which boot mode I should use, see below table. Could you explain it to me? Thanks,

    Switches (SW1)

    Switches 1-4 on SW1 are used to set the BOOT as follows:

    Switch #UART2NAND 16MMC/SD0
    1 OFF OFF OFF
    2 ON ON OFF
    3 OFF ON OFF
    4 ON ON ON

  • Looks like you found the answer already. The boot modes are defined in sprab41d.pdf, Appendix A Boot Mode Selection Table. The BOOT bits for the modes you have noted are:
    Table 11. Boot Mode Selection
    0xx 1000 0 NAND 16
    00x 1110 0 MMC/SD0
    xxx 1010 0 UART2
    000 1111 0 Emulation Debug

    Switch 1 = BOOT4
    Switch 2 = BOOT3
    Switch 3 = BOOT2
    Switch 4 = BOOT1

    The switches are inverted. For emulation debug, Switch 1 to 4 should be OFF or BOOT[4:1] = 1111.