Search found 825 matches

by steved
Sun Apr 09, 2023 8:47 am
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Re: Linux debug configuration

Hi, Yes, the current setup is to have one workspace for each version. You could mix projects but then you could not rely on the workspace variable CHIBIOS in project virtual folders (board, os, test, etc). Giovanni Thanks. Another question, I'm afraid. When running openOCD, do you run it as root? O...
by steved
Sat Apr 08, 2023 10:19 pm
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Re: Linux debug configuration

Found it now; I'd forgotten that in Linux, file names beginning with a dot are hidden until disabled! Sorry about that. It does raise another question, though. The method of importing the "whole tree" project suggests that it could be linked to a specific Chibi version. Is this the case? (...
by steved
Sat Apr 08, 2023 7:57 pm
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Re: Linux debug configuration

Hi, There is a small script for creating debug configurations under the tools menu: "Create OpenOCD Debug Configuration (pre-select elf file into a project)". You only see this if you keep the "whole tree" project opened. This is the point - I can't open the "whole tree&quo...
by steved
Sat Apr 08, 2023 8:41 am
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Re: Linux debug configuration

Yes, you need to delete all projects from workspace and re-import them (at least those you need). Make sure to do the "import without copy" or you will have to adjust makefiles relative CHIBIOS path too. I've already reimported and adjusted "normal" projects; that's not a proble...
by steved
Fri Apr 07, 2023 10:48 pm
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Re: Linux debug configuration

Is the "ChibiOS (whole tree)" project open in your workspace? configurations are in there. If not present then import it from the ChibiOS tree root. The "ChibiOS (whole tree)" project is present in the project explorer; however on attempting to open it the message "can't fi...
by steved
Thu Apr 06, 2023 11:07 pm
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6763

Linux debug configuration

I've installed the latest ChibiStudio Linux distribution into ~/ChibiStudio (a delightfully simple operation to get running) on Mint. However I don't seem to get an option to create debug configurations (AIUI highlight the .elf file and an option becomes available somewhere?) Is there some bit of co...
by steved
Thu Apr 06, 2023 9:08 am
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 3075

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

It meant that peripheral interrupts were never set up so, for example, the UART would never output characters even when interrupts were enabled. [Incidentally, a fuller explanation of the function of STM32_UART4_SUPPRESS_ISR and friends (stm32_isr.h) could be useful; my initial assumption from the n...
by steved
Thu Apr 06, 2023 9:01 am
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 3075

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

Found it!

Interrupt initialisation was moved to hal_lld_init() - managed to miss the visual comparison initially (the only bit I couldn't use Winmerge for).
by steved
Tue Apr 04, 2023 1:19 pm
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 3075

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

PROCESS_STACK_SIZE is the main() function stack, do you have other threads? you should check those stacks. Also try to increase PORT_IDLE_THREAD_STACK_SIZE, the default was 16 in 20.3.x, later it was defaulted to 64. Giovanni No other threads at all; all runs off main(). It's a relatively simple pr...
by steved
Tue Apr 04, 2023 10:41 am
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 3075

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

Could it be something as trivial as a stack overflow? the newer version could have an higher usage, context switch is where stacks reach their lowest usually (pushing all registers on switch). Giovanni Very much doubt it - I've already added 0x400 to what was probably a generous allocation of 0x1c0...

Go to advanced search