Commit Graph
985 Commits
Author SHA1 Message Date
Moksh Panicker 73ac0c9674 bsps/arm/stm32f4: Add SPI bus driver
Adds an interrupt-driven SPI bus driver for the STM32F4 SPI
peripheral implementing the RTEMS spi_bus API (dev/spi/spi.h).

The STM32F4 SPI has no hardware FIFO - the data register holds
a single byte - so the driver handles one byte per TXE/RXNE
interrupt pair. This is a hardware constraint, not an
implementation choice. DMA support can be added in a future
version.

Supports 8-bit full-duplex master mode, SPI modes 0-3 (all
CPOL/CPHA combinations), MSB/LSB-first, and automatic baud-rate
prescaler selection. Chip select is left to the application
via GPIO.

New files:
- stm32f4xxxx_spi.h: register definitions (RM0090 section 28.5)
- stm32f4-spi.h: public driver interface
- spi.c: driver implementation

stm32f4.h updated with STM32F4_SPI1/2/3 peripheral accessors.
SPI base addresses per RM0090 table 1: SPI1 on APB2 at
0x40013000, SPI2 and SPI3 on APB1 at 0x40003800 and 0x40003C00.

Verified to compile cleanly for arm/stm32f4 and
arm/realview_pbx_a9_qemu with GCC 15.2.0.
2026-06-17 00:45:02 +00:00
Sebastian Huber 2582a21ade build: Update GCC build key
This is required for matching bitset type definitions provided by
Newlib.

Update #4864.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-06-16 16:39:09 +02:00
Gedare Bloom 1fff7e564b testsuites/libtests: add fdt02 for more rtems-fdt tests
Closes #5607.
2026-06-05 23:23:51 +00:00
Sebastian Huber 37163afc97 build: Add explicit dependencies
Tests using the bld.cc() and bld.cxx() rules do not profit from the
automatic compiler dependency generation provided by the gccdeps.py waf
plugin.

Add "cpukit/include/rtems/score/cpuopts.h" as a hard-coded dependency to
these tests to account for configuration changes.  This fixes linker
errors, for example if the configuration changed the RTEMS_SMP option.

Close #5482.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-06-04 18:06:08 -05:00
Chris Johns 156d429516 spec/ftd01: Fix the DTB python generation code
Closes #5605
2026-06-02 15:28:03 +10:00
Shivam Deolankar 99ea420b1b cpukit: Move FatFs core to contrib and update build integration
Move the upstream FatFs sources from cpukit/libfs/src/fatfs to
contrib/fatfs.Keep the RTEMS integration layer (rtems-fatfs-*.c and
rtems-diskio.c) in libfs. Introduce a wrapper header under rtems/fatfs
and update internal sources to use it.

Update the build specification to reference the new location without
introducing global include paths.

Fixes #5433
2026-06-01 18:37:44 +00:00
Gedare Bloom b6fb679d44 spec/build: add explicit dependency in fdt01
Updates #5482.
2026-05-28 18:55:53 -06:00
Gedare Bloom 27fc98a01d spec/build: add fdt01 test to build
Also uses the new dtc command to generate the dtbs at compile time.
Reads dts from elsewhere in the rtems tree.
2026-05-28 18:55:53 -06:00
Gedare Bloom 296d3872ff libmisc/rtems-fdt: add rtems-fdtimpl.h
Refactor implementation details to rtems-fdtimpl.h to allow further
refactoring of the main source file and access to internal structures
for testing.
2026-05-28 18:55:53 -06:00
Gedare Bloom 128106b2f1 riscv: enable using PLIC in S-mode
The previous addition of s-mode support avoided touching the PLIC
registers and only allowed limited use of software interrupts for SMP
IPIs. This enables the PLIC in s-mode mapping the registers with the MMU
and unifying some aspects of the m-mode and s-mode implementations.

Updates #3337
2026-05-28 14:43:42 -06:00
Chris Johns 9e0aeb52e0 spec: Add BSD base and family to Makefile.inc
- A base BSP helps applications support aliased BSPs

- Also add ABI_FLAGS to be consistent with the pkgcfg file.

Closes #5592
2026-05-27 20:52:49 -05:00
Samuel Viegas 58c0c344a2 bsps/sparc/leon3: Reject API raise of IRQs 16-31
- Changed the interrupt attributes so extended vectors
report can_raise as false.

- Changed the bsp_interrupt_raise to return
RTEMS_UNSATISFIED for extended vectors 16-31.

- BSP-specific validation for gr712rc and gr740
were added to exercised the extended vectors, and
check that the right interrupt handler is called.

Updates #4846.
2026-05-23 23:14:11 -05:00
Gedare Bloom 2ed6cfbbd5 spec/riscv: fix abspath to riscv-mmu.h
Fixes #5571
2026-05-13 16:08:41 +10:00
Gedare Bloom 18e441c75b riscv: add helper for sfence.vma
Wraps sfence.vma 0, 0 in a function for TLB flushing.
Also disables compiling mmu-setup.c if S-mode is not enabled.

