Re: [PATCH v2 2/2] bsps/stm32h7: Move SDRAM1 to correct memory range

2023-07-12 Thread Cedric Berger
Hello Kinsley, Yes, basically: if you look at page 135 of the reference manual: https://www.st.com/resource/en/reference_manual/rm0399-stm32h745755-and-stm32h747757-advanced-armbased-32bit-mcus-stmicroelectronics.pdf SDRAM BANK 1 is at 0xc000 (behaving like device memory, not executable)

Re: [PATCH v2 2/2] bsps/stm32h7: Move SDRAM1 to correct memory range

2023-07-12 Thread Kinsey Moore
Ok, it sounds like that's quite a bit more involved than just updating this mapping so I'll drop this patch for the time being. Kinsey On 7/12/2023 11:12 AM, Karel Gardas wrote: Hello Kinsley, you are indeed right. I've not fixed this bit since it also requires fixes in linker scripts and

Re: [PATCH v2 2/2] bsps/stm32h7: Move SDRAM1 to correct memory range

2023-07-12 Thread Karel Gardas
Hello Kinsley, you are indeed right. I've not fixed this bit since it also requires fixes in linker scripts and additional sdram region for sdram2 remap. E.g. Original Sebastian's code is using SDRAM_1 as a remap of SDRAM_2. Linker script(s) then are using SDRAM_1 as an executable region

[PATCH v2 1/2] arm/stm32h7: Add support for STM32H750B-DK

2023-07-12 Thread Kinsey Moore
This adds support for the STM32H750B-DK discovery kit. This kit includes a built-in STLINKv3 debugger which provides a USB serial bridge for USART3. USART1 is routed to the Arduino header and USART2 is routed to the STMOD connector. This BSP reuses what would otherwise be duplicated files from the

[PATCH v2 2/2] bsps/stm32h7: Move SDRAM1 to correct memory range

2023-07-12 Thread Kinsey Moore
According to the documentation in STM reference manuals RM0399 and RM0433, the standard memory space for SDRAM bank 1 is 0xc000 to 0xcfff. --- spec/build/bsps/arm/stm32h7/linkcmdsmemory.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-12 Thread Gedare Bloom
On Wed, Jul 12, 2023 at 8:06 AM Joel Sherrill wrote: > > > Pavel this was filed as https://devel.rtems.org/ticket/4903. The ticket > submitter > didn't give a patch, just a code change snippet and explanation. Zack turned > it into > a patch. You will need to post that on the ticket to get the

Re: [PATCH] arm/stm32h7: Add support for STM32H750B-DK

2023-07-12 Thread Kinsey Moore
On 7/11/2023 4:58 PM, Karel Gardas wrote: On 7/11/23 23:26, Kinsey Moore wrote: I'm not sure that anything I've done for testing would have verified that the SDRAM is operating properly. I'll have to pull it back out and give it a shot. If you write just few char or integer into the

