Search found 22 matches

by nosense
Thu Sep 06, 2018 11:58 am
Forum: ChibiStudio
Topic: Debug plugin with DSF support
Replies: 30
Views: 34402

Re: Debug plugin with DSF support

How does it look like? Can we expect a new ChibiStudio based on latest Eclipse any time soon?
by nosense
Mon Mar 04, 2013 12:00 am
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

Re: MMC_SPI + I2C = stack overflow

Probably I have found the error. I was trying to use I2CDriver.config pointer. Since I initialized I2C in my_init() function and allocated I2C config structure locally on my_init() function stack the I2CDriver.config pointer destination became undefined after the end of my_init() function.
by nosense
Sat Mar 02, 2013 11:40 pm
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

Re: MMC_SPI + I2C = stack overflow

Everything is called from main thread. First there is I2C init, then there is part of MMC_SPI init (only "mmcObjectInit" and "mmcStart" calls) and in main loop there are some I2C data reads. No any other MMC_SPI calls are performed. I will try to strip my code down to minimal and post the whole ...
by nosense
Sat Mar 02, 2013 11:03 pm
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

Re: MMC_SPI + I2C = stack overflow

I am quite sure that there is enough stack. If I remove MMC_SPI function calls there is more than 500 bytes of unused stack when reading I2C data.

As well when I break program execution in first few seconds before stack overflow, there is still around 500 bytes of unused stack. But then suddenly ...
by nosense
Sat Mar 02, 2013 10:04 pm
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

Re: MMC_SPI + I2C = stack overflow

When I set TIME_INFINITE timeout the behavior is exactly the same. Error value returned from i2cMasterTransmitTimeout is always -2.
by nosense
Sat Mar 02, 2013 8:10 pm
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

Re: MMC_SPI + I2C = stack overflow

Yes all options in debug section of chconf.h are enabled. Probably there is really some issue with I2C driver. I am using following wrapper for I2C communication.

inline void i2cTransmit(
I2CDriver *i2cp,
i2caddr_t addr,
const uint8_t *txbuf,
size_t txbytes,
uint8_t *rxbuf,
size_t rxbytes ...
by nosense
Sat Mar 02, 2013 5:14 pm
Forum: General Support
Topic: MMC_SPI + I2C = stack overflow
Replies: 9
Views: 7581

MMC_SPI + I2C = stack overflow

Hello,

I am trying to log some sensor data to SD card. I2C data reading alone is fine as I can see from serial console. MMC access works as well. But when I try to use I2C and MMC_SPI together I get stack overflow in a few seconds. Minimal settings that causes stack overflow is calling ...
by nosense
Fri Mar 01, 2013 3:44 pm
Forum: General Support
Topic: [DONE] MMC_SPI driver won't compile when SPI_USE_WAIT=FALSE
Replies: 1
Views: 2611

[DONE] MMC_SPI driver won't compile when SPI_USE_WAIT=FALSE

Hello,

when I tried to use MMC_SPI driver with option "#define SPI_USE_WAIT FALSE" in halconf I got compile error:

/./os/hal/src/mmc_spi.c:147: undefined reference to `spiReceive'

and few similar errors.

Is that a bug or feature ? In any case it would be great to add some checks to code and ...
by nosense
Tue Jan 01, 2013 8:51 pm
Forum: General Support
Topic: TIM interrupt handler issue
Replies: 6
Views: 6460

Re: TIM interrupt handler issue

Damn stupid mistake. I would never seek for error here. Thank you very much. The program seem to work now.
by nosense
Mon Dec 31, 2012 5:26 pm
Forum: General Support
Topic: TIM interrupt handler issue
Replies: 6
Views: 6460

Re: TIM interrupt handler issue

Another interesting fact: When I remove line that clears interrupt flag (so the interrupt is fired again immediately) I get stack overflow when macros are in handler. When I remove the macros the program is cycling in interrupt handler but without stack overflow.

I have erased edge capturing and ...