Updates #5540
2026-05-13 16:06:34 +10:00
Chris Johns a73c6034eb powerpc/beatnik: Support generic IRQ
This effects the MVME6100 and MVME5500.

Closes #5567
2026-05-12 14:46:33 -05:00
Gedare Bloom 8bee39f21c riscv: add mstrict-align for mpfs and beaglevfire
The cores of the polarfire do not support misaligned access. Add
-mstrict-align to the ABI flags.

Updates #5286
2026-05-11 11:39:02 -06:00
Gedare Bloom 7fa05a688b spec/riscv: add MMU options and enable in build
Fixes #5540
2026-05-01 15:55:50 +00:00
Gedare Bloom fd53b09378 riscv: refactor riscv-utility.h
Include contrib/riscv-opcodes/encoding.h from riscv-utility.h and
remove outdated contents from riscv-utility.h
This will allow the include guards to work properly for users (or HAL code)
that also use the encoding.h file, while still allowing us to provide
additional customization or extension of encoding.h macros.
2026-04-29 12:47:37 -06:00
Michal LencandPavel Pisa df346b439b can: add support for SJA1000 CAN controller
This commit adds support for a stand alone SJA1000 CAN controller. This
is classical CAN only capable controller, so no FD support here. The
driver's implementation is similar to CTU CAN FD, thus interrupt handler
triggers a semaphore in main worker thread that takes care of handling
interrupts and receiving and sending messages.

The controller utilizes its one TX buffer for sending messages with
abort function available if higher priority message is present in
the software queue.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
Co-authored-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2026-04-27 21:26:51 -05:00
Kinsey Moore c5678f549f spec/aarch64/zynqmp: Restore orphaned configuration file 2026-04-22 07:21:54 -05:00
Joel Sherrill fd9ed0a7da spec/build/cpukit/optstdcc.yml: Fix spelling error.
Address spelling error in description.
2026-04-21 16:06:40 -05:00
Kinsey Moore b5ebe6bf32 riscv: Add basic ESP32-C3 BSP
This adds a BSP for the ESP32-C3 with external flash. This BSP can use
the USB serial interface or UART0 as the debug console and supports
interrups along with the SYSTIMER clock source.
2026-04-07 14:52:50 -05:00
Kinsey Moore 9520d1501b spec/riscv: Allow BSS to be specified independent of DATA 2026-04-07 14:52:50 -05:00
Kinsey Moore 1d98a00710 spec/bsps/riscv: Allow start section load address
This adds a new memory section load address for the start region.
2026-04-07 14:52:50 -05:00
Kinsey Moore 9a4f2904c0 riscv: Add optional section copy callback
This adds a callback early in the RISC-V startup process that allows a
BSP to copy linker sections in situations where they may not be
automatically mapped.
2026-04-07 14:52:50 -05:00
Kinsey Moore db85fedbaf riscv: Add support for Espressif Direct Boot
This adds the ability to generate a binary image with an Espressif
Direct Boot header.
2026-04-07 14:52:50 -05:00
Rongjie Lee 215b3c9f71 aarch64: Add imx93 BSP
This adds a BSP for the i.MX93 chip.
2026-04-06 10:12:07 -05:00
Sebastian Huber e20a42b84d build: Add CC-BY-SA-4.0 to two items
The content may end up in documentation sources, for this CC-BY-SA-4.0
is required.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-04-03 20:33:13 +00:00
Pavel Pisa 2e9e44a073 bsps/arm/tms570: add support for tms570lc4357_hdk_intram build
This build places all code and data into the on-chip
internal SRAM. Even though this limits the application
size and has not much use for final applications
deployment, this configuration is important during
development because the guaranteed Flash write/erase
cycle count is limited to 1000 if a 15-year data retention
guarantee is required.

The load to SRAM is much faster as well.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2026-04-01 14:02:51 -05:00
Sebastian Huber d664a1c844 build: Add missing copyright statements
Each build item shall have copyright statements.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-04-01 13:50:08 +02:00
Sebastian Huber de108eddde build: Fix typos
Fix typos in copyright statements.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-04-01 13:50:08 +02:00
Sebastian Huber 6998a0bba6 build: Remove unused attributes
The removed attributes are not used by the build system.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-04-01 13:50:08 +02:00
Gedare Bloom b09bc60067 spec/build/microblaze: remove duplicate key in optmaxuarts.yml
The actions key was replicated.
2026-03-31 16:53:25 +00:00
Joel Sherrill d75b74c66d spec/build/cpukit/optgcc.yml: Correct GCC build key
The RSB had the build date/key of 2026.03.04 but RTEMS had it as
a day later. Correcting it here avoids everyone rebuilding all the
tools.
2026-03-30 11:46:28 -05:00
Sebastian Huber 63fa5b5c55 build: Get rid of multiple links to the one option
Close #5532.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-03-26 08:57:02 +01:00
Sebastian Huber 9bdb83ab72 bsps/aarch64: Localize PSCI support
Install <bsp/bspsmp-arm-psci.h> only for BSPs using it.

