Search found 25 matches

by ceremcem
Mon Mar 18, 2019 12:37 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 11
Views: 298

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: 11
Views: 298

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

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: 11
Views: 298

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: 11
Views: 298

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: 11
Views: 298

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

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: 11
Views: 298

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...
by ceremcem
Thu Mar 07, 2019 12:57 am
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 11
Views: 298

chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

In this example , I'm experiencing a strange issue: 1. [PROBLEM] When a breakpoint is put on app/main.c:44, GDB stops at the breakpoint, when I "continue" it continues and and never reaches to app/main.c:44 again, the application "crashes". I would expect GDB to stop at the same ...
by ceremcem
Wed Mar 06, 2019 1:36 pm
Forum: Bug Reports
Topic: [PATCH] added missing STM32F103x8 definition
Replies: 4
Views: 109

[PATCH] added missing STM32F103x8 definition

Regarding to the comment , I'm providing the patch here: From 6bc2bd8fc3871dea3c6410587b9ee4966096e15a Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN <cem@aktos.io> Date: Wed, 6 Mar 2019 15:29:32 +0300 Subject: [PATCH] added missing STM32F103x8 definition --- os/common/ext/ST/STM32F1xx/stm32f1xx.h |...

Go to advanced search