]> rtime.felk.cvut.cz Git - sysless.git/log
sysless.git
11 years agoThe h8mirosot board ldscripts modified to allow building with ELF-based compiler
Michal Sojka [Tue, 3 Feb 2009 09:05:29 +0000 (10:05 +0100)]
The h8mirosot board ldscripts modified to allow building with ELF-based compiler

This commit is analogous to 8c8d5a1eb8d2e292dbc3e0a94cffc6781e74dbfc,
which did the same changes for h8eurobot board.

11 years agolpceurobot board builds without errors
Michal Sojka [Sun, 30 Dec 2012 22:30:13 +0000 (23:30 +0100)]
lpceurobot board builds without errors

Not checked with the hardware.

11 years agoMerge with git://ulan.git.sourceforge.net/gitroot/ulan/sysless
Michal Sojka [Sat, 29 Dec 2012 23:12:01 +0000 (00:12 +0100)]
Merge with git://ulan.git.sourceforge.net/gitroot/ulan/sysless

The goal is to synchronize with Pavel Pisa's sysless from uLAN project.
Their sysless is roughly based on our sysless but evolves more rapidly
(and does not contain so much crap :-). With this commit I want to get
their updates of the common code base to this repository.

This is only an initial attempt with all conflict resolved "somehow".
Compilation errors will be resolved in follow up commits.

