From: SourceForge.net <no...@so...> - 2007-03-30 18:26:35
|
Bugs item #1684193, was opened at 2007-03-20 03:06 Message generated for change (Comment added) made by arcanum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1684193&group_id=68108 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface (example) Group: None >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Henk (henk_vd_bosch) Assigned to: Nobody/Anonymous (nobody) Summary: Pin gets incorrect state Initial Comment: When i set pins in an interrupt routine the pins get an incorrect state when a pin of the same register is set in main code. the pin that is set in ISR gets to previous state. ---------------------------------------------------------------------- >Comment By: Eric Weddington (arcanum) Date: 2007-03-30 12:26 Message: Logged In: YES user_id=543419 Originator: NO You need to take a look at the assembly code that this generates (you can see it in the .lss file). This is a problem with not having atomic actions (critical sections) for the pin changes. Your CTRL_PIN function is not getting inlined. See the GCC user manual for more information on when functions get inlined. AFAICT, this is not a compiler bug. ---------------------------------------------------------------------- Comment By: Henk (henk_vd_bosch) Date: 2007-03-22 04:08 Message: Logged In: YES user_id=1739224 Originator: YES here a striped version with kind regards, Henk File Added: test case stripped.zip ---------------------------------------------------------------------- Comment By: Eric Weddington (arcanum) Date: 2007-03-20 09:50 Message: Logged In: YES user_id=543419 Originator: NO Hi Henk, Thanks for the .zip file. However can you reduce the test case to show just the alleged compiler problem, rather than your whole project? This helps a lot as I don't have to go through your entire project. Thanks, Eric Weddington ---------------------------------------------------------------------- Comment By: Henk (henk_vd_bosch) Date: 2007-03-20 07:03 Message: Logged In: YES user_id=1739224 Originator: YES i have a zip file atacht with an avr studio project and in the c file is comment about avr studio en gcc version. ---------------------------------------------------------------------- Comment By: Eric Weddington (arcanum) Date: 2007-03-20 06:13 Message: Logged In: YES user_id=543419 Originator: NO Hi Henk, I need more information in a bug report. I need a test case and what version of WinAVR that you are using. Thanks, Eric Weddington ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1684193&group_id=68108 |