Search found 823 matches

by steved
Sat Apr 08, 2023 7:57 pm
Forum: ChibiStudio
Topic: Linux debug configuration
Replies: 14
Views: 6470

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: 6470

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: 6470

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: 6470

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: 2997

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: 2997

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: 2997

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: 2997

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...
by steved
Mon Apr 03, 2023 6:24 pm
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 2997

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

Disabling initialization is already possible STM32_NO_INIT=TRUE. Although that doesn't skip GPIO initialisation; just clocks. (Not that it should make a difference - but I might try initialising the GPIO tomorrow). I don't see how a thread swap could cause that, it is just code after all. Could cac...
by steved
Mon Apr 03, 2023 3:56 pm
Forum: STM32 Support
Topic: Initialisation change 19.1.3 to 20.3.2 Topic is solved
Replies: 11
Views: 2997

Re: Initialisation change 19.1.3 to 20.3.2 Topic is solved

Definitely not! (And I have proved it, during debug). I override hal_init() with my own routine which leaves out all the clock initialisation stuff and selectively resets peripherals; there has been no relevant change in the "official" hal_init.c between 19.1.3 and 21.11.3. (I declare hal_...

Go to advanced search