Conflicts:
arch/Makefile.omk
arch/arm/Makefile.omk
arch/arm/generic/Makefile.omk
arch/arm/generic/defines/Makefile.omk
arch/arm/generic/defines/cpu_def.h
arch/arm/generic/libs/misc/Makefile.omk
arch/arm/generic/libs/misc/system_stub.h
arch/arm/mach-at91sam7/Makefile.omk
arch/arm/mach-lpc13xx/Makefile
arch/arm/mach-lpc13xx/Makefile.omk
arch/arm/mach-lpc13xx/defines/Makefile.omk
arch/arm/mach-lpc13xx/defines/core_cm3.h
arch/arm/mach-lpc13xx/libs/Makefile
arch/arm/mach-lpc13xx/libs/Makefile.omk
arch/arm/mach-lpc17xx/defines/Makefile.omk
arch/arm/mach-lpc17xx/libs/hal/Makefile.omk
arch/arm/mach-lpc17xx/libs/hal/hal.c
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h
arch/arm/mach-lpc17xx/libs/hal/startup.c
arch/arm/mach-lpc21xx/Makefile.omk
arch/arm/mach-lpc21xx/defines/LPC210x.h
arch/arm/mach-lpc21xx/defines/LPC214x.h
arch/arm/mach-lpc21xx/defines/LPC21xx.h
arch/arm/mach-lpc21xx/defines/LPC22xx.h
arch/arm/mach-lpc21xx/defines/armVIC.h
arch/arm/mach-lpc21xx/defines/lpcADC.h
arch/arm/mach-lpc21xx/defines/lpcEMC.h
arch/arm/mach-lpc21xx/defines/lpcGPIO.h
arch/arm/mach-lpc21xx/defines/lpcI2C.h
arch/arm/mach-lpc21xx/defines/lpcPIN.h
arch/arm/mach-lpc21xx/defines/lpcRTC.h
arch/arm/mach-lpc21xx/defines/lpcSCB.h
arch/arm/mach-lpc21xx/defines/lpcSPI.h
arch/arm/mach-lpc21xx/defines/lpcTMR.h
arch/arm/mach-lpc21xx/defines/lpcUART.h
arch/arm/mach-lpc21xx/defines/lpcUSB.h
arch/arm/mach-lpc21xx/defines/lpcVIC.h
arch/arm/mach-lpc21xx/defines/lpcWD.h
arch/arm/mach-lpc21xx/libs/Makefile.omk
arch/arm/mach-lpc23xx/Makefile.omk
arch/arm/mach-lpc23xx/defines/Makefile
arch/arm/mach-lpc23xx/defines/lpcI2C.h
arch/arm/mach-lpc23xx/libs/Makefile.omk
arch/generic/Makefile.omk
arch/generic/defines/Makefile.omk
arch/generic/defines/endian.h
arch/generic/defines/irq_generic.h
arch/generic/defines/keyval_id_his.h
arch/generic/defines/lt_timer.h
arch/generic/defines/lt_timer_types.h
arch/h8300/generic/Makefile.omk
arch/h8300/generic/bloader/bloader.c
arch/h8300/generic/drivers/bit_iic.c
arch/h8300/generic/drivers/h8_iic.c
arch/h8300/generic/drivers/periph/iic_ifc.h
arch/h8300/generic/drivers/periph/sci_rs232.h
arch/h8300/generic/drivers/sci_rs232.c
arch/h8300/generic/libs/boot/boot.c
arch/h8300/generic/libs/boot/boot_fn.c
arch/h8300/generic/libs/boot/boot_fn.h
arch/h8300/generic/libs/boot/loader.c
arch/h8300/generic/libs/misc/excptvec.c
arch/h8300/generic/libs/misc/system_stub.c
arch/h8300/generic/tools/tohit/hiterm.c
arch/h8300/mach-2633/defines/h8s2633h.h
arch/h8300/mach-2633/drivers/periph/sci_regs.h
arch/h8300/mach-2638/defines/h8s2638h.h
arch/h8300/mach-2638/drivers/periph/sci_regs.h
board/Makefile.omk
board/arm/lpc17xx-common/defines/system_def-ulmi.h
board/arm/lpc17xx-common/libs/bspbase/bsp0hwinit.c
board/arm/lpc17xx-common/libs/bspbase/bspbase.h
board/arm/lpc17xx-common/libs/bspbase/uart.c
board/arm/lpc17xx-common/libs/bspbase/uart.h
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-app
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-boot
board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-cfg
board/h8300/edk2638/defines/system_def.h
board/h8300/edk2638/defines/system_def_edk2638.h
board/h8300/edk2638/libs/bspbase/bsp0common.c
board/h8300/edk2638/libs/bspbase/bsp0hwinit.c
board/h8300/h8canusb/defines/system_def.h
board/h8300/h8canusb/defines/system_def_h8canusb.h
board/h8300/h8canusb/libs/bspbase/bsp0common.c
board/h8300/h8canusb/libs/bspbase/bsp0hwinit.c
board/h8300/h8eurobot/config/config.h8eurobot
board/h8300/h8eurobot/defines/system_def.h
board/h8300/h8eurobot/defines/system_def_h8eurobot.h
board/h8300/h8eurobot/libs/bspbase/bsp0common.c
board/h8300/h8eurobot/libs/bspbase/bsp0hwinit.c
board/h8300/h8heli/defines/system_def.h
board/h8300/h8heli/libs/bspbase/bsp0common.c
board/h8300/h8heli/libs/bspbase/bsp0hwinit.c
board/h8300/h8heli/servodrv/mycan.c
board/h8300/h8heli/servodrv/mycan_old.c
board/h8300/h8heli/servodrv/servodrv.c
board/h8300/h8heli/servodrv/servoout.c
board/h8300/h8mirosot/defines/system_def.h
board/h8300/h8mirosot/defines/system_def_h8mirosot.h
board/h8300/h8mirosot/libs/bspbase/bsp0common.c
board/h8300/h8mirosot/libs/bspbase/bsp0hwinit.c
board/h8300/hi_cpu2/config.hi_cpu2
board/h8300/hi_cpu2/defines/system_def.h
board/h8300/hi_cpu2/defines/system_def_hi_cpu2.h
board/h8300/hi_cpu2/libs/bspbase/bsp0common.c
board/h8300/hi_cpu2/libs/bspbase/bsp0hwinit.c
board/h8300/hi_cpu2/libs/hi_cpu2.ld-bload
board/h8300/hi_cpu2/libs/hi_cpu2.ld-boot
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flash
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flashnoram
board/h8300/jt_usb1/defines/system_def.h
board/h8300/jt_usb1/defines/system_def_jt_usb1.h
board/h8300/jt_usb1/libs/bspbase/bsp0common.c
board/h8300/jt_usb1/libs/bspbase/bsp0hwinit.c
libs4c/cmdproc/Makefile.omk
libs4c/cmdproc/cmd_io.c
libs4c/cmdproc/cmd_io_line.c
libs4c/cmdproc/cmd_proc.c
libs4c/cmdproc/cmd_proc.h
libs4c/cmdproc/cmdio_std_file.c
libs4c/cmdproc/cmdio_std_line.c
libs4c/keyval/keyvalpb.h
libs4c/misc/Makefile.omk
libs4c/misc/utils.c
libs4c/misc/utils.h
libs4c/usb/base/usb.c
libs4c/usb/base/usb/usb.h
libs4c/usb/base/usb/usb_spec.h
libs4c/usb/base/usb/usbdebug.h
libs4c/usb/lpcusb/lpc.c
libs4c/usb/lpcusb/lpcusb.c
libs4c/usb/more/usb/usb_loader.h
libs4c/usb/pdiusb/pdiusb.c
libs4c/usb/pdiusb/usb/pdiusb.h

11 years agoRemove minibee app
Michal Sojka [Sat, 29 Dec 2012 22:15:42 +0000 (23:15 +0100)]
Remove minibee app

This application does not build after removal of ebb lib in the previous
commit.

11 years agoLPC17xx and LPC178x: updates to ensure compatibility with new NXP header files.
Pavel Pisa [Fri, 21 Dec 2012 20:23:11 +0000 (21:23 +0100)]
LPC17xx and LPC178x: updates to ensure compatibility with new NXP header files.

