Skip to content

Obelix initial support#4

Merged
gmarull merged 52 commits intocoredevices:mainfrom
teslabs:obelix-initial-support-display
Jun 6, 2025
Merged

Obelix initial support#4
gmarull merged 52 commits intocoredevices:mainfrom
teslabs:obelix-initial-support-display

Conversation

@gmarull
Copy link
Member

@gmarull gmarull commented May 30, 2025

No description provided.

@gmarull gmarull force-pushed the obelix-initial-support-display branch 2 times, most recently from 50e72d4 to 5875852 Compare May 30, 2025 12:01
@gmarull gmarull force-pushed the obelix-initial-support-display branch 4 times, most recently from 4100ba9 to 334f349 Compare June 2, 2025 12:42
@gmarull gmarull force-pushed the main branch 2 times, most recently from f7efcd6 to 55ac7aa Compare June 2, 2025 13:27
@gmarull gmarull force-pushed the obelix-initial-support-display branch 5 times, most recently from b62ca09 to 90e5160 Compare June 4, 2025 16:58
gmarull added 4 commits June 4, 2025 19:04
Note that certain settings do not reflect reality yet.
They will be updated as support improves.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Right now build system expects OpenOCD to always be available.
This needs to be fixed: OpenOCD is not the only programming tool
in this world!

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
SF32LB52x has an ARM Cortex STAR-MC1 CPU.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
They are inherited from Asterix for now.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull gmarull force-pushed the obelix-initial-support-display branch 7 times, most recently from f5ad101 to 3d450df Compare June 5, 2025 14:35
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull gmarull force-pushed the obelix-initial-support-display branch from 3d450df to cdf394f Compare June 6, 2025 20:19
gmarull added 3 commits June 6, 2025 22:27
Similar to some STM32 families, assume CM4F for now.
This allows us to boot. The FreeRTOS port needs a bit of
love.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
gmarull added 21 commits June 6, 2025 22:27
Add stubs for non-implemented drivers, so that we can still
build and run on SF32LB52 platforms.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Because we're still pretending to be like asterix.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
As of today, SF32LB needs to run clock configuration at a very early
stage, otherwise things like SystemCoreClock (used by FreeRTOS to
configure the correct Systick rate), will be wrong and lead to
all sorts of weird behaviors.

I think it should not affect other platforms, only some seem to
configure SPI slave for FPGA at that step.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull gmarull force-pushed the obelix-initial-support-display branch from cdf394f to b9d6d0b Compare June 6, 2025 20:27
@gmarull gmarull changed the title [WIP] Obelix initial support Obelix initial support Jun 6, 2025
@gmarull gmarull marked this pull request as ready for review June 6, 2025 20:29
gmarull added 2 commits June 6, 2025 22:32
Adjust MPU driver so that it is kind of functional on ARMv8 MPU.
However, memory layout code relies on implementation details of the
ARMv7 MPU which are not available, so the code actually needs lots of
love to find a better solution to this mess. Also, SF32LB has some
extra MPU requirements that need more adjustments.

Summarizing, MPU is enabled but in SiFli HAL glue code
(system_bf0_ap.c), but obviously not respecting any of the original
PebbleOS memory layouts (e.g. all RAM is RWX by anyone).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull gmarull force-pushed the obelix-initial-support-display branch 2 times, most recently from c12b6de to 47900e8 Compare June 6, 2025 20:33
@gmarull gmarull merged commit f301ae3 into coredevices:main Jun 6, 2025
16 checks passed
@gmarull gmarull deleted the obelix-initial-support-display branch June 6, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant