Search found 13587 matches

by Giovanni
Tue Jun 15, 2021 7:54 pm
Forum: Small Change Requests
Topic: How to abort USB transmit?
Replies: 8
Views: 1351

Re: How to abort USB transmit?

Hi, There are the STM32 USBv1 and the AVR official drivers (which I don't even handle), some others are not in the official repository. This is the problem with changes that break the LLD API, it needs a way to fit on top of current, unmodified LLDs. LLDs could export something like USB_LLD_SUPPORTS...
by Giovanni
Tue Jun 15, 2021 7:25 pm
Forum: General Support
Topic: undefined ref to _exit even though syscalls.c is added to CSRC
Replies: 2
Views: 21

Re: undefined ref to _exit even though syscalls.c is added to CSRC

Hi,

In that version syscalls.c is not complete, you should update to 20.3.3 or 21.6.0.

Giovanni
by Giovanni
Tue Jun 15, 2021 7:05 pm
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

You could 1st check if board.mk exists then include it, this way make can proceed if the file is not yet/more there.

Giovanni
by Giovanni
Tue Jun 15, 2021 7:04 pm
Forum: User Projects
Topic: A text editor for ChbiOs
Replies: 2
Views: 29

Re: A text editor for ChbiOs

Hi,

So you are running the editor IN ChibiOS? that is a first for sure :-)

Giovanni
by Giovanni
Tue Jun 15, 2021 6:32 pm
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

Well, it depends, board files included in the OS should not be deleted and there should be no point in regenerating those. I imagine you need to clean only custom board files, not sure how to handle that, perhaps not deleting files whose path is prefixed by the $(CHIBIOS) string and not deleting .mk...
by Giovanni
Tue Jun 15, 2021 4:01 pm
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

Nevermind.... This should be it: BOARD_PATH := $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_G474RE BOARD_FILES := $(BOARD_PATH)/board.c $(BOARD_PATH)/board.h $(BOARD_PATH)/board.mk PRE_MAKE_ALL_RULE_HOOK : $(BOARD_FILES) $(BOARD_FILES) &: $(BOARD_PATH)/cfg/board.chcfg $(BOARD_PATH)/cfg/board.fmpp @echo ...
by Giovanni
Tue Jun 15, 2021 3:47 pm
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

It is fixed by making all asm files include something, for example by adding: #define _FROM_ASM_ #include "cmparams.h" // This includes board.h too This is probably caused by how dependencies files are generated by the compiler, not sure yet if/how it can be fixed somehow in rules.mk. Giov...
by Giovanni
Tue Jun 15, 2021 3:36 pm
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

I tried before or after, it works the same, same problem with the late .S compilation, really no idea about that yet, very strange.

For sure it does not need recompilation so it is safe after the 1st make all.

Giovanni
by Giovanni
Tue Jun 15, 2021 9:30 am
Forum: General Support
Topic: PRE_MAKE_ALL_RULE_HOOK to generate board files
Replies: 13
Views: 74

Re: PRE_MAKE_ALL_RULE_HOOK to generate board files

Hi Faisal, Try this: BOARD_PATH := $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_G474RE BOARD_FILES := $(BOARD_PATH)/board.c $(BOARD_PATH)/board.h PRE_MAKE_ALL_RULE_HOOK : $(BOARD_FILES) $(BOARD_FILES) &: $(BOARD_PATH)/cfg/board.chcfg $(BOARD_PATH)/cfg/board.fmpp @echo "Rebuilding board files" ...
by Giovanni
Tue Jun 15, 2021 5:09 am
Forum: Small Change Requests
Topic: How to abort USB transmit?
Replies: 8
Views: 1351

Re: How to abort USB transmit?

Hi,

The only concern is that it would break other USB implementations some of which I don't manage.

Giovanni

Go to advanced search