The most of the peripheral code can work with newer
NXP LPC178x headers as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC21xx: Unify lpc21isp calling for ul_usb1 based boards.
Pavel Pisa [Fri, 21 Dec 2012 18:04:08 +0000 (19:04 +0100)]
LPC21xx: Unify lpc21isp calling for ul_usb1 based boards.

The updated configurations still defaults to the old lpc21isp
version 1.39 with parameters order adapted for OMK build.

But new version can be used if

  make load-boot LPC21ISP_OLD_PARAM_ORDER=n

is used. Serial port defaults to /dev/ttyUSB0
but alternative can be selected by LPC_TTY=/dev/ttyS0
make variable.

Unconditional switch to the newer version is problematic
because lpc21isp 1.85 seems to not work reliable with
old LPC21xx targets when connected over FTDI.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: uLAN boot block configuration for the target.
Pavel Pisa [Thu, 20 Dec 2012 23:33:18 +0000 (00:33 +0100)]
LPC178x: uLAN boot block configuration for the target.

Tested on LX_CPU1. uLAN, USB and key-value storage working.
UART tested as well but no print or debug enabled for now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update USB device support for new architecture.
Pavel Pisa [Thu, 20 Dec 2012 23:23:48 +0000 (00:23 +0100)]
LPC178x: Update USB device support for new architecture.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update system setup from available NXP examples.
Pavel Pisa [Thu, 20 Dec 2012 23:20:34 +0000 (00:20 +0100)]
LPC178x: Update system setup from available NXP examples.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Update board support for new header files and pin configuration.
Pavel Pisa [Thu, 20 Dec 2012 23:19:06 +0000 (00:19 +0100)]
LPC178x: Update board support for new header files and pin configuration.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Adapt HAL pin configuration for new pin multiplexer.
Pavel Pisa [Thu, 20 Dec 2012 23:16:48 +0000 (00:16 +0100)]
LPC178x: Adapt HAL pin configuration for new pin multiplexer.

The pin function and mode configuration is completely
revamped in LPC178x devices. Adapt HAL support for new
configuration registers organization.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Add parameters for key-value storage into original header file.
Pavel Pisa [Thu, 20 Dec 2012 23:10:38 +0000 (00:10 +0100)]
LPC178x: Add parameters for key-value storage into original header file.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: PiKRON's LX_CPU1 board configuration.
Pavel Pisa [Thu, 20 Dec 2012 23:06:48 +0000 (00:06 +0100)]
LPC178x: PiKRON's LX_CPU1 board configuration.

The first target board of this platform is PiKRON's
LX_CPU1 board.

Main board components
  - LPC1788 - LPC1788FBD208,208LQFP
  - Xilinx Spartan 6 - XC6SLX9-2TQG144I, 144TQFP
  - 32 MB SDRAM - IS42S32800D-7TLI 144TQFP
  - 4x IRC inputs
  - Ethernet, CAN, uLAN, USB, SPI, UART 3.3V, I2C
  - SPI Flash, SD Card, 2x USB
The board design is intended for open/free release
at PiKRON's pages in the future. The assembled boards
and whole applications setups will be available
from PiKRON.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: LD script files for LPC1788.
Pavel Pisa [Thu, 20 Dec 2012 23:05:06 +0000 (00:05 +0100)]
LPC178x: LD script files for LPC1788.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoLPC178x: Original NXP device header file.
Pavel Pisa [Thu, 20 Dec 2012 23:02:46 +0000 (00:02 +0100)]
LPC178x: Original NXP device header file.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoIntroduction of LPC178x platform support by clone of LPC17xx.
Pavel Pisa [Thu, 20 Dec 2012 22:41:14 +0000 (23:41 +0100)]
Introduction of LPC178x platform support by clone of LPC17xx.

The LPC178x platform is similar to LPC17xx but amount
of differences is too large to keep these two architectures
in single support code without clashes.

So whole clone of LPC17xx files which are relevant for
LPC178x is provided by this commit.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoProvide basic BBCONFIG support for LPC17xx devices.
Pavel Pisa [Wed, 25 Jul 2012 18:10:36 +0000 (20:10 +0200)]
Provide basic BBCONFIG support for LPC17xx devices.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoOne more SDCC check updated.
Pavel Pisa [Sat, 21 Jul 2012 14:49:16 +0000 (16:49 +0200)]
One more SDCC check updated.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 years agoUpdated check for SDCC compiler to support SDCC 3.2+ version.
Pavel Pisa [Sat, 21 Jul 2012 14:08:19 +0000 (16:08 +0200)]
Updated check for SDCC  compiler to support SDCC 3.2+ version.

