Hi ,
previously i discussed with you all about f2812 SCI Boot mode, please finally answer one more question.
1. what linker file i have to add to compile the source code for SCI BOOT Mode HEX FILE ?
I HAVE TWO LINKER FILES , I ATTACHED WITH THIS MAIL, PLEASE CORRECT AND SENT IT TO ME , ...
I HAVE TO FINISH MY PROJECT AS SOON.........., PLEASE HELP ME
3426.F2812.txt.....,
7888.DSP281x_Headers_nonBIOS.txt
5224.F2812_EzDSP_RAM_lnk.txt
Many Thanks,
Thiyagarajan.S
Thyagarajan,
if you want to run the code from flash, you need to pick the linker command file which puts the text sections in flash.
that would be 3426.F2812.txt i nthe attachments you mentioned. I was talking to Manoj about the things you are trying ot do. Below is what we suggest.
1.> Build your application with the above linker command file,
2.> use CCS to program the flash, disconnect CCS after programming is done, power off the deviec and power on and boot the device to flash
3.> if that is working then you know your project is linked properly and device will execute your project correctly from flash.
4.> Now connect CCS back and erase flash.
5.> now use your SDFLash or other SCI program utility as Manoj suggested in your other post...I'm not sure if the utility can take COFF/OUT file as input or a hex file. Follow the instructions as mentioned in the respective manual
6.> set the device in SCI boot mode and erase/program your device usign the serial utility.
Best Regards
Santosh
santosh,
Thank for keenly watching my post and work, good job.
As per the above procedure i done, up to step 4 it was fine working , (successfully programed, checked output and erased the flash).
when coming to step5 ,
first i changed to sci boot mode by jumper , and then i removed my xds100usb v1 emulator, then i connected the 9-9 serial cable from pc to kit.
and then i started the two things,
First one : i used C2Prog , it was connected, erased but programming failed. (for this i load ex.hex )
Second one: i used SDFlash utility , it's too connected, erased but programming failed.(for this i load ex.out )
Note: using XDS100 USB v1 emulator is workinh in flash.
Finally i attached my .out file and . hex file , if possible please verify and tell whether code may have problem (BUT THE SAME .OUT CODE WORKING FINE by using CCS3.3 AND XDS100 USB EMULATOR , ONLY THE THING IS NOT ABLE TO PROGRAM IN SCI BOOT MODE.,) AND IF possible you any working .out file in SCI boot mode that i try and tell to yours......
please help me in continuous...........
sorry i cant able to attach .out file and .hex file , hence i changed the extension .
5_EX.txt = .out file
EX.txt = .hex file
just change the extension and verify my file and tell,,,,
6471.5_EX.txt
1616.EX.txt
Waiting for your replies,
Thiyagarajan . S
which version of c2000prog you ar eusing. Are you choosing the corrct programming options?
1. which version of c2000prog you ar eusing. Are you choosing the corrct programming options?
Answer: C2Prog_v1.5d-b173.zip This file content i downloaded from CodeSkin.com
2. Also give details on which target you are selecting and what freq. you are selecting?
Answer: am setting the followings in C2Prog software., TARGET : f2812 OPTIONS : 25MhzCODE SECURITY :KEY1.,KEY2........KEY8.... : nothing i changed in this FLASH SECTORS TO BE ERASED : i Tick the both smart sector selection & Append check sumPORT: select serialnote: in configure ports i set the following ;
serial port : com8
Thyagarajan,can you check if you are specifying the correct clock frequency? are you using 25MHz external Oscillator on your board?Also check with codeskin about the error, that looks like a valid flash address and it should pass, especially because you are able to load same application on flash on the same device using CCS successfully.Best RegardsSantosh
1. yes am using external oscillator 25Mhz only.
2. i seeked help with code skin help support too, they replied only for few questions , then they stopped replying me , i conveyed following with them , This is for your reference...
later they didnt reply to me ..,
Many Thanks ,
Thyagarajan,Good, one more variable knocked down, looks like we will have to do this the hardway. I will have to find a F2812 device to try it out myself, it will take some time. Meanwhile do you have any other C28x device with you or another F2812 device with you, that you can try to flush out any errors that you might be doing while setting up C2000 Prog? If you don't have one -can you try relinking your code to another flash sector by editing your linker command file?Also send me your project's COFF file, Map file and linker command file? Best RegardsSantosh
Great Thank to watching & replying my post.,
1. ya, i changed my linker file to redirect the sector ,
for ex:
.text : > FLASHA PAGE = 0
.text : > FLASHC PAGE = 0
.text : > FLASHD PAGE = 0
what ever the sector i changed , the same error occuring...
2. i changed the processor twice and checked & also , i changed the Crystal too, i tried in 30Mhz also, but the result is same error.
3. ok Santosh, Finally i attach my coff,map file and linker command file and also my source code for your reference. kindly check and tell . am waiting for your reply.
8308.5_EX.out.txt
1031.5_EX.c
santosh , download these files and edit the extension, only .txt file can able to attach hence i changed....
4466.5_EX.map.txt
8611.linker.txt
1.> I should have asked this long time back. are you able to successfully use C2000Prog with any of the device (for example a 28335 or 28035 etc)?
2.> going back to your device...can you change the linker command file you use as shown in below? - just link ramfuncs to FLASHA instread of FLASHD- temporarily to see if you are going to see same error.ramfuncs : LOAD = FLASHA, RUN = RAML0, LOAD_START(_RamfuncsLoadStart), LOAD_END(_RamfuncsLoadEnd), RUN_START(_RamfuncsRunStart), PAGE = 0
3.> ok, and regarding below, irrespective of the device and irrespective of where you link your text section do you see the same error at the same address on all these devices and configs?
ERROR
Programming... failed (write error: 31 @ 3ec460)!
Thiyagarajan . Si changed the processor twice and checked & also , i changed the Crystal too, i tried in 30Mhz also, but the result is same error.
4.> I know you mentioned you used SDFLASH - do you see same error when you use SDFLASH too?
5.> can you send me the command you use to generate the hex file from COFF file. The command you use when yo utried SDFLASH and also C2000PROG.