Re: [PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-12 Thread Joel Sherrill
Pavel this was filed as https://devel.rtems.org/ticket/4903. The ticket submitter didn't give a patch, just a code change snippet and explanation. Zack turned it into a patch. You will need to post that on the ticket to get the submitter's feedback. I hope you don't mind copying that to the

Re: [PATCH v3 12/38] bsps/grlib: Use GRLIB definition of GRSPWROUTER

2023-07-12 Thread Sebastian Huber
On 12.07.23 15:49, Sebastian Huber wrote: + /** + * @brief See @ref RTEMSDeviceGRSPWROUTERGPO0. + */ + uint32_t gpo0; + + /** + * @brief See @ref RTEMSDeviceGRSPWROUTERGPO1. + */ + uint32_t gpo1; + + /** + * @brief See @ref RTEMSDeviceGRSPWROUTERGPO2. + */ + uint32_t gpo2; + +

Re: [PATCH v2 01/32] bsps/grlib: Add generated headers

2023-07-12 Thread Sebastian Huber
Hello Martin, thanks a lot for your thorough review. I tried to address your review comments in v3: https://lists.rtems.org/pipermail/devel/2023-July/075713.html -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone:

[PATCH v3 33/38] bsps/sparc: Remove BSP_POWER_DOWN_AT_FATAL_HALT

2023-07-12 Thread Sebastian Huber
Remove the BSP_POWER_DOWN_AT_FATAL_HALT BSP option. Applications should do the customization of the system termination with an initial fatal extension. --- bsps/sparc/leon3/start/bsp_fatal_halt.c | 50 --- bsps/sparc/shared/start/bsp_fatal_halt.c | 52

[PATCH v3 38/38] bsp/leon3: Simplify shutdown

2023-07-12 Thread Sebastian Huber
Do not wait for other processors to halt. --- bsps/sparc/leon3/start/bspclean.c | 63 +-- .../bsps/fatal-sparc-leon3-shutdown.yml | 3 +- 2 files changed, 4 insertions(+), 62 deletions(-) diff --git a/bsps/sparc/leon3/start/bspclean.c

[PATCH v3 31/38] bsp/leon3: Use LEON3_GPTIMER_BASE

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/start/cpucounter.c | 4 1 file changed, 4 insertions(+) diff --git a/bsps/sparc/leon3/start/cpucounter.c b/bsps/sparc/leon3/start/cpucounter.c index 46e0b304e5..05ac62ace8 100644 --- a/bsps/sparc/leon3/start/cpucounter.c +++ b/bsps/sparc/leon3/start/cpucounter.c @@

[PATCH v3 30/38] bsp/leon3: Add LEON3_IRQAMP_EXTENDED_INTERRUPT

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/include/bsp/irqimpl.h| 4 bsps/sparc/leon3/start/eirq.c | 8 spec/build/bsps/sparc/leon3/grp.yml | 2 ++ .../bsps/sparc/leon3/optirqampextirq.yml | 19 +++ 4 files changed, 33 insertions(+) create mode

[PATCH v3 34/38] bsp/leon3: Fix group memberships

2023-07-12 Thread Sebastian Huber
Update #3706. --- bsps/sparc/leon3/gnatsupp/gnatsupp.c | 2 +- bsps/sparc/leon3/include/bsp/irq.h | 2 +- bsps/sparc/leon3/include/leon.h | 2 +- bsps/sparc/leon3/include/tm27.h | 2 +- bsps/sparc/leon3/start/bspclean.c| 2 +- bsps/sparc/leon3/start/bspsmp.c | 2 +-

[PATCH v3 25/38] bsp/leon3: Add LEON3_HAS_ASR_22_23_UP_COUNTER

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c | 6 ++ bsps/sparc/leon3/include/bsp/leon3.h| 2 ++ bsps/sparc/leon3/start/cpucounter.c | 8 spec/build/bsps/sparc/leon3/grp.yml | 2 ++ spec/build/bsps/sparc/leon3/optasrupcnt.yml | 17 + 5

[PATCH v3 24/38] bsp/leon3: Add LEON3_IRQAMP_PROBE_TIMESTAMP

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c | 198 bsps/sparc/leon3/start/cpucounter.c | 103 ++ spec/build/bsps/sparc/leon3/grp.yml | 2 + spec/build/bsps/sparc/leon3/optirqampts.yml | 22 +++ 4 files changed, 207 insertions(+), 118

[PATCH v3 18/38] bsp/leon3: Use new GPTIMER register block API

2023-07-12 Thread Sebastian Huber
--- bsps/shared/grlib/btimer/gptimer.c | 178 +-- bsps/sparc/leon3/btimer/btimer.c | 13 +- bsps/sparc/leon3/btimer/watchdog.c | 27 ++-- bsps/sparc/leon3/clock/ckinit.c | 33 ++--- bsps/sparc/leon3/include/bsp/leon3.h | 44 ++-

[PATCH v3 28/38] bsp/leon3: Simplify fatal error handling

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/include/bsp/leon3.h | 12 bsps/sparc/leon3/start/bspclean.c| 89 +++- bsps/sparc/leon3/start/bspsmp.c | 16 + 3 files changed, 77 insertions(+), 40 deletions(-) diff --git a/bsps/sparc/leon3/include/bsp/leon3.h

[PATCH v3 26/38] bsp/leon3: Add LEON3_L2CACHE_BASE

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/start/cache.c| 36 ++- spec/build/bsps/sparc/leon3/grp.yml | 2 ++ .../build/bsps/sparc/leon3/optl2cachebase.yml | 19 ++ 3 files changed, 49 insertions(+), 8 deletions(-) create mode 100644

[PATCH v3 23/38] bsp/leon3: Add LEON3_IRQAMP_BASE

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/include/bsp/irqimpl.h| 6 ++ bsps/sparc/leon3/start/amba.c | 9 - spec/build/bsps/sparc/leon3/grp.yml | 2 ++ spec/build/bsps/sparc/leon3/optirqampbase.yml | 19 +++ 4 files changed, 35 insertions(+), 1

[PATCH v3 22/38] bsp/leon3: Add LEON3_GPTIMER_BASE

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/include/bsp/leon3.h | 4 bsps/sparc/leon3/start/amba.c | 4 spec/build/bsps/sparc/leon3/grp.yml | 2 ++ .../build/bsps/sparc/leon3/optgptimerbase.yml | 20 +++ 4 files changed, 30 insertions(+) create mode

[PATCH v3 20/38] bsp/leon3: Add LEON3_APBUART_BASE

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/console/printk_support.c | 37 +++ bsps/sparc/leon3/include/bsp/leon3.h | 5 +++ bsps/sparc/leon3/include/leon.h | 2 + spec/build/bsps/sparc/leon3/grp.yml | 2 + .../build/bsps/sparc/leon3/optapbuartbase.yml | 20

[PATCH v3 21/38] bsp/leon3: LEON3_PLB_FREQUENCY_DEFINED_BY_GPTIMER

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c| 9 +++- bsps/sparc/leon3/include/bsp/leon3.h | 27 ++ bsps/sparc/leon3/start/cpucounter.c| 8 +++ spec/build/bsps/sparc/leon3/grp.yml| 2 ++ spec/build/bsps/sparc/leon3/optplbfreq.yml | 21

[PATCH v3 12/38] bsps/grlib: Use GRLIB definition of GRSPWROUTER

2023-07-12 Thread Sebastian Huber
Rename parts to match with GRLIB naming. Update #4842. --- bsps/include/grlib/grspwrouter-regs.h | 1925 + bsps/include/grlib/spwrmap-regs.h | 1443 -- 2 files changed, 1925 insertions(+), 1443 deletions(-) create mode 100644

[PATCH v3 16/38] bsp/leon3: Use new IRQ(A)MP register block API

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c| 11 ++- bsps/sparc/leon3/include/bsp/irq.h | 1 + bsps/sparc/leon3/include/bsp/irqimpl.h | 35 ++- bsps/sparc/leon3/include/leon.h| 63 ++--- bsps/sparc/leon3/start/amba.c | 11 ++-

[PATCH v3 13/38] bsps: Use new APBUART register block API

2023-07-12 Thread Sebastian Huber
--- bsps/include/grlib/apbuart_termios.h | 4 +- bsps/shared/grlib/uart/apbuart_cons.c | 136 +- bsps/shared/grlib/uart/apbuart_polled.c | 52 + bsps/shared/grlib/uart/apbuart_termios.c | 49 +--- bsps/sparc/leon3/console/console.c| 2 +-

[PATCH v3 37/38] validation: Test sparc/leon3 BSP family

2023-07-12 Thread Sebastian Huber
--- ...arc-leon3-cache-snooping-disabled-boot.yml | 24 ++ ...eon3-cache-snooping-disabled-secondary.yml | 25 +++ ...fatal-sparc-leon3-clock-initialization.yml | 21 ++ .../bsps/fatal-sparc-leon3-shutdown.yml | 24 ++ .../validation/bsps/objsparcgr712rc.yml | 14 ++

[PATCH v3 17/38] bsp/leon3: Move system control register support

2023-07-12 Thread Sebastian Huber
Move, document, and reformat support functions from to . --- bsps/sparc/leon3/include/bsp/leon3.h | 173 +++ bsps/sparc/leon3/include/leon.h | 100 +--- bsps/sparc/leon3/start/bspsmp.c | 1 - bsps/sparc/leon3/start/bspstart.c| 2 +-

[PATCH v3 35/38] bsp/leon3: Add specialized target hash

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/start/gettargethash.c | 71 ++ spec/build/bsps/sparc/leon3/obj.yml| 2 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 bsps/sparc/leon3/start/gettargethash.c diff --git a/bsps/sparc/leon3/start/gettargethash.c

[PATCH v3 15/38] bsp/leon3: Move and simplify bsp_irq_fixup()

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/erc32/include/bsp/irqimpl.h | 63 bsps/sparc/erc32/include/erc32.h | 5 -- bsps/sparc/leon2/include/bsp/irqimpl.h | 63 bsps/sparc/leon2/include/leon.h | 5 -- bsps/sparc/leon3/clock/ckinit.c | 4 +-

[PATCH v3 36/38] validation: grlib

2023-07-12 Thread Sebastian Huber
--- .../testsuites/validation/bsps/objgrlib.yml | 16 + .../validation/bsps/validation-bsp-0.yml | 23 ++ spec/build/testsuites/validation/grp.yml | 3 + .../validation/bsps/ts-validation-bsp-0.c | 73 .../tc-dev-grlib-apbuart-inbyte-nonblocking.c | 348

[PATCH v3 29/38] bsp/leon3: Add LEON3_PROBE_ASR_22_23_UP_COUNTER

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c | 5 + bsps/sparc/leon3/start/cpucounter.c | 5 + spec/build/bsps/sparc/leon3/grp.yml | 2 ++ .../bsps/sparc/leon3/optasrupcntprobe.yml | 19 +++ 4 files changed, 31 insertions(+) create mode

[PATCH v3 27/38] bsp/leon3: Move leon3_power_down_loop()

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/include/bsp/leon3.h| 6 ++ bsps/sparc/leon3/include/leon.h | 2 -- bsps/sparc/leon3/start/bsp_fatal_halt.c | 2 +- bsps/sparc/leon3/start/bspclean.c | 3 +-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH v3 32/38] bsp/leon3: Enable up-counter conditionally

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/clock/ckinit.c | 5 +++-- bsps/sparc/leon3/start/cpucounter.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bsps/sparc/leon3/clock/ckinit.c b/bsps/sparc/leon3/clock/ckinit.c index 93826416c0..4767d57347 100644 ---