Actual SDCC version uses only underscore starting defines
variants. Code was checked to build, but no attempt to run
on target was proceed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agolcp176x: erase FLASH up to 512kB when lcp1768 variant is used.
Pavel Pisa [Sun, 26 Feb 2012 22:03:08 +0000 (23:03 +0100)]
lcp176x: erase FLASH up to 512kB when lcp1768 variant is used.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agosysless: IRQ_RETVAL must not touch its argument for void return type handler variant.
Pavel Pisa [Mon, 13 Feb 2012 17:01:26 +0000 (18:01 +0100)]
sysless: IRQ_RETVAL must not touch its argument for void return type handler variant.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoFix build for SDCC-3.1.x where size_t substitute need other conditional check.
Pavel Pisa [Sun, 22 Jan 2012 17:18:03 +0000 (18:18 +0100)]
Fix build for SDCC-3.1.x where size_t substitute need other conditional check.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoAlternative function to insert SPI message at queue head.
Pavel Pisa [Sun, 4 Dec 2011 21:46:52 +0000 (22:46 +0100)]
Alternative function to insert SPI message at queue head.

This allows immediate retransmit of current message
from transfer callback function.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoeb_ebb: Move eb_ebb lib from sysless to eurobot/src tree
Michal Vokac [Wed, 30 Nov 2011 16:28:17 +0000 (17:28 +0100)]
eb_ebb: Move eb_ebb lib from sysless to eurobot/src tree

Note by Michal: It seems that nobody elese uses this library now and it is
easier for us when this library lives in repository, which can be
modified by Eurobot team members.

Note 2: The patch did not apply cleanly, so I simply deleted the eb_ebb
directory.

12 years agoUpdate archaic hiterm tool as well.
Pavel Pisa [Sun, 13 Nov 2011 14:30:47 +0000 (15:30 +0100)]
Update archaic hiterm tool as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoIt is 12 years after C99 standardization - switch to stdint.h and its types.
Pavel Pisa [Sun, 13 Nov 2011 14:25:30 +0000 (15:25 +0100)]
It is 12 years after C99 standardization - switch to stdint.h and its types.

The old types.h is deprecated and not used by sysless itself now.
If the standard C99 stdint.h is missing in the build environment,
change the compiler.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoadd keyid definition for his devices
Petr Smolik [Tue, 14 Jun 2011 18:57:58 +0000 (20:57 +0200)]
add keyid definition for his devices

Signed-off-by: Petr Smolik <petr@smoliku.cz>
12 years agoAllow to continue in case, that mach directory is not present in arch/arm (it can...
nemecep1 [Wed, 1 Jun 2011 10:21:44 +0000 (12:21 +0200)]
Allow to continue in case, that mach directory is not present in arch/arm (it can be elsewhere).

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
12 years agoUse standard startup files for MSP430 architecture.
Pavel Pisa [Sun, 29 May 2011 20:00:05 +0000 (22:00 +0200)]
Use standard startup files for MSP430 architecture.

The use of compiler provide standard startup files
can be selected through option
  TARGET_STDSTARTFILES = y

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoMSP430 definition of atomic bit operation updated.
Pavel Pisa [Sun, 29 May 2011 19:22:54 +0000 (21:22 +0200)]
MSP430 definition of atomic bit operation updated.

The use of "+m" constrain solves problem with bung
of warnings generated during compilation.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoSupport of mspgcc 4.5.2
Vladimir Burian [Sat, 28 May 2011 21:39:57 +0000 (23:39 +0200)]
Support of mspgcc 4.5.2

Linker script has different structure. Meaning of "sfrb" and "sfrw" is
also different - hardware header is rewritten.

12 years agoC compilers are compliant enough that stdint.h can be used for integer types now.
Pavel Pisa [Fri, 27 May 2011 21:56:36 +0000 (23:56 +0200)]
C compilers are compliant enough that stdint.h can be used for integer types now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8eurobot: Enable PXMC
Michal Sojka [Tue, 3 May 2011 08:41:01 +0000 (10:41 +0200)]
h8eurobot: Enable PXMC

13 years agoh8300: correct broken ld-scipts for h8eurobot and h8canusb boards.
Pavel Pisa [Mon, 2 May 2011 21:56:34 +0000 (23:56 +0200)]
h8300: correct broken ld-scipts for h8eurobot and h8canusb boards.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8eurobot: provide board enough time to proceed erase command.
Pavel Pisa [Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)]
h8eurobot: provide board enough time to proceed erase command.

Some similar configuration has been there probably in past
and it providing enough time to target to finish erase
is required. Sleep between commands ensures, that possible
garbage on input can be cleared by flush in next command.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8300: correct broken ld-scipts for h8eurobot and h8canusb boards.
Pavel Pisa [Mon, 2 May 2011 21:56:34 +0000 (23:56 +0200)]
h8300: correct broken ld-scipts for h8eurobot and h8canusb boards.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8300: hi_cpu2 board - correct ld-scripts breakage.
Pavel Pisa [Mon, 2 May 2011 21:55:07 +0000 (23:55 +0200)]
h8300: hi_cpu2 board - correct ld-scripts breakage.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8eurobot: provide board enough time to proceed erase command.
Pavel Pisa [Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)]
h8eurobot: provide board enough time to proceed erase command.

