| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable()
to not return a status code. Add bsp_interrupt_assert() and use it to
validate the vector number in the vector enable/disable implementations.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
TMS5704357 ZWT chip.
The extended mechanism for switching input path by separated
alternative registers is already implemented in TMS570
pin multiplexer driver used for TMS570LS31xx
rtems/c/src/lib/libbsp/arm/tms570/pinmux/pinmux.c
But the code has not been tested on real TMS570LC43xx hardware yet.
|
| |
|
|
|
|
|
|
|
|
|
| |
Set CPU_ENABLE_ROBUST_THREAD_DISPATCH to TRUE. In this case the
interrupts are always enabled during a context switch even after
interrupt processing (see #2751). Remove the CPSR from the context
control since it contains only volatile bits.
Close #2954.
|
| |
|
|
|
|
| |
Only touch the cycle counter settings. Do not enable user mode access.
|
| |
|
|
|
|
| |
This is the wrong place to define it.
|
|
|
|
|
| |
The CPU counter runs with the processor frequency. Use
RTEMS_SYSINIT_ITEM() to initialize the CPU counter.
|
|
|
|
|
| |
Allow use of printk() early in the initalization and without a console
driver.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the testsuite configuration files to hold state information about
a test. The states are:
exclude - Do not build the test
expected-fail - The test is expected to fail
indeterminate - The test may pass or may fail
A message is printed just after the test's BEGIN message to indicate
there is a special state for the test. No state message means the test
is expected to pass.
This support requires tests are correctly written to the use standard
support to begin and end a test.
|
| |
|
| |
|
| |
|
|
|
|
| |
startup and selftest.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
HalCoGen generated files.
The configuration is specific for TMS570LS3137 based HDK.
Pins configuration can be easily changed in
rtems/c/src/lib/libbsp/arm/tms570/hwinit/init_pinmux.c
file.
The list tms570_selftest_par_list in the file
rtems/c/src/lib/libbsp/arm/tms570/hwinit/bspstarthooks-hwinit.c
specifies peripherals which health status is examined
by parity self-test at BSP start-up. It can be easily
modified for other TMS570 family members variants same
as the selection of other tests in bspstarthooks-hwinit.c.
|
|
|
|
|
|
|
|
| |
Generated header file ti_herc/reg_spi.h contains complete registers
and fields set for Ti MibSPI peripheral.
Care has to be taken that only TMS570_SPI1, TMS570_SPI3 and TMS570_SPI5
are of this complete multibuffer type. TMS570_SPI2 and TMS570_SPI4
have substantial part of registers removed but else they are compatible.
|
|
|
|
|
|
|
|
| |
This makes the new Termios devices independent of device major/minor
numbers. It enables BSP independent Termios device drivers which may
reside in the cpukit domain. These drivers require an IMFS and do not
work with the device file system. However, the device file system
should go away in the future.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of character Tx.
The rtems_monitor_task() setups/updates termios attributes
of the opened TTY and if there is ongoing some other output
it leads to the stuck.
It would be better to use some termios API function which
would call drainOutput() in rtems/cpukit/libcsupport/src/termios.c.
But functionality is not accessible outside of core termios
implementation.
The loop waiting for last character to be sent has to be there anyway
because hardware does not provide Tx machine/shift register empty
interrupt.
|
| |
|
|
|
|
| |
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
| |
clear of alt outputs.
|
|
|
|
| |
TMS570LS3135ZWT chip.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
updates #2577.
For the tms570ls3137_hdk BSP variant without this option,
sample executables sizes were as follows:
text data bss dec hex filename
63760 1708 260224 325692 4f83c ticker.exe
40197 1452 260480 302129 49c31 minimum.exe
557376 1972 260000 819348 c8094 cxx_iostream.exe
400269 5792 256192 662253 a1aed fileio.exe
304684 12608 249632 566924 8a68c pppd.exe
132744 2344 259616 394704 605d0 capture.exe
75578 1796 260160 337534 5267e nsecs.exe
113844 2084 259872 375800 5bbf8 paranoia.exe
126688 1732 260224 388644 5ee24 cdtest.exe
61480 1708 260224 323412 4ef54 base_sp.exe
63220 1716 260224 325160 4f628 unlimited.exe
68420 1668 260288 330376 50a88 hello.exe
181144 6492 255744 443380 6c3f4 loopback.exe
For the tms570ls3137_hdk BSP variant with this option,
sample executables sizes were as follows:
text data bss dec hex filename
59824 1696 260256 321776 4e8f0 ticker.exe
24268 1372 260576 286216 45e08 minimum.exe
346612 1936 260032 608580 94944 cxx_iostream.exe
388973 5780 256192 650945 9eec1 fileio.exe
283096 12456 249760 545312 85220 pppd.exe
127016 2324 259648 388988 5ef7c capture.exe
71966 1784 260160 333910 51856 nsecs.exe
109904 2072 259872 371848 5ac88 paranoia.exe
120816 1720 260224 382760 5d728 cdtest.exe
57416 1696 260256 319368 4df88 base_sp.exe
58188 1688 260256 320132 4e284 unlimited.exe
63064 1616 260320 325000 4f588 hello.exe
167884 6392 255840 430116 69024 loopback.exe
For the tms570ls3137_hdk_intram BSP variant without this option,
sample executables sizes were as follows:
text data bss dec hex filename
63760 1708 196384 261852 3fedc ticker.exe
40197 1452 220192 261841 3fed1 minimum.exe
132744 2344 126752 261840 3fed0 capture.exe
75578 1796 184484 261858 3fee2 nsecs.exe
113844 2084 145920 261848 3fed8 paranoia.exe
126688 1732 133440 261860 3fee4 cdtest.exe
61480 1708 198656 261844 3fed4 base_sp.exe
63220 1716 196900 261836 3fecc unlimited.exe
68420 1668 191744 261832 3fec8 hello.exe
For the tms570ls3137_hdk_intram BSP variant with this option,
sample executables sizes were as follows:
text data bss dec hex filename
59824 1696 200320 261840 3fed0 ticker.exe
24268 1372 236196 261836 3fecc minimum.exe
127016 2324 132512 261852 3fedc capture.exe
71966 1784 188096 261846 3fed6 nsecs.exe
109904 2072 149856 261832 3fec8 paranoia.exe
120816 1720 139296 261832 3fec8 cdtest.exe
57416 1696 202720 261832 3fec8 base_sp.exe
58188 1688 201956 261832 3fec8 unlimited.exe
63064 1616 197152 261832 3fec8 hello.exe
For the tms570ls3137_hdk_sdram BSP variant without this option,
sample executables sizes were as follows:
text data bss dec hex filename
63760 1708 8323104 8388572 7fffdc ticker.exe
40197 1452 8346912 8388561 7fffd1 minimum.exe
557376 1972 7829220 8388568 7fffd8 cxx_iostream.exe
400275 5792 7982500 8388567 7fffd7 fileio.exe
304684 12608 8071264 8388556 7fffcc pppd.exe
132744 2344 8253472 8388560 7fffd0 capture.exe
75578 1796 8311204 8388578 7fffe2 nsecs.exe
113844 2084 8272640 8388568 7fffd8 paranoia.exe
126688 1732 8260160 8388580 7fffe4 cdtest.exe
61480 1708 8325376 8388564 7fffd4 base_sp.exe
63220 1716 8323620 8388556 7fffcc unlimited.exe
68420 1668 8318464 8388552 7fffc8 hello.exe
181144 6492 8200928 8388564 7fffd4 loopback.exe
For the tms570ls3137_hdk_sdram BSP variant with this option,
sample executables sizes were as follows:
text data bss dec hex filename
59824 1696 8327040 8388560 7fffd0 ticker.exe
24268 1372 8362916 8388556 7fffcc minimum.exe
346612 1936 8040004 8388552 7fffc8 cxx_iostream.exe
388979 5780 7993796 8388555 7fffcb fileio.exe
283096 12456 8092996 8388548 7fffc4 pppd.exe
127016 2324 8259232 8388572 7fffdc capture.exe
71966 1784 8314816 8388566 7fffd6 nsecs.exe
109904 2072 8276576 8388552 7fffc8 paranoia.exe
120816 1720 8266016 8388552 7fffc8 cdtest.exe
57416 1696 8329440 8388552 7fffc8 base_sp.exe
58188 1688 8328676 8388552 7fffc8 unlimited.exe
63064 1616 8323872 8388552 7fffc8 hello.exe
167884 6392 8214272 8388548 7fffc4 loopback.exe
For the tms570ls3137_hdk_with_loader BSP variant without this option,
sample executables sizes were as follows:
text data bss dec hex filename
63760 1708 260224 325692 4f83c ticker.exe
40197 1452 260480 302129 49c31 minimum.exe
557376 1972 260000 819348 c8094 cxx_iostream.exe
400281 5792 256192 662265 a1af9 fileio.exe
304684 12608 249632 566924 8a68c pppd.exe
132744 2344 259616 394704 605d0 capture.exe
75578 1796 260160 337534 5267e nsecs.exe
113844 2084 259872 375800 5bbf8 paranoia.exe
126688 1732 260224 388644 5ee24 cdtest.exe
61480 1708 260224 323412 4ef54 base_sp.exe
63220 1716 260224 325160 4f628 unlimited.exe
68420 1668 260288 330376 50a88 hello.exe
181144 6492 255744 443380 6c3f4 loopback.exe
For the tms570ls3137_hdk_with_loader BSP variant with this option,
sample executables sizes were as follows:
text data bss dec hex filename
59824 1696 260256 321776 4e8f0 ticker.exe
24268 1372 260576 286216 45e08 minimum.exe
346612 1936 260032 608580 94944 cxx_iostream.exe
388985 5780 256192 650957 9eecd fileio.exe
283096 12456 249760 545312 85220 pppd.exe
127016 2324 259648 388988 5ef7c capture.exe
71966 1784 260160 333910 51856 nsecs.exe
109904 2072 259872 371848 5ac88 paranoia.exe
120816 1720 260224 382760 5d728 cdtest.exe
57416 1696 260256 319368 4df88 base_sp.exe
58188 1688 260256 320132 4e284 unlimited.exe
63064 1616 260320 325000 4f588 hello.exe
167884 6392 255840 430116 69024 loopback.exe
|
|
|
|
| |
Update #2408.
|
|
|
|
|
|
| |
Use the bsp_predriver_hook() instead.
Update #2408.
|
|
|
|
| |
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
|
|
| |
remarks.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
| |
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
|
|
|
|
|
|
|
|
| |
boot loader.
The default tms570ls3137_hdk variant is for building RTEMS
application image starting directly from start of Flash.
Variant tms570ls3137_hdk_with_loader skips 256kB at start
of Flash to allow use with application loader.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Parameters overlay module is initialized and cleared first.
It is used later to replace exception target vectors
only if that is required.
The application loader code with CPU and SDRAM setup
code has to provide well defined pattern of instructions
at addresses 0x00000000 and 0x0000001f, because only data
read accesses can be processed reliably by POM. The expected
instruction pattern can be seen in the next example
https://github.com/hornmich/tms570ls3137-hdk-sdram/blob/master/SDRAM_SCI_configuration/source/sys_intvecs.asm
Comments with detailed description of code, background
and reasons for selected approach have been included
in TMS570 bsp startup code.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
| |
|
|
|
|
|
|
| |
tms570_sci_interrupt_last_close: do not wait for old data transmit.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
| |
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
| |
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
|
|
|
|
| |
there is no need to define access macros for field covering
whole registers. In addition, BSP_FLD32 does not work right
for field 32bit length.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
| |
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The update fixes breakage of TMS570 support after Alexander Krutwig
switch of RTEMS time read to timecounter mechanism
bsps: Convert clock drivers to use a timecounter
Mechanism to specify odd (non 1 Mhz) time base update frequencies
implemented after objections of Martin Galvan.
Code is adjusted to convert RTEMS configuration parameter
microseconds_per_tick to such odd base if
TMS570_PREFERRED_TC_FREQUENCY is specified appropriately.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
|
|
|
|
|
|
|
|
|
|
|
| |
The header files are generated by script make_header.py.
Current script's version can be found at:
https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python
Registers offsets and fields have been extracted from reference manual.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
|
|
|
|
|
|
| |
Fix typo.
closes 2345.
|
| |
|
|
|
|
| |
Update #2271.
|
| |
|
| |
|
| |
|
| |
|