Search found 29 matches

by fotis
Wed Jan 31, 2018 11:07 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3678

Re: Priority order violation - Asserion fails Topic is solved

As a hint: The thread that has higher priority and gets "neglected" is a very simple one. It just blinks an LED, and feeds the watchdog. The code of the thread is the following: void status_th(void __attribute__ ((__unused__)) * arg) { while(1) { //Feed the watchdog timer. SoftWatchdog_tic...
by fotis
Wed Jan 31, 2018 11:00 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3678

Priority order violation - Asserion fails Topic is solved

Hi, I have a assertion failing in Chibios code, and I am trying to troubleshoot it. The check condition is the following: /* The following condition can be triggered by the use of i-class functions in a critical section not followed by a chSchResceduleS(), this means that the current thread has a lo...
by fotis
Wed Apr 13, 2016 10:06 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

OK that demo worked with minor modifications.

I am stripping it down, and comparing it with my code to find the difference.
by fotis
Tue Apr 12, 2016 6:19 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

I do not claim that Chibios is broken. ;) I am just lost, and not sure where to start from. I am using Eclipse, with GCC. On the first try (first post), I used my own makefiles, linkscripts etc. I have checked the code extensively and I cannot find the issue, I suspect a not so obvious/not well docu...
by fotis
Tue Apr 12, 2016 4:39 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

I just tried the provided examples for my board (STM32F103 minimum system board). I used the provided Chibios hal.

It fails in a very similar way. When chThdSleepMilliseconds() is called, an exception occurs.

Seems that it is not a problem just with my builds....
by fotis
Sun Apr 10, 2016 6:59 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

Ok, I set up correctly both stacks, but i still get the same error. The PSP some how get corrupted, after the following code is executed, leading in loading a wrong address (0x00), in the LR, resulting in the hardfault. I can say, by stepping over the disassembly that R0 contains a wrong value, but ...
by fotis
Tue Apr 05, 2016 7:01 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

I checked the documentation, but I couldn't find enough information. Could you provide me with a link? But I am still a bit puzzled. I searched the source code of Chibios for the symbols defined in your linker script about the stacks, and they are not used anywhere. Is the dual stack system, somethi...
by fotis
Mon Apr 04, 2016 10:31 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Re: Chibios startup code

My target MCU does not have a FPU, nor I have enabled it in the cmparams.h file, so this must not be the case.

I am not initializing the dual stack. Is it needed for Chibios? Where I can find more information on this topic?
by fotis
Mon Apr 04, 2016 8:01 pm
Forum: ChibiOS/RT
Topic: Chibios startup code
Replies: 12
Views: 2145

Chibios startup code

Hi, I am developing bare metal applications over the past years, and I am thinking of switching over to Chibios. Currently I am interested in the Cortex-M architectures and most importantly to Cortex-M3 MCUs. I have developed my own HAL, startup code and linker scripts and I am using Eclipse with ma...

Go to advanced search