Search found 5 matches

by l0wside
Thu Jan 16, 2020 10:24 pm
Forum: General Support
Topic: Stack overflow: different between main thrad and other thread?
Replies: 3
Views: 5753

Re: Stack overflow: different between main thrad and other thread?

Hi Giovanni,

sorry for leaving out some details.

⋅ The moment of observation is after the program has run into the stack overflow assertion
⋅ Using the CH_DBG_FILL_THREADS option, I can see that there is plenty of room left. The lowermost entry is about 150 bytes below the ...
by l0wside
Thu Jan 16, 2020 9:26 pm
Forum: General Support
Topic: Stack overflow: different between main thrad and other thread?
Replies: 3
Views: 5753

Stack overflow: different between main thrad and other thread?

Developing on an STM32L152RE Nucleo, I have observed the following strange behavior:
I am reading audio data from an SD card and writing the same to I2S. I currently have only one thread, which reads the data from the card. The (ISR-triggered) I2S callback then requests reading the next chunk of ...
by l0wside
Tue Dec 17, 2019 10:03 am
Forum: ChibiOS/HAL
Topic: I2S output on STM32: small HOWTO
Replies: 0
Views: 7581

I2S output on STM32: small HOWTO

While I have got to like ChibiOS and its HAL, setting up I2S to output data was not only fun. All I could find were some quite old threads in the forum, which were only of limited help.So I am sharing my notes how I achieved to get some sound from my STM32L152. Other STM32 devices are likely similar ...
by l0wside
Mon Dec 09, 2019 10:43 am
Forum: ChibiOS/HAL
Topic: I2C1 and DMA corrupt memory? [STM32L152]
Replies: 2
Views: 4069

Re: I2C1 and DMA corrupt memory? [STM32L152]

Ciao Giovanni,
sei veloce come un fulmine. Grazie mille!

With stack checking enabled, this is what ChibiOS throws:

Program received signal SIGINT, Interrupt.
0x08002d10 in chSysHalt (reason=0x8005530 "stack overflow") at P:/Chibi/ChibiOS_19.1.3/os/rt/src/chsys.c:206
206 ch ...
by l0wside
Mon Dec 09, 2019 9:43 am
Forum: ChibiOS/HAL
Topic: I2C1 and DMA corrupt memory? [STM32L152]
Replies: 2
Views: 4069

I2C1 and DMA corrupt memory? [STM32L152]

Hello all,
being quite new both to ChibiOS and STM32 (but with several years of experience on MSP430), I am extremely reluctant to call the effect I am seeing here a bug, but it is hugely annoying. Maybe someone can point me in the right direction?
Setup: ChibiOS 19.1.3, ARM GCC 9.2.1 (from ARM site ...