| First,IadmitthatIamabeginnerofDSP. Twoweeksago,IsearchedthewebfranticallyforaTIDM642PCIloader,thesourcecode,ofcourse. GuesswhatIfound?nothing...allIgotisabunchofthirdpartycompanyaskingformoney.That'sreasonable,becausetheyhavetosurvive. Well,fromanotherpointofview,sincetheTIDM642chipissowidelyused,IguesslotsofpeoplemusthavebeenloadingtheDSPcodeviaPCI,butnobodywanttosharethecode?WHEREISTHESHARINGSPIRIT!!?? Now,afterscreamingandkickingwiththeTIdocumentsandthecoffformatforaweek,Ipresentyou(...echotheLineKingmusic...)thesourcecodeoftheDM642EVMboardPCIloader.Yes,thesourcecode...andyouarefreetomigrateittootherOSandPCIcardwithTIDM642chiponit. Asyoualreadyknown,si_pci64isonlyawindowsdriver,anditcostyou$200togetthesourcecode.Ifyouturntotheotherthirdpartycompanysuchas ValleyTech,itwillcostyoucoupleofthousandsdollartogetthe"supportlibrary". Mycodeisforthevxworks,tomigrateittootherOS,youneedtoupdatethePCIscanningfunction(iDspPciInitfunction).Ofcourse,ifyourDSPcardhasdifferentaddressforIRAMandSDRAM,youneedtoupdatetherelativedefinitionaswell.Thecodeisnotperfect,but,it'sworkingcodeandgetyousomethingtostartwithratherthanstumblinginthecompletedarknessasabeginner. WhyIpostthiscode? 1)sharewiththethosehardworking,underpaid,miserableprogrammersjustlikeme,tomakethelifealittlebitbrighter. 2)toscrewupthosethirdpartycompany'sfun,theyareaskingtoomuchforashortpieceofcode. Attention,thecodeisroughlycommented,inahurry Ifyoucan'tdownloadattachedzipfile,pleaseemailme:taochen@mailcity.comIwillsendyouthecodeASAP. Andyouarewelcometosendmea"Thankyou,yousavedmyass!"email.AndDON'Tsendmeanythingifyouhateme. Appendix,generalPCIloadingprocedures: 1)ScanPCIdevice,findtheEVMcardandit'sbaseaddresses.(how?checkspru581) 2)WarmresettheDSP 3)InitializedtheEMIF(how?checkthespru266) 4)CheckthebootmodeofEVMcard.CardhastobeinPCIbootmode.(how?checkevm_dm642a.pdf,orthedatasheetofDM642chip) 5)Load.outcodetoDSPmemory 6)SetDSPINTbitofcontrolregistertogetitrunning. |