[PATCH v3 14/38] bsp/leon3: Untangle interrupt controller support

2023-07-12 Thread Sebastian Huber
Separate the probing of the interrupt controller from the initialization. --- bsps/sparc/leon3/include/bsp/irqimpl.h | 83 ++ bsps/sparc/leon3/include/leon.h| 10 +--- bsps/sparc/leon3/start/amba.c | 9 --- bsps/sparc/leon3/start/eirq.c | 15

[PATCH v3 10/38] bsps/grlib: Use GRLIB definition of GRSPW2

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/grspw2-regs.h | 1122 ++ 1 file changed, 982 insertions(+), 140 deletions(-) diff --git a/bsps/include/grlib/grspw2-regs.h b/bsps/include/grlib/grspw2-regs.h index 8e9661edc2..6293230cfe 100644 ---

[PATCH v3 19/38] bsp/leon3: Use new L2CACHE register block API

2023-07-12 Thread Sebastian Huber
--- bsps/sparc/leon3/start/cache.c | 38 -- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/bsps/sparc/leon3/start/cache.c b/bsps/sparc/leon3/start/cache.c index 676f591857..ed6fb5733d 100644 --- a/bsps/sparc/leon3/start/cache.c +++

[PATCH v3 09/38] bsps/grlib: Move GR740-specific registers

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/gr740thsens-regs.h | 226 -- bsps/include/grlib/grgprbank-regs.h | 677 - .../leon3/include/bsp/gr740-bootstrap-regs.h} | 78 +- .../leon3/include/bsp/gr740-iopll-regs.h | 679 ++

