Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoPoluzzi committed Dec 18, 2024
2 parents b4cbbe4 + 0ea9faf commit 77a8e10
Show file tree
Hide file tree
Showing 91 changed files with 10,024 additions and 2,531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sim-apps-job/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BColors:

# Define parameters for the test_apps.py script
SIMULATOR = "verilator"
SIM_TIMEOUT_S = 120
SIM_TIMEOUT_S = 600
LINKER = "on_chip"
COMPILER = "gcc"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/simulate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
make clean-all
sed 's/is_included: "no",/is_included: "yes",/' -i mcu_cfg.hjson
sed 's/num_channels: 0x1,/num_channels: 0x4,/' -i mcu_cfg.hjson
sed 's/num_channels_per_master_port: 0x1,/num_channels_per_master_port: 0x4,/' -i mcu_cfg.hjson
make mcu-gen MEMORY_BANKS=6
python3 .github/workflows/sim-apps-job/test_apps.py
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ verible:
## @param COMPILER_PREFIX=riscv32-unknown-(default)
## @param ARCH=rv32imc(default), <any RISC-V ISA string supported by the CPU>
app: clean-app
$(MAKE) -C sw PROJECT=$(PROJECT) TARGET=$(TARGET) LINKER=$(LINKER) LINK_FOLDER=$(LINK_FOLDER) COMPILER=$(COMPILER) COMPILER_PREFIX=$(COMPILER_PREFIX) ARCH=$(ARCH) SOURCE=$(SOURCE) \
@$(MAKE) -C sw PROJECT=$(PROJECT) TARGET=$(TARGET) LINKER=$(LINKER) LINK_FOLDER=$(LINK_FOLDER) COMPILER=$(COMPILER) COMPILER_PREFIX=$(COMPILER_PREFIX) ARCH=$(ARCH) SOURCE=$(SOURCE) \
|| { \
echo "\033[0;31mHmmm... seems like the compilation failed...\033[0m"; \
echo "\033[0;31mIf you do not understand why, it is likely that you either:\033[0m"; \
echo "\033[0;31m a) offended the Leprechaun of Electronics\033[0m"; \
echo "\033[0;31m b) forgot to run make mcu-gen\033[0m"; \
echo "\033[0;31mI would start by checking b) if I were you!\033[0m"; \
@echo "\033[0;31mHmmm... seems like the compilation failed...\033[0m"; \
@echo "\033[0;31mIf you do not understand why, it is likely that you either:\033[0m"; \
@echo "\033[0;31m a) offended the Leprechaun of Electronics\033[0m"; \
@echo "\033[0;31m b) forgot to run make mcu-gen\033[0m"; \
@echo "\033[0;31mI would start by checking b) if I were you!\033[0m"; \
exit 1; \
}

Expand Down
4 changes: 2 additions & 2 deletions configs/ci.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
name: code
start: 0
#minimum size for freeRTOS and clang
size: 0x00000D800
size: 0x00000E800
},
{
name: data
start: 0x00000D800
start: 0x00000E800
}
]
}
4 changes: 2 additions & 2 deletions configs/example_interleaved.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
name: code
start: 0
// minimum size for freeRTOS and clang
size: 0x00000D800
size: 0x00000E800
},
{
name: data
start: 0x00000D800
start: 0x00000E800
}
]
}
4 changes: 2 additions & 2 deletions configs/general.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
name: code
start: 0
#minimum size for freeRTOS and clang
size: 0x00000D800
size: 0x00000E800
},
{
name: data
start: 0x00000D800
start: 0x00000E800
}
]
}
4 changes: 2 additions & 2 deletions configs/testall.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
name: code
start: 0
#minimum size for freeRTOS and clang
size: 0x00000D800
size: 0x00000E800
},
{
name: data
start: 0x00000D800
start: 0x00000E800
}
]
}
4 changes: 2 additions & 2 deletions docs/source/How_to/CompileMakefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ compiled and linked are under `sw\build`

## FreeROTS based applications

'X-HEEP' supports 'FreeRTOS' based applications. Please see `sw\applications\blinky_freertos`.
'X-HEEP' supports 'FreeRTOS' based applications. Please see `sw\applications\example_freertos_blinky`.

After that, you can run the command to compile and link the FreeRTOS based application. Please also set 'LINKER' and 'TARGET' parameters if needed.

```
make app PROJECT=blinky_freertos
make app PROJECT=example_freertos_blinky
```

The main FreeRTOS configuration is allocated under `sw\freertos`, in `FreeRTOSConfig.h`. Please, change this file based on your application requirements.
Expand Down
Loading

0 comments on commit 77a8e10

Please sign in to comment.