Questions tagged [chibios]

ChibiOS is a real-time operating system intended for use on embedded platforms like microcontrollers. Use this tag if your question relates to ChibiOS/HAL, ChibiOS/RT or ChibiOS/NIL.

ChibiOS is a real-time operating system intended for use on embedded platforms like microcontrollers.

ChibiOS features a high-performance realtime kernel (ChibiOS/RT), a minimal real-time kernel (ChibiOS/NIL) and a complete hardware abstraction layer (ChibiOS/HAL) for several series of microcontrollers.

The new ChibiOS 3.x release is focused on 32-bit microcontrollers, especially the ones with ARM Cortex-M cores. However, other microcontrollers and a x86 simulation environment is supported as well.

18 questions
12
votes
3 answers

Disabling the STM32 IWDG during debugging

I have a ChibiOS 3.x program on a STM32F4 microcontroller where I use the IWDG watchdog to reset the MCU on errors like this: int main() { iwdgInit(); iwdgStart(&IWDGD, &wd_cfg); while(true) { // ... do stuff } } If I now…
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120
2
votes
3 answers

Struct definition

I have run into a weird code static ROMCONST struct testcase * ROMCONST *patterns[] = { patternbmk, NULL }; This code could be found here. What kind of struct definition/declaration is this? Could someone explain in plain English what does it…
LiTTle
  • 1,811
  • 1
  • 20
  • 37
2
votes
0 answers

Eigen on STM32 works only until a certain size

I am trying to use Eigen C++ library on STM32F4 Discovery embedded board to perform some matrix operations in the future, specifically to do some kalman filtering on sensor data. I tried linking against the standard c++ library and even tried to…
the_parzival
  • 354
  • 3
  • 19
1
vote
0 answers

How can I add/import chibios library for embedded project in visual studio?

I want to use ch.h file from chibios in my project. The embedded project is created and is using HAL drivers for stm32. I want to find a way to add or import chibios library to the current project. My question is that how can I add these embedded…
Mary
  • 71
  • 1
  • 7
1
vote
0 answers

ChibiOS_3.0.2 migration to ChibiOS_20.3.x issues

I'm working on a big project on ChibiOS version 3.0.2 that compiles perfectly (lets call it chibios3)(it is very outdated) so now i'm trying to migrate to ChibiOS version 20.3.x (lest call it chibios20). I took the chibios20 chconf.h, halconf.h,…
stm
  • 41
  • 1
  • 4
1
vote
1 answer

What is RTOS Kernel Locking and When Do You Need to Use It?

I'm using ChibiOS RTOS and I have some questions that might seem basic, but kind of escape me a bit. ChibiOS has a function called: chSysLock(); and chSysUnlock(); It's my understanding that these two functions will lock and unlock the kernel…
cDreamer
  • 385
  • 5
  • 18
1
vote
0 answers

CMSIS real-FFT on 8192 samples in Q15

I need to perform an FFT on a block of 8192 samples on an STM32F446 microcontroller. For that I wanted to use the CMSIS DSP library as it's available easily and optimised for the STM32F4. My 8192 samples of input will ultimately be values from the…
Florent
  • 121
  • 4
  • 11
1
vote
1 answer

Chibios and the SIM900 Shiled

i have this problem, i have STM32 Nucleo L152RE and a Shield SIM 900, now if i write this easy thread all work well, 'static THD_WORKING_AREA(waRead, 128); static THD_FUNCTION(Thread,arg) { (void)arg; …
Ant
  • 281
  • 1
  • 4
  • 19
1
vote
2 answers

Undefined reference to _sbrk in ChibiOS

I'm using ChibiOS 3.x to write an embedded application. When compiling/linking it, I encounter an error message like this: /usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-sbrkr.o): In function…
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120
1
vote
1 answer

Unable to compile ChibiOS with Eigen library

I would like to use ChibiOS with Eigen on a Raspberry Pi, but when I include the Eigen library I got an error: Linking build/ch.elf /opt/arm_gcc/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function…
Mokus
  • 10,174
  • 18
  • 80
  • 122
0
votes
1 answer

What's the right Can Bus settings for STM32F4-Disc for 250 kbps by using nanoFramework?

I'm trying to connect BluePill board (setted up by STM32CubeMX) with STM32F4-Discovery (setted up by ChibiOS and nanoFramework). BluePill has these parameters: APB1 peripherial clock: 24 MHz Prescaler (for Time Quantum): 6 Time Quantum: 250.0 ns…
0
votes
1 answer

How to use and configure ADC of STM32F407G-Discovery with nanoFramework?

I try to use ChibiOS presetted ADCs. Available channels following the specification: PC1, ADC1 IN11 PC2 ADC1 IN12 PA6 ADC2 IN6 PA7 ADC2 IN7 PB0 ADC2 IN8 Temp Sensor ADC1 VrefInt ADC1 Vbatt ADC1 Presetted ADCs from ChibiOS' build source…
Jalui
  • 3
  • 3
0
votes
0 answers

UAVCAN (DroneCAN) node configuration

I've ported uavcan (dronecan) to stm32 nucleo-f413 board. The firmware is chibios based rtos. During node initialization, execution is jumping to "_unhandled_exception" by executing the statement mem_blocks_per_iface = allocator.getBlockCapacity()…
Ullagaddi
  • 21
  • 6
0
votes
0 answers

OpenOCD and stm32

My system: Windows 8, USB 3.0 ports. I want to debug my stm32f7-disco in ChibiStudio. After build I try to connect using OpenOCD and ST-Link, but get the following: Open On-Chip Debugger 0.10.0+dev-00161-g1725abc3c (2017-06-24-20:22) Licensed under…
Robert
  • 371
  • 1
  • 5
  • 15
0
votes
0 answers

Semaphores - Why does this pattern occur?

I'm studying Real Time Systems at college, and I've been using the RTOS ChibiOS with an Arduino to apply what I've been learning. The example code can be found here: source code. // Example of counting semaphore #include // declare…
Max G
  • 125
  • 1
  • 6
1
2