[PATCH v3 08/38] bsps/grlib: Expand GRCLKGATE register bit fields

2023-07-12 Thread Sebastian Huber
Use the maximum width supported by the GRLIB even if this exceeds the configuration limits of a particular IP instance. Update #4842. --- bsps/include/grlib/grclkgate-regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsps/include/grlib/grclkgate-regs.h

[PATCH v3 11/38] bsps/grlib: Remove obsolete header file

2023-07-12 Thread Sebastian Huber
This header file was an incomplete duplicate of . Update #4842. --- bsps/include/grlib/grspwrouter-regs.h | 890 -- 1 file changed, 890 deletions(-) delete mode 100644 bsps/include/grlib/grspwrouter-regs.h diff --git a/bsps/include/grlib/grspwrouter-regs.h

[PATCH v3 02/38] bsps/grlib: Fix FTMCTRL - MCFG1 bit fields

2023-07-12 Thread Sebastian Huber
There was an off by one error in all bit fields. Add the R flag. Update #4842. --- bsps/include/grlib/ftmctrl-regs.h | 127 -- 1 file changed, 70 insertions(+), 57 deletions(-) diff --git a/bsps/include/grlib/ftmctrl-regs.h b/bsps/include/grlib/ftmctrl-regs.h index

[PATCH v3 00/38] Integrate pre-qualified LEON3 BSP

