Christina Quast
c63da3f6d5
Makefile: Check for already opened ttyUSBx
...
If two ttyUSBx interfaces are read from by ts at the same time,
some letters arrive at one terminal and others in the second one.
Therefore only one terminal should be open at all times.
2015-04-13 22:09:50 +02:00
Christina Quast
de68867402
main.c: Reset board if USB not configured
2015-04-12 15:20:57 +02:00
Christina Quast
fd069dce73
iso7816_4.c: Increased max interations
2015-04-12 13:32:12 +02:00
Christina Quast
b595e7cb53
Merge branch 'new_iso_init' (sniffer not working)
...
Conflicts:
firmware/src_simtrace/phone.c
firmware/src_simtrace/simtrace.h
2015-04-12 13:31:01 +02:00
Christina Quast
2b8a18bf3a
Sniffer with ringbuf, works SOMETIMES
...
* Sniffer uses phone endpoints for communication and the ringbuffer
routines the phone communication uses
* Most times the Usart1 interrupt is not triggered, and therefore
no values are recorded
2015-04-12 09:31:36 +02:00
Christina Quast
5c6a299c71
phone.c: Sniffer bus config make switch
2015-04-11 20:03:14 +02:00
Christina Quast
3a47a4f10e
mitm.py: Decreased timeout
2015-04-11 18:16:14 +02:00
Christina Quast
611bea8b4b
tc_etu: Corrected compiler warning
2015-04-11 18:15:51 +02:00
Christina Quast
4db82e092f
ringbuffer implementation
2015-04-11 18:15:27 +02:00
Christina Quast
94ddb91e33
mitm.py: New smartcard ATR, expanded pattern match
2015-04-11 12:29:41 +02:00
Christina Quast
2ee3ec73f4
tc_etu.c: Fixed PIN initialisation compiler waring
2015-04-11 12:27:46 +02:00
Christina Quast
542f9183bb
basic ringbuffer implementation
2015-04-11 09:31:15 +02:00
Christina Quast
87ddfa8c23
phone.c: Bug fix: USB err format string interchanged
2015-04-11 08:44:40 +02:00
Christina Quast
a0ca2d34ec
cciddriver.c: Remove ccid write printout
2015-04-11 08:43:31 +02:00
Christina Quast
f2e53f0553
array to hex function, reduced usb timeout
2015-04-11 08:42:38 +02:00
Christina Quast
e24b9ace89
ISO7816_Init: Initialized with USART
...
* ISO7816_Init: Takes Usart_info and CLK_SLAVE/CLK_MASTER as param
* ISO7816_SendChar, ISO7816_GetChar: Usart_info is passed
* ISO7816_Set_Reset_Pin function for CCID part
* iso7816_4.c: BOARD_ISO7816_BASE_USART replaced by USART_SIM
* Redundant _ISO7816_Init, _ISO7816_SendChar, _ISO7816_GetChar
functions removed
* All simtrace modes use iso7816_4.c functions instead of redefined
_ISO7816_xxx functions
2015-04-10 17:44:49 +02:00
Christina Quast
3eab56e079
ISO7816_Init with more parameters, slave/master clock
2015-04-10 15:38:49 +02:00
Christina Quast
95d6616ba1
Split init into configure and init
...
* Implemented configure, init, exit functions:
When a configuration is changed, interrupts for reset pins
should be disabled
* Moved variables shared between code files to simtrace.h
2015-04-09 22:38:47 +02:00
Christina Quast
abcf3038d2
gitignore: Ignore ctags file
2015-04-09 19:47:45 +02:00
Christina Quast
bf464ae566
Moved ccid related files to bord related folders
2015-04-09 19:47:45 +02:00
Christina Quast
6b02775638
phone.c: Check return values of USB_Write
2015-04-09 19:47:27 +02:00
Christina Quast
e2dddd5885
Renamed simtrace_src to src_simtrace
2015-04-09 17:40:48 +02:00
Christina Quast
590c221893
Remove redundant ccid files in atmel lib
2015-04-09 17:06:16 +02:00
Christina Quast
aab3d7c82b
phone.c: Check status val in Callback func
2015-04-09 17:02:17 +02:00
Christina Quast
6038eebaf7
cciddriver.h: Include USBD.h, remove function def
2015-04-09 16:55:48 +02:00
Christina Quast
b878df92f4
cciddriver.c: Check USB status in Callback
2015-04-09 16:54:36 +02:00
Christina Quast
7dab6abf47
cciddriver.c: Replace USBD_Write with CCID_Write
2015-04-09 16:53:32 +02:00
Christina Quast
362a4da94a
simtrace.py: Sleep a sec after changing the config
2015-04-09 13:39:38 +02:00
Christina Quast
20a6814c46
cciddriver.c: Fixed slot status bugs
...
The atmel lib takes the wrong values to signalize the current
slot status to the PC.
2015-04-09 13:36:28 +02:00
Christina Quast
7f634868dd
cciddriver.c: Off by one error when setting config
2015-04-09 13:34:53 +02:00
Christina Quast
c870b52233
iso7816: Hold RST line low for longer time period
...
Based on the sniff with a logic analyzer the time when the RST line
is holded low by simtrace is too short.
A better timeout value should be searched for later anyways.
2015-04-09 13:31:58 +02:00
Christina Quast
2831b8c1a0
cciddrv: Remove MIN macro
2015-04-09 09:02:50 +02:00
Christina Quast
55cd8734be
Makefile: 'make log' for debug dumps over serial
2015-04-08 00:12:17 +02:00
Christina Quast
7b6f7b084a
phone.c: Rename state NONE to WAIT_FOR_RST
2015-04-07 21:17:41 +02:00
Christina Quast
90393b3392
phone.c: Replace defines with enum
2015-04-07 21:15:12 +02:00
Christina Quast
4396fee97e
Rename simtrace/ to simtrace_src
2015-04-07 21:12:53 +02:00
Christina Quast
86bf2c3f4d
atmellib: Remove pngs in usb/
2015-04-07 21:03:12 +02:00
Christina Quast
0cc6142506
Remove USBLib_Trace.h
2015-04-07 20:53:45 +02:00
Christina Quast
b6f77d390c
Makefile: Compile silently and show code files used
2015-04-07 20:51:44 +02:00
Christina Quast
29c99b97af
Makefile: Enabled iprintf, removed comment
2015-04-07 20:13:44 +02:00
Christina Quast
85951cef7f
Deleted unused examples folder
2015-04-07 20:06:51 +02:00
Christina Quast
b0bbb1b52e
Removed sym links, replaced them with actual folders
2015-04-07 20:04:19 +02:00
Christina Quast
fbcd8a1bfd
simtrace: Rename main
2015-04-07 19:43:18 +02:00
Christina Quast
2279b75c26
gitignore: stop ignoring main.c
2015-04-07 19:38:44 +02:00
Christina Quast
d0339af87b
Removed unused code and header files from atmel lib
...
Also, remove includes of unused header files in chip.h
2015-04-07 19:30:47 +02:00
Christina Quast
d3f1638f1b
Deleted folder minimal
2015-04-07 18:24:36 +02:00
Christina Quast
5a67c0fef3
Renamed main folder to firmware
2015-04-07 18:24:06 +02:00
Christina Quast
f5cd7efede
Remove mains/ and sub-files
2015-04-07 18:21:14 +02:00
Christina Quast
58c1ae31ee
Makefile: local openocd config folder
2015-04-07 18:19:13 +02:00
Christina Quast
767fdeb0ca
iso7816.c:Solve compiler sign compare warn with pragma
2015-04-07 13:50:23 +02:00