From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,327a42486109b512 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.224.173.202 with SMTP id q10mr5131416qaz.3.1354911878319; Fri, 07 Dec 2012 12:24:38 -0800 (PST) Received: by 10.49.94.99 with SMTP id db3mr1472830qeb.2.1354911878293; Fri, 07 Dec 2012 12:24:38 -0800 (PST) Path: gf5ni48613681qab.0!nntp.google.com!c8no1962794qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Dec 2012 12:24:38 -0800 (PST) In-Reply-To: <5eecb2cc-086c-47c9-84c9-00dd5b90f9a1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.74.168.218; posting-account=xhShowoAAABwJEaFCs7_gHiUlZrBvRhD NNTP-Posting-Host: 201.74.168.218 References: <71687703-4ed2-4cbb-8996-ff973474f586@googlegroups.com> <5eecb2cc-086c-47c9-84c9-00dd5b90f9a1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <594369dc-9021-4809-bd57-3db2dfddde92@googlegroups.com> Subject: Re: Interruption Handling using zfp compilation flag From: =?ISO-8859-1?Q?Vin=EDcius_Franchini?= Injection-Date: Fri, 07 Dec 2012 20:24:38 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-07T12:24:38-08:00 List-Id: On Friday, December 7, 2012 5:45:51 AM UTC-2, Rolf wrote: > On Friday, December 7, 2012 1:41:34 AM UTC+1, Vin=EDcius Franchini wrote: >=20 > > Hi guys, my name is Vin=EDcius and I'm doing a master degree. My thesis= is a simplified on-board computer for an satellite. I must implement some = scheduling and package analysis functions. As I need to work with a real ti= me system, I'm using the zfp flag for compilation. I tried to implement som= e interruptions using sentences like this: procedure Receive_USART; -- Addr= ess the interruption handler pragma Machine_Attribute (Entity =3D> Receive_= USART, Attribute_Name =3D> "signal"); pragma Export (Convention =3D> C, Ent= ity =3D> Receive_USART, External_Name =3D> "__vector_26"); --USART0_RXC Usi= ng Proteus (ISIS Professional 6.7 SP2), I'm debugging the algorithm. The in= itialization of the interruption is right, but when the interruption occur,= it isn't handling to the procedure. Do I need to do something more to hand= le the procedure when the interruption occur ? Do you fellows have any othe= r simple way to handle interruptions ? Thanks very much for your help.... >=20 >=20 >=20 >=20 >=20 >=20 >=20 > On Friday, December 7, 2012 1:41:34 AM UTC+1, Vin=EDcius Franchini wrote: >=20 > > Hi guys, my name is Vin=EDcius and I'm doing a master degree. My thesis= is a simplified on-board computer for an satellite. I must implement some = scheduling and package analysis functions. As I need to work with a real ti= me system, I'm using the zfp flag for compilation. I tried to implement som= e interruptions using sentences like this: procedure Receive_USART; -- Addr= ess the interruption handler pragma Machine_Attribute (Entity =3D> Receive_= USART, Attribute_Name =3D> "signal"); pragma Export (Convention =3D> C, Ent= ity =3D> Receive_USART, External_Name =3D> "__vector_26"); --USART0_RXC Usi= ng Proteus (ISIS Professional 6.7 SP2), I'm debugging the algorithm. The in= itialization of the interruption is right, but when the interruption occur,= it isn't handling to the procedure. Do I need to do something more to hand= le the procedure when the interruption occur ? Do you fellows have any othe= r simple way to handle interruptions ? Thanks very much for your help.... >=20 >=20 >=20 >=20 >=20 >=20 >=20 > The syntax that you show is very specific for AVR microcontrollers. If th= at's really the case have a look at >=20 >=20 >=20 > http://sourceforge.net/p/avr-ada/wiki/Interrupts/ >=20 >=20 >=20 > and at the data sheet of your controller. Consider also asking on the AVR= -Ada-devel mailing list. >=20 >=20 >=20 > HTH >=20 > Rolf Thanks for your advice and sorry for incomplete information. I'm using an AVR ATMega 2560. I'm not using the avr-ada lib. The way I'm d= oing the interruptions is just like the link you sent. The interruption is = ok, the used vector is in accordance with the enabled interrupt, as I saw i= n my debug. The problem is: the handled procedure is not called when the in= terruption ocur. As I tried to summarize, this is my question...