Use common build item for shared SMP support.
2026-03-25 20:34:42 -05:00
Sebastian Huber f76b04e133 build: Move FatFS build support
Use a separate build objects item for the FatFS to localize the use of command
line defines.
2026-03-24 02:54:23 +01:00
Matteo Concas 40818d91c5 riscv/sbi: Correct path 2026-03-20 10:31:46 +01:00
Gedare Bloom e3ec0ab811 riscv/riscv: refactor FDT helper functions
Adds bsp/riscv-fdt.h with new functions for pulling information from
the FDT.
2026-03-18 12:44:46 -06:00
Sebastian Huber 28588dcc59 build: Check the GCC build key
Query the GCC build key and check it against the required value.

There are dependencies between the RTEMS sources and external interfaces
provided by Newlib and GCC.  For example, POSIX API interfaces may
change due to POSIX standard updates.  The GCC build key is used to
provide an indication that the present tools meet the requirements of
the RTEMS sources.

Add the GCC_BUILD_KEY_POLICY build option to define the checking policy.
The GCC build key policy defines how the build key of the present
compiler is checked against the required build key.  While the policy is
"ERROR", if the GCC build key has not the expected value, then the build
configuration process produces a fatal error.  While the policy is
"WARNING", if the GCC build key has not the expected value, then the
build configuration process produces a warning message.  While the
policy is "IGNORE", the GCC build key is not checked at all.  The
default policy is "WARNING".

Close #5521.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-03-18 02:24:45 +01:00
Shivam Deolankar f2a3dd2b62 build: Separate SECTION_FLAGS from OPTIMIZATION_FLAGS
Move -ffunction-sections and -fdata-sections into new SECTION_FLAGS
option to prevent breakage when users override OPTIMIZATION_FLAGS.
Also added documentation for user's to override the flags.

Fixes stack checker undefined reference when OPTIMIZATION_FLAGS=-g.

Also added a copyright field for valid license.

Fixes #5497
2026-03-09 14:49:02 +00:00
Gedare Bloom ea31fe6cd8 spec/build: add RISCV_USE_S_MODE option
Updates #3337
2026-03-06 11:35:16 -06:00
Gedare Bloom 10cb664875 spec/build/riscv: add SBI
Enable the imported SBI in the build for riscv/riscv.

Other riscv BSPs would need to add the entry for optincludes
in addition to adding objsbi to their grp.

Updates #3337
2026-03-06 11:31:08 -06:00
Santosh Bala a1c2d988c6 stm32f4: Added family define for f446ze
Fixes issue #5509
2026-03-06 11:00:54 -06:00
Karthikey Kadati 69ecb4abf5 build: Reformat sptests/grp.yml to use 2-space YAML array indentation
Apply mandatory 2-space indentation for YAML arrays in
spec/build/testsuites/sptests/grp.yml to satisfy the RTEMS CI
formatting checks.

No functional change.

Signed-off-by: Karthikey Kadati <karthikey3608@gmail.com>
2026-03-06 22:00:46 +05:30
Gedare Bloom 8166a413c9 spec/build: remove BSP_MINIMUM_TASK_STACK_SIZE
Fixes #5493.
2026-03-03 17:19:53 +00:00
Aaron Nyholm d62d6b659c bsps/zynqmp: Add option to map PCIe address space
Added ability to map PCIe address space on ZynqMP.
2026-03-03 00:32:00 +00:00
82a4e3dfc2 cpukit: Support dates later than 2100
These changes eliminate the year 2100 as a limit for TOD. The new
limit is the year 4096. This limit is not due to any RTEMS limitation
but just before the year 4183 when the rounding error in the length
of the year adds up to an entire day. See
https://de.wikipedia.org/wiki/Schaltjahr for details.

There are still limits on Classic APIs which use the 32-bit rtems_interval
type. This corresponds to the Score Watchdog_Interval type. This impacts
delays, timeouts, and Classic API "after" timers.

Closes #5143

Co-authored-by: Joel Sherrill <joel@rtems.org>
Co-authored-by: Gedare Bloom <gedare@rtems.org>
2026-03-02 10:04:32 -06:00
Joel Sherrill 42df15b27d aarch64/xilinx-zynqmp/optramlen.yml: Correct sentence
Correcting spelling of size by moving an "a" where it should be.
2026-02-27 15:08:09 -06:00
Preetam Das e4a02bc216 bsps/raspberrypi5: ADD SMP support for Pi5 BSP
This updates the PI5 BSP to have SMP Support using PSCI.
2026-02-24 22:14:38 +05:30