ldscripts/mulle.ld: Remove unnecessary location assignment.

This fixes a problem when using binutils-2.22:
invalid assignment to location counter
when linking.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
minimal/leds: add missing closing comment brace

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
openocd/mulle.cfg: Add second flash bank on K60.

This splits the flash area in the openocd configuration into two banks.
The flash is now correctly probed as 256KB on MK60DN256 parts, instead
of 128KB.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ftdi/mulle_programmer.conf: Example config for ftdi_eeprom

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ftdi/write_serial_number.sh: A bash script for easier flashing of Programmer boards.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ftdi/mulle_programmer.conf.template: Disable debug dump of eeprom by default.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ftdi/write_serial_number.sh: Script robustness

Added set -e and using paths in the template filename for better
robustness.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
openocd/mulle.cfg: Change expected USB device description.

The programmer board has a custom USB device description string in
its EEPROM after writing the serial number.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
wiki-images: VUSB VCHR jumper image

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ftdi/write_serial_number.sh: Add executable permission.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
toolchain: Add gcc patch for thumb2 targets

This adds proper thumb2 multilib support. The patch is taken from
https://github.com/prattmic/arm-cortex-m4-hardfloat-toolchain/blob/master/patches/gcc-multilib.patch

You need to use this or a similar multilib setup in order to get softfloat
working properly with newlib. The default gcc multilib setup for arm-none-eabi
will generate ARM moode instructions in the softfloat functions instead of Thumb2 instructions.

See also: https://github.com/prattmic/arm-cortex-m4-hardfloat-toolchain

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ldscripts: Move mulle.ld into separate dir.

Will add split version of the ldscript as well.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ldscripts: Update mulle.ld with C++ etc.

This version is based on the modular version in the Contiki repo [1].
This ldscript should fit C++ code as well as C code, although it is
still untested.

The startcode has been updated to match the reversed _stack_start and
_stack_end symbols.

See also:
https://github.com/eistec/contiki/tree/mulle-2-7/cpu/arm/k60/ldscripts

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ldscripts: Added modular version from Contiki.

This is taken straight from our Contiki port. This is a modularised
version of the ldscript, for easier maintainability of multiple
processor variations. Currently the MK60DN256VLL10 and the
MK60DN512VLL10 are supported. The same linker scripts support both 1.x
and 2.x version silicon (MK60DN256ZVLL10 vs. MK60DN256VLL10, no Z)

See also:
https://github.com/eistec/contiki/tree/mulle-2-7/cpu/arm/k60/ldscripts

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ldscripts: Add README.md

Added a README explaining which file to use and why it is needed.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
ldscripts: Add more instructions to README.md.

Added example LDFLAGS for using both monolithic and modular ldscripts.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>