Some similar configuration has been there probably in past
and it providing enough time to target to finish erase
is required. Sleep between commands ensures, that possible
garbage on input can be cleared by flush in next command.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLMC1: Added port pin style definition for auxual TLL I/O pins.
Pavel Pisa [Tue, 26 Apr 2011 17:42:28 +0000 (19:42 +0200)]
LMC1: Added port pin style definition for auxual TLL I/O pins.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agolpc17xx: replace hard-coded vector table placement by more flexible code.
Pavel Pisa [Tue, 26 Apr 2011 10:10:07 +0000 (12:10 +0200)]
lpc17xx: replace hard-coded vector table placement by more flexible code.

Change allows to fill initial values for interrupt service
functions by override functions for global weak symbols.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoCorrect PDIUSB header include path.
Pavel Pisa [Mon, 21 Mar 2011 00:53:08 +0000 (01:53 +0100)]
Correct PDIUSB header include path.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoFix build of h8300 hi_cpu2 board support - not tested.
Pavel Pisa [Mon, 21 Mar 2011 00:49:55 +0000 (01:49 +0100)]
Fix build of h8300 hi_cpu2 board support - not tested.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoCPU defines for MSP430 architecture.
Pavel Pisa [Thu, 17 Mar 2011 15:10:42 +0000 (16:10 +0100)]
CPU defines for MSP430 architecture.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoAdded openmsp430 virtex2 board.
Vladimir Burian [Mon, 14 Mar 2011 21:25:48 +0000 (22:25 +0100)]
Added openmsp430 virtex2 board.

13 years agoAdded mach-openmsp430 arch.
Vladimir Burian [Mon, 14 Mar 2011 21:24:28 +0000 (22:24 +0100)]
Added mach-openmsp430 arch.

13 years agoAdded msp430 generic arch.
Vladimir Burian [Mon, 14 Mar 2011 21:23:29 +0000 (22:23 +0100)]
Added msp430 generic arch.

13 years agoh8300: Port the newest bloader to h8eurobot board
Michal Sojka [Wed, 16 Mar 2011 15:48:07 +0000 (16:48 +0100)]
h8300: Port the newest bloader to h8eurobot board

13 years agoh8300/bloader: Wait between botstrap phases
Michal Sojka [Wed, 16 Mar 2011 15:43:00 +0000 (16:43 +0100)]
h8300/bloader: Wait between botstrap phases

This is needed for proper bootstraping.

13 years agoh8300: Yet another update of bloader
Michal Sojka [Wed, 16 Mar 2011 15:34:54 +0000 (16:34 +0100)]
h8300: Yet another update of bloader

Now it should be bullet-proof and is tested with h8canusb.

13 years agoh8300: Update h8canusb ld scripts to work with updated bootloader
Michal Sojka [Wed, 16 Mar 2011 07:53:45 +0000 (08:53 +0100)]
h8300: Update h8canusb ld scripts to work with updated bootloader

13 years agoh8300: bloader: Fix relocation condition
Michal Sojka [Wed, 16 Mar 2011 06:32:15 +0000 (07:32 +0100)]
h8300: bloader: Fix relocation condition

Previously used __boot_fn_start is always in RAM. We must use etext to
find out where the code is stored.

13 years agoh8300: Make bloader work with ELF toolchain
Michal Sojka [Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)]
h8300: Make bloader work with ELF toolchain

Do not use PIC (position independent code) hacks in boot loader. Compile
it for fixed address and use different LMA and VMA in the linker scripts.
So far, only linker script for h8eurobot board was updated!

Bootstraping was tested with both 32 and 64 bit hosts and it works, despite
that 64 bit compiler produces a lot of warnings such as:
/tmp/cco5hbea.s:1218: Warning: operand #0xffffffffffffffef out of range.

13 years agoh8300: Port the newest bloader to h8eurobot board
Michal Sojka [Wed, 16 Mar 2011 15:48:07 +0000 (16:48 +0100)]
h8300: Port the newest bloader to h8eurobot board

13 years agoh8300/bloader: Wait between botstrap phases
Michal Sojka [Wed, 16 Mar 2011 15:43:00 +0000 (16:43 +0100)]
h8300/bloader: Wait between botstrap phases

This is needed for proper bootstraping.

13 years agoh8300: Yet another update of bloader
Michal Sojka [Wed, 16 Mar 2011 15:34:54 +0000 (16:34 +0100)]
h8300: Yet another update of bloader

Now it should be bullet-proof and is tested with h8canusb.

