Search found 27 matches

by ceremcem
Mon Apr 08, 2019 8:16 am
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Hi Giovanni, I downloaded https://developer.arm.com/-/media/Files/downloads/gnu-rm/5_3-2016q1/gccarmnoneeabi532016q120160330linuxtar.bz2?revision=417e2623-c259-4a12-aacc-c87200b569c7?product=GNU%20Arm%20Embedded%20Toolchain,32-bit,,Linux,5-2016-q1-update which is the same binary as I downloaded from...
by ceremcem
Sun Apr 07, 2019 11:42 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

For those who face with this problem in the future: 1. Compiling the gcc-arm-none-eabi-5.4.1 from source seems very complicated and currently I've no success: https://unix.stackexchange.com/q/511072/65781 2. Downloading the precompiled toolchain from https://launchpad.net/gcc-arm-embedded/+milestone...
by ceremcem
Mon Mar 18, 2019 12:37 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

@Giovanni Would you please cherry pick the sanity check https://github.com/ChibiOS/ChibiOS/comm ... 7b239221bd into stable_18 branch?
by ceremcem
Mon Mar 18, 2019 12:24 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Today the example code didn't run in anyway (with or without debugging). I traced the execution and it turns out it doesn't make a context switch after stepping into chThdSleepX() function. I switched to stable_19.1 branch to take my chances and luckily it produced the following warnings : /home/cer...
by ceremcem
Sat Mar 16, 2019 10:05 pm
Forum: Bug Reports
Topic: [PATCH] added missing STM32F103x8 definition
Replies: 4
Views: 184

Re: [PATCH] added missing STM32F103x8 definition

Hi, Usually we do not fix vendor files, the fix would be lost next time we update the headers. Giovanni That's reasonable. Perhaps the best workaround is to define the x8 as an xB in board.h. Current examples in ChibiOS/demos stick to this approach. However, I find that quite confusing because it b...
by ceremcem
Tue Mar 12, 2019 8:51 am
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Hi mobyfab I used "DBGMCU->APB1FZ |= DBGMCU_APB1_FZ_DBG_TIM3_STOP;" as I'm using TIM_3 as System Timer . However, when I disconnect the NRST pin from the debugger, this setup doesn't work as expected (It only reaches first breakpoint, when I continue it stucks). Here is the reproduction st...
by ceremcem
Sat Mar 09, 2019 6:42 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Above trick (restarting GDB) is unnecessary since this commit because apparently there is "monitor jtag_reset" command available. Adding this "reset" command inside "reload" command made this issue almost invisible since it resets the board on every "reload". ...
by ceremcem
Fri Mar 08, 2019 10:27 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

electronic_eel wrote:Do you activate any powersaving mode in the idle thread or somewhere else?


No, I do nothing consciously. CH_CFG_IDLE_ENTER_HOOK is empty, as it can be seen here.
by ceremcem
Fri Mar 08, 2019 4:07 pm
Forum: User Projects
Topic: ChibiOS Project Boilerplate for Linux
Replies: 0
Views: 189

ChibiOS Project Boilerplate for Linux

Hi, I'm not a user of Chibios Studio because I prefer command line tools. Since a ChibiOS project requires special attention, especially in a production environment, I created a boilerplate: https://github.com/ceremcem/chibi-project Benefits are as follows: 1. Takes care of separate inclusion folder...
by ceremcem
Thu Mar 07, 2019 11:33 am
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 15
Views: 534

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Hi Giovanni, Setting CH_CFG_ST_TIMEDELTA to zero didn't help in the first attempt and then, it magically started working as expected while debugging. Currently leaving CH_CFG_ST_TIMEDELTA as is has no effect. It turns out the original code works without any modification but needs an interesting tric...

Go to advanced search