Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216565

Forum Post: TMS320F28062: CSM password unlock using bootloader downloaded via Parallel IO

$
0
0
Part Number: TMS320F28062 Hello e2e, Target : TMS320F28062 Boot mode : Parallel IO IDE : Code Composer Studio v6.1.2.00015 & v8.3.1.00004 Code Runs in : RAM Memory Problem: I am having an issue unlocking a device with a known CSM password. I have a bootloader (downloaded to RAM via Parallel IO boot mode) that can be used by our 3rd party production flash programmer to erase, program, & read/verify the Flash memory (003E8000h - 003F7FFFh). I have programmed locations 003F7F80h - 003F7FF5h with all 00's as indicated by SPRUH18G. I programmed a simple password into the CSM range: FEFFh @ 003F7FF8h FFFFh @ 003F7FF9h FFFFh @ 003F7FFAh FFFFh @ 003F7FFBh FFFFh @ 003F7FFCh FFFFh @ 003F7FFDh FFFFh @ 003F7FFEh FFFFh @ 003F7FFFh I power on the TMS320F28062 with the boot select pins (GPIO37, GPIO34, TRST) all pulled to ground so I start in Parallel IO boot mode. I then download the bootcode generated from CCS, and in normal operations it works fine. However, once I've programmed the CSM password I will pass the parallel downloading sequence but I will seemingly not get any response from the device. In my CCS project I have attempted to send the device my password via the GPIO I have initiated, but once again I do not get any handshake from pins I have initialized. Alternatively, I have just modified the CsmUnlock function to use the above mentioned password hardcoded into the function, but I still get no response from the handshake I am trying to use. I have been reading through the forum and user's guide, but cannot get a clear picture of the process regarding executable code, running from the RAM, downloaded via parallel IO boot mode, unlocking the device using a known CSM password. I see mention of the wait mode, but if I am trying to download my code to RAM via parallel, at what point would I need to switch form wait to parallel or back again? Am I supposed to unlock the CSM using another method before downloading my bootloader via parallel IO? Does it matter at what point in main() should I theoretically call the CsmUnlock function? Such as before or after InitSysCtrl or initializing GPIO? Thanks for the assistance! --------------- Best Regards, Fernando

Viewing all articles
Browse latest Browse all 216565

Trending Articles