13 years agoh8300: Update h8canusb ld scripts to work with updated bootloader
Michal Sojka [Wed, 16 Mar 2011 07:53:45 +0000 (08:53 +0100)]
h8300: Update h8canusb ld scripts to work with updated bootloader

13 years agoh8300: bloader: Fix relocation condition
Michal Sojka [Wed, 16 Mar 2011 06:32:15 +0000 (07:32 +0100)]
h8300: bloader: Fix relocation condition

Previously used __boot_fn_start is always in RAM. We must use etext to
find out where the code is stored.

13 years agoh8300: Make bloader work with ELF toolchain
Michal Sojka [Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)]
h8300: Make bloader work with ELF toolchain

Do not use PIC (position independent code) hacks in boot loader. Compile
it for fixed address and use different LMA and VMA in the linker scripts.
So far, only linker script for h8eurobot board was updated!

Bootstraping was tested with both 32 and 64 bit hosts and it works, despite
that 64 bit compiler produces a lot of warnings such as:
/tmp/cco5hbea.s:1218: Warning: operand #0xffffffffffffffef out of range.

13 years agoFix spejblarm build
Michal Sojka [Tue, 1 Mar 2011 21:31:25 +0000 (22:31 +0100)]
Fix spejblarm build

canldtg referenced non-existent ld script. The Makefile was modified to
point to an existing one. I hope that I chosen the correct version :-)

13 years agobuild-all: Skip lpc17xx-common-ulboot
Michal Sojka [Tue, 1 Mar 2011 21:23:09 +0000 (22:23 +0100)]
build-all: Skip lpc17xx-common-ulboot

ulan libraries are needed for this build to be successful.

13 years agoAdd missing files from uLan repository
Michal Sojka [Tue, 1 Mar 2011 21:16:35 +0000 (22:16 +0100)]
Add missing files from uLan repository

These files are needed to compile some parts of sysless. Namely, this fixes
build of lpc2364-12 board.

13 years agominiarm: Comment out ld script that breaks compilation
Michal Sojka [Tue, 1 Mar 2011 20:33:52 +0000 (21:33 +0100)]
miniarm: Comment out ld script that breaks compilation

13 years agoLPC17xx: corrected mistake in ADC pin configuration.
Pavel Pisa [Tue, 1 Mar 2011 20:12:02 +0000 (21:12 +0100)]
LPC17xx: corrected mistake in ADC pin configuration.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLPC17xx: define ADC pins in HAL GPIO style as well.
Pavel Pisa [Tue, 1 Mar 2011 19:16:57 +0000 (20:16 +0100)]
LPC17xx: define ADC pins in HAL GPIO style as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoAdd optional WvTest protocol output for build-all
Michal Sojka [Fri, 25 Feb 2011 22:22:01 +0000 (23:22 +0100)]
Add optional WvTest protocol output for build-all

Running make test in build-all directory colorizes the results and
produces summary numbers of successful and failed builds.

13 years agoAdded blink test for MCB1760 development board with lpc17cmsis
Jiri Kubias [Fri, 25 Feb 2011 15:52:28 +0000 (16:52 +0100)]
Added blink test for MCB1760 development board with lpc17cmsis

13 years agoAdded flash loading tool lpc21isp for LPC17xx
Jiri Kubias [Fri, 25 Feb 2011 15:49:44 +0000 (16:49 +0100)]
Added flash loading tool lpc21isp for LPC17xx

modified board/arm/lpc17cmsis-mbed config to work with lpc21isp

Note by M. Sojka: According to Jiri, this version does not work with
LPC21xx and the version for 21xx does not work with LPC17xx. The reasons
for this are not clear to me. Hopefully, someone will fix this
eventually.

13 years agolpc17cmsis: Fixed IRQ vectors in crt0_lpc17xx.c
Jiri Kubias [Wed, 9 Feb 2011 10:51:44 +0000 (11:51 +0100)]
lpc17cmsis: Fixed IRQ vectors in crt0_lpc17xx.c

Byly odebrany definice IRQ vektoru ktere odpovidaly LPC13xx a zmeney
definice IRQ vektoru odpovidajici LPC17xx. Tento problem vzniknul
portovanim crt0_lpc13xx.c na crt0_lpc17xx.c .

13 years agoFixed IRQ_TABLE_SIZE for lpc13xx.
nemecep1 [Sun, 20 Feb 2011 17:53:57 +0000 (18:53 +0100)]
Fixed IRQ_TABLE_SIZE for lpc13xx.

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoSome common files for lpc23xx are now symlinked from lpc21xx.
nemecep1 [Thu, 17 Feb 2011 19:55:41 +0000 (20:55 +0100)]
Some common files for lpc23xx are now symlinked from lpc21xx.

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoAdded support for irq in thumb mode for lpc23xx (as for lpc21xx).
nemecep1 [Thu, 17 Feb 2011 19:55:08 +0000 (20:55 +0100)]
Added support for irq in thumb mode for lpc23xx (as for lpc21xx).

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoFixed PLL initialization on lpc32xx
nemecep1 [Thu, 17 Feb 2011 19:53:12 +0000 (20:53 +0100)]
Fixed PLL initialization on lpc32xx

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agoAdded arch for lpc13xx
nemecep1 [Thu, 17 Feb 2011 19:50:07 +0000 (20:50 +0100)]
Added arch for lpc13xx

