I am attempting to run an application from flash that was converted from DSP to SYS/BIOS, and have so far only maintained all legacy code.
In my linker.cmd file, there is section designation "Codestart" to "BEGIN_FLASH" at 0x33fff6, however, when I add:
var Boot = xdc.useModule('ti.catalog.c2800.init.Boot');
Boot.bootFromFlash = true;
to the cfg file, there is no designation for this. I've read that placing this in the cfg file add the branch to c_init00 at the BEGIN section, but since mine was named BEGIN_FLASH I wasn't sure if it didn't know where to put it. Since I only have 0x2 bits, there is only room for one of these, and since they are essentially the same thing, I don't know which one to use.
Also, if I let Codestart build without a sections defenition and try to debug the program, my ROV gives the error:
"Target memory read failed at: 0a30d0040, langth:4 This read is at an INVALID adress according to the applications section map. The application is likely either uninitialized or corrupt."
which is confusing, because my memory map appears as the following, and I'm not sure what is causing the jump to that location.
UTPUT FILE NAME: <Semikron_SYSBIOS.out>
ENTRY POINT SYMBOL: "_c_int00" address: 00305452
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
PAGE 0:
L01SARAM 00008000 00002000 00001eab 00000155 RW X
FLASH 00300000 0003ff80 0000f2be 00030cc2 RW X
CSM_RSVD 0033ff80 00000076 00000076 00000000 RW X
BEGIN_FLASH 0033fff6 00000002 00000002 00000000 RW X
PASSWORDS 0033fff8 00000008 00000008 00000000 RW X
OTP 00380400 00000400 00000000 00000400 RW X
BOOTROM 003fe000 00001fc0 00000000 00001fc0 RW X
PAGE 1:
MSARAM 00000000 00000800 00000522 000002de RW X
DEV_EMU 00000880 00000180 000000d0 000000b0 RWIX
FLASH_REGS 00000a80 00000060 00000008 00000058 RWIX
CSM 00000ae0 00000010 00000010 00000000 RWIX
ADC_MIRROR 00000b00 00000010 00000010 00000000 RWIX
XINTF 00000b20 00000020 0000001e 00000002 RWIX
CPU_TIMER0 00000c00 00000008 00000008 00000000 RWIX
CPU_TIMER1 00000c08 00000008 00000008 00000000 RWIX
CPU_TIMER2 00000c10 00000008 00000008 00000000 RWIX
PIE_CTRL 00000ce0 00000020 0000001a 00000006 RWIX
PIEVECT 00000d00 00000100 00000000 00000100 RW X
DMA 00001000 00000200 000000e0 00000120 RWIX
MCBSPA 00005000 00000040 00000025 0000001b RWIX
MCBSPB 00005040 00000040 00000025 0000001b RWIX
ECANA 00006000 00000040 00000034 0000000c RWIX
ECANA_LAM 00006040 00000040 00000040 00000000 RWIX
ECANA_MOTS 00006080 00000040 00000040 00000000 RWIX
ECANA_MOTO 000060c0 00000040 00000040 00000000 RWIX
ECANA_MBOX 00006100 00000100 00000100 00000000 RWIX
ECANB 00006200 00000040 00000034 0000000c RWIX
ECANB_LAM 00006240 00000040 00000040 00000000 RWIX
ECANB_MOTS 00006280 00000040 00000040 00000000 RWIX
ECANB_MOTO 000062c0 00000040 00000040 00000000 RWIX
ECANB_MBOX 00006300 00000100 00000100 00000000 RWIX
EPWM1 00006800 00000022 00000022 00000000 RWIX
EPWM2 00006840 00000022 00000022 00000000 RWIX
EPWM3 00006880 00000022 00000022 00000000 RWIX
EPWM4 000068c0 00000022 00000022 00000000 RWIX
EPWM5 00006900 00000022 00000022 00000000 RWIX
EPWM6 00006940 00000022 00000022 00000000 RWIX
ECAP1 00006a00 00000020 00000020 00000000 RWIX
ECAP2 00006a20 00000020 00000020 00000000 RWIX
ECAP3 00006a40 00000020 00000020 00000000 RWIX
ECAP4 00006a60 00000020 00000020 00000000 RWIX
ECAP5 00006a80 00000020 00000020 00000000 RWIX
ECAP6 00006aa0 00000020 00000020 00000000 RWIX
EQEP1 00006b00 00000040 00000040 00000000 RWIX
EQEP2 00006b40 00000040 00000040 00000000 RWIX
GPIOCTRL 00006f80 00000040 0000002e 00000012 RWIX
GPIODAT 00006fc0 00000020 00000020 00000000 RWIX
GPIOINT 00006fe0 00000020 0000000a 00000016 RWIX
SYSTEM 00007010 00000020 00000020 00000000 RWIX
SPIA 00007040 00000010 00000010 00000000 RWIX
SCIA 00007050 00000010 00000010 00000000 RWIX
XINTRUPT 00007070 00000010 00000010 00000000 RWIX
ADC 00007100 00000020 0000001e 00000002 RWIX
SCIB 00007750 00000010 00000010 00000000 RWIX
SCIC 00007770 00000010 00000010 00000000 RWIX
I2CA 00007900 00000040 00000022 0000001e RWIX
L27SARAM 0000a000 00006000 0000487a 00001786 RW X
SRAM 00200000 00020000 00001903 0001e6fd RW X
PARTID 00380090 00000001 00000001 00000000 RWIX
CSM_PWL 003f7ff8 00000008 00000008 00000000 RWIX