[<<][simtrace][>>][..]
Thu Jul 11 10:54:23 EDT 2013

Extending SIMtrace card reader app

Roadmap:

- Load new firmware onto SAM7-EK

- Hook up sim card + explore ISO7816 init code.

- Patch code to drive ISO7816 phone side

- Hook up phone




Load address:
See linker files *.lds under:
at91lib/boards

Which board is actually used in the default build? It has defs for:

simtrace
sam7-p
at91sam7s-ek

Looks like these are mostly the same.  Probably ok to use simtrace.

These are the respective defs in the makefile:

CHIP  = at91sam7s256
BOARD = simtrace


For me, this file needs edit:
at91lib/boards/sam7-p/at91sam7s128/flash_dfu.lds


Fixing LMA
BEFORE:

[master] tom@zoo:~/at91work/usb-device-ccid-project$ objdump -h bin/usb-device-ccid-project-simtrace-at91sam7s256-flash_dfu.elf 

bin/usb-device-ccid-project-simtrace-at91sam7s256-flash_dfu.elf:     file format elf32-little

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .fixed        00003ecc  00104000  00000000  00004000  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .relocate     00000450  00200028  00003ecc  00008028  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          000002fc  00200478  0000431c  00008478  2**2
                  ALLOC
  3 .ARM.attributes 0000002d  00000000  00000000  00008478  2**0
                  CONTENTS, READONLY
  4 .comment      0000003a  00000000  00000000  000084a5  2**0
                  CONTENTS, READONLY
  5 .debug_line   00002b12  00000000  00000000  000084df  2**0
                  CONTENTS, READONLY, DEBUGGING
  6 .debug_info   000093c4  00000000  00000000  0000aff1  2**0
                  CONTENTS, READONLY, DEBUGGING
  7 .debug_abbrev 00002496  00000000  00000000  000143b5  2**0
                  CONTENTS, READONLY, DEBUGGING
  8 .debug_aranges 00000870  00000000  00000000  00016850  2**3
                  CONTENTS, READONLY, DEBUGGING
  9 .debug_loc    00003381  00000000  00000000  000170c0  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_ranges 00000868  00000000  00000000  0001a441  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_str    00002ad2  00000000  00000000  0001aca9  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_frame  00001060  00000000  00000000  0001d77c  2**2
                  CONTENTS, READONLY, DEBUGGING


AFTER:
[master] tom@zoo:~/at91work/usb-device-ccid-project$ objdump -h bin/usb-device-ccid-project-simtrace-at91sam7s256-flash_dfu.elf 

bin/usb-device-ccid-project-simtrace-at91sam7s256-flash_dfu.elf:     file format elf32-little

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .fixed        00003ecc  00104000  00104000  00004000  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .relocate     00000450  00200028  00107ecc  00008028  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          000002fc  00200478  0010831c  00008478  2**2
                  ALLOC
  3 .ARM.attributes 0000002d  00000000  00000000  00008478  2**0
                  CONTENTS, READONLY
  4 .comment      0000003a  00000000  00000000  000084a5  2**0
                  CONTENTS, READONLY
  5 .debug_line   00002b12  00000000  00000000  000084df  2**0
                  CONTENTS, READONLY, DEBUGGING
  6 .debug_info   000093a4  00000000  00000000  0000aff1  2**0
                  CONTENTS, READONLY, DEBUGGING
  7 .debug_abbrev 00002496  00000000  00000000  00014395  2**0
                  CONTENTS, READONLY, DEBUGGING
  8 .debug_aranges 00000870  00000000  00000000  00016830  2**3
                  CONTENTS, READONLY, DEBUGGING
  9 .debug_loc    00003381  00000000  00000000  000170a0  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_ranges 00000868  00000000  00000000  0001a421  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_str    00002ab2  00000000  00000000  0001ac89  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_frame  00001060  00000000  00000000  0001d73c  2**2
                  CONTENTS, READONLY, DEBUGGING




[Reply][About]
[<<][simtrace][>>][..]