Page 1 of 1

SIGINT cause

Posted: Mon Nov 28, 2011 9:35 pm
by joaquin
I had a working project with Chibios 2.2.3, and when I tried to migrate to Chibios 2.2.7 I get SIGINT signal and the program goes to _unhandled_exception subroutine.
I know it's an stupid question, but I'm not able to find out what causes the SIGINT (I suspect from the I2C irq handling I developed to read an eeprom). Anybody knows how to investigate the cause?

Re: SIGINT cause

Posted: Mon Nov 28, 2011 9:46 pm
by Giovanni
Hi,

Hard to tell with no info, please verify if the I2C IRQ vector points to the correct handling function, that could explain the unhandled exception. You may also try to use increasing OS versions, knowing exactly which version caused the regression could help.

Giovanni

Re: SIGINT cause

Posted: Thu Dec 01, 2011 10:29 pm
by joaquin
I coded all interrupt vectors, and I have been able to track down the problem to a HardFault. Maybe some misalignment, tough the code is exactly the same and the only thing I changed was the version of ChibiOs.. I'll take it as an oportunity to learn more about the STM32 ;-)

Re: SIGINT cause

Posted: Thu Dec 01, 2011 10:36 pm
by Giovanni
Are all the files from the same ChibiOS version? especially configuration files (which reside in the application).

Giovanni

Re: SIGINT cause

Posted: Fri Dec 02, 2011 9:50 pm
by joaquin
I think so; I've done it several times with increasing versions of ChibiOs in the past with success. I'll do it over again from scratch again,just to discard any mistake.
Thanks for your advices..