2023-07-12 Thread Sebastian Huber
The register block specification were recently integrated in the RTEMS Software Engineering manual. Now it is time to integrate the pre-qualified LEON3 BSP which uses the generated GRLIB header files. The existing tests in the RTEMS test suite are basically BSP independent. This patch set

[PATCH v3 04/38] bsps/grlib: Fix SpaceWire RMAP - Product ID

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/spwrmap-regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/include/grlib/spwrmap-regs.h b/bsps/include/grlib/spwrmap-regs.h index a75b02a39b..7a19f4a2d3 100644 --- a/bsps/include/grlib/spwrmap-regs.h +++

[PATCH v3 05/38] bsps/grlib: Expand SpaceWire port bit fields

2023-07-12 Thread Sebastian Huber
Use the maximum width supported by the SpaceWire standard even if this exceeds the configuration limits of a particular IP instance. Update #4842. --- bsps/include/grlib/spwpnp-regs.h | 2 +- bsps/include/grlib/spwrmap-regs.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v3 07/38] bsps/grlib: Add GRCAN - CanTxIRQ

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/grcan-regs.h | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/bsps/include/grlib/grcan-regs.h b/bsps/include/grlib/grcan-regs.h index fc69f4519e..85a5e56367 100644 --- a/bsps/include/grlib/grcan-regs.h +++

[PATCH v3 06/38] bsps/grlib: Fix SPWTDP register name

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/spwtdp-regs.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/bsps/include/grlib/spwtdp-regs.h b/bsps/include/grlib/spwtdp-regs.h index b69fb5b0a5..2e951e4544 100644 --- a/bsps/include/grlib/spwtdp-regs.h

[PATCH v3 03/38] bsps/grlib: Fix GRGPIO - IRQMAP bit fields

2023-07-12 Thread Sebastian Huber
Update #4842. --- bsps/include/grlib/grgpio-regs.h | 37 +--- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/bsps/include/grlib/grgpio-regs.h b/bsps/include/grlib/grgpio-regs.h index b1768ff92e..8c3c7ffb16 100644 --- a/bsps/include/grlib/grgpio-regs.h

Re: [PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-12 Thread Pavel Pisa
Hello Zack and Gedare, On Tuesday 11 of July 2023 19:52:27 Gedare Bloom wrote: > Thanks for the patch. Someone should probably test it, or identify in > the documentation why this calculation was off-by-1. Pavel, any clues? > On Sun, Jul 9, 2023 at 10:09 PM zack wrote: > > Fixes #4903 > > diff

Re: [PATCH rtems-source-builder] bare/config: add renode rsb installation config

2023-07-12 Thread Joel Sherrill
On Tue, Jul 11, 2023 at 1:01 PM Gedare Bloom wrote: > This probably requires some documentation, as it requires several > packages that are not going to be typically installed already by RTEMS > users/developers. Chris, is there any place to document required > dependencies/packages for a build

Re: Need community suggestions for a new generic GPIO API

2023-07-12 Thread Joel Sherrill
On Tue, Jul 11, 2023 at 12:50 PM Gedare Bloom wrote: > On Tue, Jul 11, 2023 at 7:05 AM Christian MAUDERER > wrote: > > > > Hello Utkarsh, > > > > please be a bit careful with GPIO and pin functions. That's a quite > > difficult topic. > > > > Some controller manufacturers mix these functions.

[PATCH rtems-source-builder v2] bare/config: add renode rsb installation config

2023-07-12 Thread Muhammad Sulthan Mazaya
Use the design of how qemu handle config files + add version number to the config file name. --- bare/config/devel/renode-1.13.3-1.cfg | 11 ++ bare/config/devel/renode.bset | 7 source-builder/config/renode-1.13.3.cfg | 7