Forum > FPC development

RISCV32 Embedded -> Adding Microcontroller

<< < (2/2)

kupferstecher:
An other thing, the device has a hardware stack for interrupts.
If enabled, the registers don't need to be pushed/popped by code. Is there any way to tell the compiler not to save registers in a certain procedure (interrupt handler)?

kupferstecher:
One more question (5):

When I build the cross-compiler, the according makefile for riscv32-embedded is not created/updated.

-> Is this a bug or intended behaviour or am I doing something wrong?

The build output is as follows:


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Required packages for embedded-riscv32:  Required dirs for riscv32-embedded: compiler rtl utils packages installer   Subdir: compiler/Makefile.fpc   Subdir: rtl/Makefile.fpc   Subdir: utils/Makefile.fpc   Subdir: packages/Makefile.fpc   Subdir: installer/Makefile.fpc
but the makefile with the device file is in the directory \rtl\embedded, which is not part of the list. I had to translate it 'manually' with

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpcmake.exe -w -Tall
This is the command I use for building the cross compiler:

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---%MAKE_PATH%\make.exe clean crossall crossinstall FPC=%PPCBIN% OS_TARGET=embedded CPU_TARGET=riscv32 SUBARCH=rv32imac INSTALL_PREFIX=%INSTALL_PATH% CROSSBINDIR=%GNU_BIN_PATH% CROSSOPT="-O3 -XX -CX" BINUTILSPREFIX=riscv-embedded-

PascalDragon:

--- Quote from: kupferstecher on May 30, 2022, 12:37:34 pm ---When I build the cross-compiler, the according makefile for riscv32-embedded is not created/updated.
--- End quote ---

The makefiles are only updated manually when something in a Makefile.fpc or in the general template used by fpcmake changed.

kupferstecher:
OK, I added that in the wiki.
Thanks!

Navigation

[0] Message Index

[*] Previous page

Go to full version