Signed-off-by: nemecep1 <pavel.nemecek1@gmail.com>
13 years agogenposix: use GCC provided atomic functions for this target.
Pavel Pisa [Sun, 13 Feb 2011 02:17:28 +0000 (03:17 +0100)]
genposix: use GCC provided atomic functions for this target.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agolpc17xx - optimize for size and discard unused functions and variables.
Pavel Pisa [Tue, 25 Jan 2011 09:36:54 +0000 (10:36 +0100)]
lpc17xx - optimize for size and discard unused functions and variables.

This works for both ulboot and large SuiTk based application
for LMC1 after previous fixes.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoSynchronization added to LPC17xx disable_irq and enable_irq functions.
Pavel Pisa [Sun, 23 Jan 2011 17:54:17 +0000 (18:54 +0100)]
Synchronization added to LPC17xx disable_irq and enable_irq functions.

If the synchronization is not there, compiler or CPU
can freely reorder execution in request_irq and free_irq.
This caused broken build optimized by

 -Os -ffunction-sections -fdata-sections -Wl,--gc-section

The IRQ source has been enabled before handler has
target been set into irq_handler_table.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoSeparate ldscript for LPC1766 to reflect limited (256kB) Flash size.
Pavel Pisa [Sun, 23 Jan 2011 12:54:57 +0000 (13:54 +0100)]
Separate ldscript for LPC1766 to reflect limited (256kB) Flash size.

This allows to catch Flash overflow during compilation.
Without specification the target system application
and boot block are corrupted.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoIRC Mark pin cannot generate IRQ on Port 1, use MCPWM ABORT IRQ instead.
Pavel Pisa [Tue, 18 Jan 2011 19:05:18 +0000 (20:05 +0100)]
IRC Mark pin cannot generate IRQ on Port 1, use MCPWM ABORT IRQ instead.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoDefine SSP1 pins connection on LMC1 board and SSP1 functionality checking.
Pavel Pisa [Tue, 21 Dec 2010 15:24:06 +0000 (16:24 +0100)]
Define SSP1 pins connection on LMC1 board and SSP1 functionality checking.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoLMC1 board LEDs declared by PORT_PIN macro.
Pavel Pisa [Tue, 21 Dec 2010 11:00:03 +0000 (12:00 +0100)]
LMC1 board LEDs declared by PORT_PIN macro.

This allows to use pin specification with HAL GPIO
code

  hal_pin_conf(LED1_PIN);
  hal_pin_conf(LED2_PIN);

  hal_gpio_set_value(LED1_PIN,0);
  hal_gpio_set_value(LED2_PIN,1);

This specification has been used in A4M38KRP lecture
USBLED example.

13 years agoCorrected LPC SSP SPI driver to allow receive only transfers.
Pavel Pisa [Fri, 17 Dec 2010 13:37:01 +0000 (14:37 +0100)]
Corrected LPC SSP SPI driver to allow receive only transfers.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoldscripts for lpc1758
Petr Smolik [Fri, 10 Dec 2010 13:58:31 +0000 (14:58 +0100)]
ldscripts for lpc1758
config and system_def for a u2u convertor based on lpc1758

Signed-off-by: Petr Smolik <petr@smoliku.cz>
13 years agoSSP0 pin definitions for LMC board updated to match SPI SSP driver.
Pavel Pisa [Tue, 23 Nov 2010 21:07:20 +0000 (22:07 +0100)]
SSP0 pin definitions for LMC board updated to match SPI SSP driver.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoInitial version of SPI driver for LPC17xx SSP peripheral added.
Pavel Pisa [Tue, 23 Nov 2010 21:06:19 +0000 (22:06 +0100)]
Initial version of SPI driver for LPC17xx SSP peripheral added.

The driver uses 8 level FIFO and allows up to four
chip selects control in default build.
Pin definitions are taken through

SCKx_PIN, SSELx_PIN, MISOx_PIN, MOSIx_PIN and SSPx_CSy_PIN
defines. Both interfaces SSP0 and SSP1 are supported.

Code does not use DMA yet.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoMake arm/oc8n compilable
Michal Sojka [Sun, 18 Jul 2010 20:19:56 +0000 (22:19 +0200)]
Make arm/oc8n compilable

Pavel's change of system_stub.c in commit bedf51 made oc8n board
uncompilable. I've added the missing symbol to ld scripts for that
board.

