Tuesday, February 15, 2011

Feb. 15,16 OpenOCD

OpenOCD bat file details
 Created dropbox dir with openocd bat files as backup
 Goal: get openocd working on my laptop
 Status: 
   Trying to change the lab PC openocd bat files so openocd can flash from a fixed location


Questions:
  • Can the arm sectors be unlocked from OpenOCD or just via SAM-BA?
    • yes
      • flash protect 0 0 15 off
  • Can .cfg files on Lab PC be used on Laptop
    • So far - no, but lab pc can be in local directory
    • lab pc is openOCD 3 and Laptop openOCD 4

Bat files examined in detail:
openocd - FLASH.bat
.cfg files will be copied here as backup, but real files used.

Not currently used:
arm-elf-objcopy
-->Copies a binary file, possibly transforming it in the process
Option
--gap-fill               Fill gaps between sections with

Files used:
D:\AA_local\eclipseWork\forte_lms_neu\bin\lms\src\forte 
-- created by ???
D:\AA_local\eclipseWork\forte_lms_neu\bin\lms\src\forte.bin
-- created from forte file

arm-elf-size D:\AA_local\eclipseWork\forte_lms_neu\bin\lms\src\forte
To see size of data downloaded to know if too big for LMS 

openocd.exe

Options:
-v display version
-f flash

C:\openocd\trunk3\src\openocd.exe -v

C:\openocd\trunk3\src\openocd.exe -f C:\openocd\trunk3\testing\examples\SAM7S256Test\prj\SAM7S256_flash.cfg -d2

.cfg files 
Here are the real instructions to open 

No comments:

Post a Comment