Tool/software: TI C/C++ Compiler
Hi,
I am working of dsk6713 secondary bootloader. I found some sample code in https://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/144437 . The code is really simple and straight forward. just two confusion points:
1) How CODE_SIZE -4 = BOOT_SIZE -1024???
2) Why B6 is loaded again and again with same Constant value i.e. CODE_SIZE-4 in loop?
3) Why A1 is incremented first and then the high 16 bits are loaded into B6. i.e. why MVKL and MVKH is splited?
CODE_SIZE .equ 0x0003ffff _boot_loop1: ldb *B4++,B5 ;flash read mvkl CODE_SIZE-4,B6 ;B6 = BOOT_SIZE -1024 add 1,A1,A1 ;A1+=1,inc outer counter || mvkh CODE_SIZE-4,B6 cmplt A1,B6,B0