boards: hifive_unleashed: switch zephyr SRAM region from DDR to L2LIM

Switch from `ram0` to `l2lim` in `zephyr, sram` in board DTS

Add `l2lim` in `support/hifive_unleashed.resc` and targets l2lim
as a work-area in `openocd_hifive_unleashed.cfg`

Signed-off-by: Jakub Wasilewski <jwasilewski@internships.antmicro.com>
Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
Jakub Wasilewski 2024-06-05 12:40:50 +02:00 committed by Fabio Baltieri
commit 939e94076d
2 changed files with 4 additions and 1 deletions

View file

@ -12,7 +12,7 @@
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
zephyr,sram = &l2lim;
};
ram0: ram0@80000000 {

View file

@ -10,6 +10,9 @@ set platform
"""
using "platforms/cpus/sifive-fu540.repl"
l2lim: Memory.MappedMemory @ sysbus 0x08000000
size: 0x2000000
clint:
frequency: 10000000
"""