this allows commands like
sim-status 0 # read the status
sim-voltage 0 5 # set voltage to 5V
sim-clkdiv 0 2 # set clock-divider to 2 (10 MHz)
sim-reset 0 0 # disable reset
sim-power 0 1 # enable power
Change-Id: Id6131be60d37cba769c79952fa44f3ec6c976a38
This is a very simplistic command line interface parser which
various parts of the code can use to register textual commands
on the debug UART.
Change-Id: I2d289228fb97ecde5602e9756f3d7c51fa65a3b7
this ASFv4 USB library change fixes USB transfer.
two transfer-size issues existed:
- on multi-packet transfer if the last packet was less than the
USB transfer packet size, the packet would be received but not
acknowledged
- during normal transfer the packet size of a previous packet set
the size of the current packet, ignoring the actual transfer size
Change-Id: I4209072ee808f0e246bcd5e86917dcf1d213c26b
It has been observed that the 20 MHz clock signal doesn't even remotely
resemble a square shape unless DRVSTR=1 is set using this patch.
Change-Id: I1366e13442eda829756aa4121be81eb15135c73e
This adds an I2C bit-banging layer, defines the four busses on the
sysmoOCTSIM and adds some high-level functions to control the NCN8025
for each SIM slot.
Change-Id: Ic5287cf80d2be2070c504e9d40f7c6fc0d37d8b9
without this relocation the DFU bootloader can jump to the
application but following executed code would not be the one from
the application.
Change-Id: Ieeefcf80918fd10e48debab6ff08505f6588811c
configure SERCOM 0 to 6 peripherals to communicate using the
ISO7816 T=0 protocol.
SERCOM7 should be for the 8th SIM card, but for now it is used as
UART debug output.
Auto-detection between SERCOM for the 8th SIM and debug UART will
be done later.
Change-Id: I3f1411ec5bc2ed7dfa714550d041f52be665132a
use GCLK5 to output 20 MHz clock on PA11/GCLK_IO[5] for SIM cards
clock.
this can be further divided by the NCN8025 before reaching the SIM.
Change-Id: I2c0d6a31ec63a87e04ef4e3afbedce3a221324cc
the SAM E54 Xplained Pro development board uses a SAM E54P20N
micro-controller.
the sysmocom sysmoOCTSIM prototype uses a SAM E54N19A
micro-controller.
the system LED and UART debug GPIO are different, else the code
is the same.
the Atmel START definitions have been updated accordingly.
Change-Id: Ifd15f6759c51b42a8d11b09f9f495d7e7a5b6afc
let main run the main loop instead of the CDC ACM example.
also rename the CDC ACM example functions.
Change-Id: I44b15079672b4058de1fa08365541317d54958dc
also remove unused armcc.
only the GCC cross-compiler is used.
the ARMCC Makefile would not be maintained.
Change-Id: Ib6ec525885943afba9b24df88a5bee8009df95b5
currently only the SERCOM peripheral driver is added an configured,
but it is not being used.
UART debug will be done through the EDBG COM port, on PB24/PB25 of
SAM E54 Xplained Pro board
Change-Id: Id7af37ce1dd2d0a356e019c96bf6438ce459411b
DPLL1 can take directly XOSC1 as input and divide it to 2 MHz.
thus the intermediate GCLK11 is not needed.
we now also completely de-configure GCLK11
this configuration is not supported by Atmel START since it does
not know about the division and thinks the input frequency
exceeds the maximum
GCLK2 is also disabled for now because it is not used
Change-Id: Icee7f5a13019c47cebc23376cabb18cb31178ece
use GCLK11 to bring external crystal oscillator XOSC1 from 12 MHz
to 2MHz
use DPLL1 to multiply 2 MHz to 100 MHz.
the division is first needed because the DPLL0 maximum input
frequency is 3.2 MHz
100 MHz is the maximum input frequency for the SERCOM peripherals
Change-Id: I0482c39cc0db999904c585d21738dbce57ca3b55
DPLL0 can take directly XOSC1 as input and divide it to 2 MHz.
thus the intermediate GCLK11 is not needed.
this configuration is not supported by Atmel START since it does
not know about the division and thinks the input frequency
exceeds the maximum
Change-Id: I121ad850cf118b641fe522b513ffd7e00b30b710
use GCLK11 to bring external crystal oscillator XOSC1 from 12 MHz
to 2MHz
use DPLL0 to multiply 2 MHz to 120 MHz.
the division is first needed because the DPLL0 maximum input
frequency is 3.2 MHz
Change-Id: I642e724ec56a376addf21cc58ecd2ef1b40bd116
this is the Atmel START USB CDC Echo example project for the
SAM E54 Xplained Pro board using an Atmel ATSAME54P20A
microcontroller.
Atmel START information:
- Version: 1.4.1810 (Dec 18, 2018, 5:52 AM GMT+1)
- Server: 1.4.93
- Content version: 1.0.1340
This will serve as basis for the sysmoOCTSIM project
A jenkins contrib script has also been added to the
osmo-ccid-firmware project to build the sysmoOCTSIM firmware
Change-Id: I356de75e7b730d63fb819248e71d36f785932199
The CCID core here shall be rather generic, and combined with the
hardware specific bits for (initially) the sysmoOCTSIM target.
Change-Id: I2789f7fcdb1b24c6ef47c7f37f4889f90acfd698