Hi,
For the past three days I have been trying to make my application boot-able on the LCDK-C6748 board. The application works fine on the board with the CCS debugger. Now I am trying to flash it to NAND on the board and I am having NO luck. I used AISgen_d800k008 and flash writer provided with starter ware which is sfh_OMAP-L138.exe. I used the OMAPL138_LCDK_AISGen_Config.cfg in the AISgen. The nand flash 16bits and the some pll settings are automatically set by the .cfg.
The steps work fine. That is I can AISGen the app.out to produce app.bin. Then I can use sfh utility to connect to the lcdk via uart (with BOOTME) prompt and erase the flash and then write the image to flash. The steps go without a problem.
For the sfh I use the following steps.
sfh_OMAP-L138.exe -targettype C6748_LCDK -flashtype NAND -p COMx -erase
Flash bootable AIS image (ais_image.bin) to block 1 of the NAND:
sfh_OMAP-L138.exe -targettype C6748_LCDK -flashtype NAND -p COMx -flash_noubl ais_image.bin
However when I change the dip switches to boot from NAND flash and power cycle the board nothing happens. I am expecting to see a banner out put from the serial port. on my computer.
I then built the SerialEcho example in starter ware and ran it using CCS and debugger and works fine. Same story as above when I flashed it and tried to boot without the debugger attached. I have attached the linker map from the SerialEcho program. I am trying to run everything from L2 RAM. My final application will also run from L2 ram entirely.
Please let me know exact steps to follow from a known working tools. Where to download them from etc as several versions of the above tools seems to be floating around. I think there should be a utility integrated with CCS which will allow hapless engineers like me to easily flash target boards which will save a lot of development time.
Another question is can I boot from SD card on the LCDK? If possible can you point me to some information regarding this as well?
Thanks and best regards
Manjula
****************************************************************************** TMS320C6x Linker PC v7.4.15 ****************************************************************************** >> Linked Fri Oct 30 01:27:16 2015 OUTPUT FILE NAME: <uart.out> ENTRY POINT SYMBOL: "_c_int00" address: 11803400 MEMORY CONFIGURATION name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- DSPL2ROM 00700000 00100000 00000000 00100000 RWIX DSPL2RAM 00800000 00040000 00000000 00040000 RWIX DSPL1PRAM 00e00000 00008000 00000000 00008000 RWIX DSPL1DRAM 00f00000 00008000 00000000 00008000 RWIX SHDSPL2ROM 11700000 00100000 00000000 00100000 RWIX SHDSPL2RAM 11800000 00040000 0000404c 0003bfb4 RWIX SHDSPL1PRAM 11e00000 00008000 00000000 00008000 RWIX SHDSPL1DRAM 11f00000 00008000 00000000 00008000 RWIX EMIFACS0 40000000 20000000 00000000 20000000 RWIX EMIFACS2 60000000 02000000 00000000 02000000 RWIX EMIFACS3 62000000 02000000 00000000 02000000 RWIX EMIFACS4 64000000 02000000 00000000 02000000 RWIX EMIFACS5 66000000 02000000 00000000 02000000 RWIX SHRAM 80000000 00020000 00000000 00020000 RWIX DDR2 c0000000 20000000 00000000 20000000 RWIX SEGMENT ALLOCATION MAP run origin load origin length init length attrs members ---------- ----------- ---------- ----------- ----- ------- 11800000 11800000 00003580 00003580 r-x 11800000 11800000 00003580 00003580 r-x .text 11803580 11803580 00000a40 00000000 rw- 11803580 11803580 00000800 00000000 rw- .stack 11803d80 11803d80 00000240 00000000 rw- .far 11803fc0 11803fc0 0000002c 0000002c rw- 11803fc0 11803fc0 00000024 00000024 rw- .fardata 11803fe4 11803fe4 00000008 00000008 rw- .neardata 11803ff0 11803ff0 00000060 00000060 r-- 11803ff0 11803ff0 00000060 00000060 r-- .cinit SECTION ALLOCATION MAP output attributes/ section page origin length input sections -------- ---- ---------- ---------- ---------------- .init_array * 0 11800000 00000000 UNINITIALIZED .text 0 11800000 00003580 11800000 00001aa0 interrupt.obj (.text:retain) 11801aa0 000005e0 interrupt.obj (.text) 11802080 00000580 uart.obj (.text) 11802600 00000200 uartEcho.obj (.text) 11802800 00000200 intvecs.obj (.text) 11802a00 00000180 rts6740_elf.lib : copy_decompress_rle.obj (.text:__TI_decompress_rle_core) 11802b80 00000180 uart_6748plat.obj (.text) 11802d00 00000140 psc.obj (.text) 11802e40 00000100 rts6740_elf.lib : autoinit.obj (.text:_auto_init_elf) 11802f40 00000100 : cpy_tbl.obj (.text:copy_in) 11803040 000000e0 : copy_zero_init.obj (.text:decompress:ZI:__TI_zero_init) 11803120 000000c0 : divu.obj (.text:__divu) 118031e0 000000c0 : exit.obj (.text:exit) 118032a0 000000c0 : tls.obj (.text:tls:init:__TI_tls_init) 11803360 000000a0 : memcpy64.obj (.text:memcpy) 11803400 00000080 : boot.obj (.text:_c_int00) 11803480 00000060 : cpp_init.obj (.text:__TI_cpp_init) 118034e0 00000040 : args_main.obj (.text:_args_main) 11803520 00000020 : exit.obj (.text:abort) 11803540 00000020 : copy_decompress_none.obj (.text:decompress:none:__TI_decompress_none) 11803560 00000020 : copy_decompress_rle.obj (.text:decompress:rle24:__TI_decompress_rle24) .stack 0 11803580 00000800 UNINITIALIZED 11803580 00000008 rts6740_elf.lib : boot.obj (.stack) 11803588 000007f8 --HOLE-- .far 0 11803d80 00000240 UNINITIALIZED 11803d80 00000240 interrupt.obj (.far) .fardata 0 11803fc0 00000024 11803fc0 00000018 uartEcho.obj (.fardata:txArray) 11803fd8 0000000c rts6740_elf.lib : exit.obj (.fardata) .neardata * 0 11803fe4 00000008 11803fe4 00000008 uartEcho.obj (.neardata) .cinit 0 11803ff0 00000060 11803ff0 00000024 (.cinit..fardata.load) [load image, compression = rle] 11804014 0000000c (__TI_handler_table) 11804020 0000000a (.cinit..neardata.load) [load image, compression = rle] 1180402a 00000002 --HOLE-- [fill = 0] 1180402c 00000008 (.cinit..far.load) [load image, compression = zero_init] 11804034 00000004 --HOLE-- [fill = 0] 11804038 00000018 (__TI_cinit_table) LINKER GENERATED COPY TABLES __TI_cinit_table @ 11804038 records: 3, size/record: 8, table size: 24 .fardata: load addr=11803ff0, load size=00000024 bytes, run addr=11803fc0, run size=00000024 bytes, compression=rle .neardata: load addr=11804020, load size=0000000a bytes, run addr=11803fe4, run size=00000008 bytes, compression=rle .far: load addr=1180402c, load size=00000008 bytes, run addr=11803d80, run size=00000240 bytes, compression=zero_init LINKER GENERATED HANDLER TABLE __TI_handler_table @ 11804014 records: 3, size/record: 4, table size: 12 index: 0, handler: __TI_zero_init index: 1, handler: __TI_decompress_rle24 index: 2, handler: __TI_decompress_none GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name address name -------- ---- 11803520 C$$EXIT 11801ef8 ExcCombineAdd 11801f40 ExcCombineRemove 11801ed8 ExcGlobalEnable 11801aa0 IntDSPINTCInit 11801e50 IntDisable 11801e20 IntEnable 11801c18 IntEventClear 11801d54 IntEventCombineAdd 11801c50 IntEventCombineInit 11801df8 IntEventCombineRegister 11801da8 IntEventCombineRemove 11801b5c IntEventMap 11801be4 IntEventSet 11801eac IntGlobalDisable 11801e98 IntGlobalEnable 11801ec0 IntGlobalRestore 11801b10 IntRegister 11801e84 IntReset 11801b34 IntUnRegister 11802d00 PSCModuleControl 118024e4 UARTBreakCtl 118023d4 UARTCharGet 118023a8 UARTCharGetNonBlocking 11802410 UARTCharPut 11802368 UARTCharPutNonBlocking 11802318 UARTCharsAvail 11802114 UARTConfigGetExpClk 11802080 UARTConfigSetExpClk 118021ec UARTDMADisable 118021cc UARTDMAEnable 11802294 UARTDisable 11802278 UARTEnable 118022d4 UARTFIFODisable 118022c0 UARTFIFOEnable 118021a8 UARTFIFOLevelSet 11802490 UARTIntDisable 11802468 UARTIntEnable 118024b8 UARTIntStatus 11802570 UARTModemControlClear 118025a4 UARTModemControlGet 11802518 UARTModemControlSet 118025c4 UARTModemStatusGet 11802254 UARTParityModeGet 1180220c UARTParityModeSet 11802b80 UARTPinMuxSetup 11802348 UARTRxErrorGet 118022ec UARTSpaceAvail 11804038 __TI_CINIT_Base 11804050 __TI_CINIT_Limit 11804014 __TI_Handler_Table_Base 11804020 __TI_Handler_Table_Limit UNDEFED __TI_INITARRAY_Base UNDEFED __TI_INITARRAY_Limit 11803d80 __TI_STACK_END 00000800 __TI_STACK_SIZE 11803fe4 __TI_STATIC_BASE UNDEFED __TI_TLS_INIT_Base UNDEFED __TI_TLS_INIT_Limit 00000001 __TI_args_main 11803480 __TI_cpp_init 11803540 __TI_decompress_none 11803560 __TI_decompress_rle24 11803fe0 __TI_enable_exit_profile_output ffffffff __TI_pprof_out_hndl ffffffff __TI_prof_data_size ffffffff __TI_prof_data_start 118032a0 __TI_tls_init 11803040 __TI_zero_init ffffffff __binit__ 11803120 __c6xabi_divu ffffffff __c_args__ 11803120 __divu 118034e0 _args_main 11802e40 _auto_init_elf 11800ff8 _c674x_mask_int10_isr 118011c0 _c674x_mask_int11_isr 11801384 _c674x_mask_int12_isr 11801548 _c674x_mask_int13_isr 11801710 _c674x_mask_int14_isr 118018d8 _c674x_mask_int15_isr 11800550 _c674x_mask_int4_isr 11800718 _c674x_mask_int5_isr 118008e0 _c674x_mask_int6_isr 11800aa4 _c674x_mask_int7_isr 11800c68 _c674x_mask_int8_isr 11800e30 _c674x_mask_int9_isr 11800000 _c674x_nmi_isr 118001c4 _c674x_rsvd_int2_isr 11800388 _c674x_rsvd_int3_isr 11803400 _c_int00 11803fd8 _cleanup_ptr 11803fdc _dtors_ptr 11802800 _intcVectorTable 11803580 _stack 11803520 abort ffffffff binit 11802f40 copy_in 118031e0 exit 11802600 main 11803360 memcpy 11803fc0 txArray GLOBAL SYMBOLS: SORTED BY Symbol Address address name -------- ---- 00000001 __TI_args_main 00000800 __TI_STACK_SIZE 11800000 _c674x_nmi_isr 118001c4 _c674x_rsvd_int2_isr 11800388 _c674x_rsvd_int3_isr 11800550 _c674x_mask_int4_isr 11800718 _c674x_mask_int5_isr 118008e0 _c674x_mask_int6_isr 11800aa4 _c674x_mask_int7_isr 11800c68 _c674x_mask_int8_isr 11800e30 _c674x_mask_int9_isr 11800ff8 _c674x_mask_int10_isr 118011c0 _c674x_mask_int11_isr 11801384 _c674x_mask_int12_isr 11801548 _c674x_mask_int13_isr 11801710 _c674x_mask_int14_isr 118018d8 _c674x_mask_int15_isr 11801aa0 IntDSPINTCInit 11801b10 IntRegister 11801b34 IntUnRegister 11801b5c IntEventMap 11801be4 IntEventSet 11801c18 IntEventClear 11801c50 IntEventCombineInit 11801d54 IntEventCombineAdd 11801da8 IntEventCombineRemove 11801df8 IntEventCombineRegister 11801e20 IntEnable 11801e50 IntDisable 11801e84 IntReset 11801e98 IntGlobalEnable 11801eac IntGlobalDisable 11801ec0 IntGlobalRestore 11801ed8 ExcGlobalEnable 11801ef8 ExcCombineAdd 11801f40 ExcCombineRemove 11802080 UARTConfigSetExpClk 11802114 UARTConfigGetExpClk 118021a8 UARTFIFOLevelSet 118021cc UARTDMAEnable 118021ec UARTDMADisable 1180220c UARTParityModeSet 11802254 UARTParityModeGet 11802278 UARTEnable 11802294 UARTDisable 118022c0 UARTFIFOEnable 118022d4 UARTFIFODisable 118022ec UARTSpaceAvail 11802318 UARTCharsAvail 11802348 UARTRxErrorGet 11802368 UARTCharPutNonBlocking 118023a8 UARTCharGetNonBlocking 118023d4 UARTCharGet 11802410 UARTCharPut 11802468 UARTIntEnable 11802490 UARTIntDisable 118024b8 UARTIntStatus 118024e4 UARTBreakCtl 11802518 UARTModemControlSet 11802570 UARTModemControlClear 118025a4 UARTModemControlGet 118025c4 UARTModemStatusGet 11802600 main 11802800 _intcVectorTable 11802b80 UARTPinMuxSetup 11802d00 PSCModuleControl 11802e40 _auto_init_elf 11802f40 copy_in 11803040 __TI_zero_init 11803120 __c6xabi_divu 11803120 __divu 118031e0 exit 118032a0 __TI_tls_init 11803360 memcpy 11803400 _c_int00 11803480 __TI_cpp_init 118034e0 _args_main 11803520 C$$EXIT 11803520 abort 11803540 __TI_decompress_none 11803560 __TI_decompress_rle24 11803580 _stack 11803d80 __TI_STACK_END 11803fc0 txArray 11803fd8 _cleanup_ptr 11803fdc _dtors_ptr 11803fe0 __TI_enable_exit_profile_output 11803fe4 __TI_STATIC_BASE 11804014 __TI_Handler_Table_Base 11804020 __TI_Handler_Table_Limit 11804038 __TI_CINIT_Base 11804050 __TI_CINIT_Limit ffffffff __TI_pprof_out_hndl ffffffff __TI_prof_data_size ffffffff __TI_prof_data_start ffffffff __binit__ ffffffff __c_args__ ffffffff binit UNDEFED __TI_INITARRAY_Base UNDEFED __TI_INITARRAY_Limit UNDEFED __TI_TLS_INIT_Base UNDEFED __TI_TLS_INIT_Limit [102 symbols]