The generated error message was:
arch/arm/generic/libs/misc/system_stub.c:118: undefined reference to `end'

13 years agoBuild framework for the AT91SAM7 architecture
Tran Duy Khanh [Tue, 16 Mar 2010 03:16:02 +0000 (23:16 -0400)]
Build framework for the AT91SAM7 architecture

Tested on the OC8-N module.

(system_stub.[ch] changes moved to a separate patch for easy revert
 if it will be required later.  -Michal Sojka)

13 years agoIncluded H8300 boot block and bootstrap loader code
Michal Sojka [Wed, 21 Jul 2010 13:54:30 +0000 (15:54 +0200)]
Included H8300 boot block and bootstrap loader code

The app/ directory was mess. This is an attempt to make the situation
better.

13 years agoIncluded TOHIT H8300 application and flash loader.
Michal Sojka [Wed, 21 Jul 2010 13:54:30 +0000 (15:54 +0200)]
Included TOHIT H8300 application and flash loader.

The app/ directory was mess. This is an attempt to make the situation
better.

13 years agoMake h8300/jt_usb1 board compilable
Michal Sojka [Sun, 18 Jul 2010 20:04:15 +0000 (22:04 +0200)]
Make h8300/jt_usb1 board compilable

h8s2633 uses different names for CPU registers so I added aliases which
have the same name as for h8s2638.

13 years agoFixed a possible bug in FlWait()
Michal Sojka [Tue, 24 Feb 2009 12:31:23 +0000 (13:31 +0100)]
Fixed a possible bug in FlWait()

Missing \n caused the mov.w   #1,r1 to be skipped by assembler. This resulted
in uninitialized value of r1 and the resulting wait time was not
deterministic.

13 years agoAdded more meaningful bootloader error messages
Michal Sojka [Tue, 24 Feb 2009 10:57:30 +0000 (11:57 +0100)]
Added more meaningful bootloader error messages

13 years agoAdded meaningful error message
Michal Sojka [Mon, 23 Feb 2009 07:51:26 +0000 (08:51 +0100)]
Added meaningful error message

13 years agoh8canusb updated to the new toolchain - bootstrap doesn't work!!!
Michal Sojka [Fri, 20 Feb 2009 20:30:48 +0000 (21:30 +0100)]
h8canusb updated to the new toolchain - bootstrap doesn't work!!!

13 years agoLeaf Makefiles updated to work with dash without warnings
Michal Sojka [Fri, 20 Feb 2009 20:30:48 +0000 (21:30 +0100)]
Leaf Makefiles updated to work with dash without warnings

13 years agoThe h8eurobot board ldscripts modified to allow ELF build
Michal Sojka [Tue, 3 Feb 2009 09:05:29 +0000 (10:05 +0100)]
The h8eurobot board ldscripts modified to allow ELF build

The COFF is no longer supported by GCC for H8S MCUs.

13 years agoThe hi_cpu2 board ldscripts modified to allow ELF build.
Pavel Pisa [Sun, 11 Jan 2009 14:21:05 +0000 (15:21 +0100)]
The hi_cpu2 board ldscripts modified to allow ELF build.

The COFF is no longer supported by GCC for H8S MCUs.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoh8s2638 MCU register addresses moved to 0xffff0000 range
Pavel Pisa [Sun, 11 Jan 2009 14:19:33 +0000 (15:19 +0100)]
h8s2638 MCU register addresses moved to 0xffff0000 range

The H8S CPU supports only 24-bit addresses so upper
8-bits of 32 words are ignored, but GCC generates
16-bit addresses only for lower 32kB and last 32kB
starting at 0xffff8000. This allows contributes
to shrinking of code size.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoUpdate of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.
Pavel Pisa [Sun, 11 Jan 2009 14:13:00 +0000 (15:13 +0100)]
Update of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.

This version provides more functionality, full array support
for char, short, int, long in clear_bit() and set_bit()
functions and the constrains used for bset and bclr instructions
allows compilation with newer GCC versions.
The fallback "o" case is not fully correct because it allows
register with displacement address but dummy "r" constrains
argument forces to prepare address in register anyway and should
eliminate problematic case. If internal GCC optimization is corrected
"o" case should be removed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoStored copy of up to now used bit-operations primitives in H8S cpu_def.h.
Pavel Pisa [Sun, 11 Jan 2009 13:52:25 +0000 (14:52 +0100)]
Stored copy of up to now used bit-operations primitives in H8S cpu_def.h.

This version has been used for long time with h8300-coff-gcc (GCC) 3.4.3,
but it makes problems for newer GCC versions which ends in infinite
loops in compiler for atomic_clear_mask_b1() in some cases.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 years agoAdded new HW revision for h8eurobot board
Michal Sojka [Tue, 8 Apr 2008 15:00:16 +0000 (17:00 +0200)]
Added new HW revision for h8eurobot board