aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/simtrace/main_simtrace.c
AgeCommit message (Collapse)AuthorFilesLines
2014-11-11improve handling of spurious IRQsMin Xu1-6/+21
rather than printing directly from the interrupt handler, just increment the number and print it from the main loop function instead.
2014-11-11Retrieve + print previous PC from stack to debug wdog/spurious IRQMin Xu1-0/+16
Retrive previous PC from the stack before entering specific interrupt handler routines. Allow user to trace where interrupt occured: e.g. WatchDog and Spurious interrupt Prior to this change, spurious interrupt would occur so much (observed via gdb/remote debug) so it appears that the board stalled. Once a custom spurious interrupt installed, the code continues after the interrupt instead of re-entering the interrupt.
2014-11-11iso_uart: Print more errors, not just overrunsMin Xu1-1/+1
2014-11-11Ensure to transmit current req_ctx on RESET/VCC eventsMin Xu1-0/+3
When any of the following events occur: * VCC_PHONE off * nRST * RST we tranmsit the current req_ctx, if there is data pending. This ensures that for any successive data, the ATR flag in the next req_ctx containing the data, not in the previous req_ctx. It also ensures that the ATR is aligned at 0 offset in the new req_ctx, which is an assumption the host software makes but the previous code didn't ensure. Furthermore, we introduce a periodic flushing of any pending but incomplete req_ctx.
2014-11-11simtrace: Add heartbeat message to debug consoleMin Xu1-0/+9
2012-03-23simtrace: introduce statisticsv0.5Harald Welte1-1/+24
the statistics count various events like overruns, parity errors, missing rctx and can dump those stats via USB as well as on the serial console.
2012-03-22simtrace: implement SIM power switching APIHarald Welte1-16/+46
there is now a high-level command by which we can swithc the VCC supply of the SIM cards. For some reason, the _PASS variant (passing through the voltage from the phone) doesn't seem to work reliably. It might be that we are draining reverse current throught the LDO once we supply SIM power that way.
2011-12-18Make sure we don't forward power _and_ supply SIM power at the same timeKevin Redon1-0/+10
The FPF2005 has no reverse voltage blocker, this is why the 3.3V from the LDO flows back into VCC_PHONE. It even damages the chip (so says the datasheet) I corrected the double power source problem by disabling the LDO (see patch), but still 1.8V does not work and 3.0-3.3V is used. I have to look for other reasons.
2011-06-30simtrace: initialize sniffer mode right after start-upHarald Welte1-18/+22
2011-06-21simtrace: switch VCC_SIM into output mode, as we use it to supply VccHarald Welte1-2/+8
This is just a temp rework in the 1st generation prototype, as the bus switch has too high resistance for passing throuhg Vcc from the phone to the SIM.
2011-06-17simtrace: introduce mode sniffer / mitm switchingHarald Welte1-2/+46
2011-06-16simtrace: add support for the analog bus switchHarald Welte1-1/+10
2011-01-31typo: Fix typo, transform reqyests to requests.Holger Hans Peter Freyther1-1/+1
2010-11-18simtrace: add TC based waiting time counter, signal ATR / expiry via USBHarald Welte1-3/+7
2010-11-14Initial version of a SAM7 USART based ISO7816-3 T=0 snifferHarald Welte1-0/+98