From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F8FD255.2000206@domain.hid> Date: Thu, 19 Apr 2012 10:52:37 +0200 From: Roberto Bielli MIME-Version: 1.0 References: <4F50A422.50208@domain.hid> <4F575BA3.7060404@domain.hid> <4F576622.1030509@domain.hid> <4F57A567.7030008@domain.hid> <4F7C127D.2010400@domain.hid> <4F7C1484.5090406@domain.hid> <4F7C183F.5040009@domain.hid> <4F7F0D4E.8080906@domain.hid> <4F7F0E8A.70702@domain.hid> <4F7F20F0.9070007@domain.hid> <4F80BD10.2060200@domain.hid> <4F83F2C3.50704@domain.hid> <4F83F321.2030300@domain.hid> <4F83F645.7040402@domain.hid> <4F83F828.4000508@domain.hid> <4F83F929.5000300@domain.hid> <4F83FBAB.7040301@domain.hid> <4F83FF49.90608@domain.hid> <4F840DD8.2030407@domain.hid> <4F841E32.50101@domain.hid> <4F8428AA.1040404@domain.hid> <4F842A4B.8040106@domain.hid> <4F852BBB.5050400@domain.hid> <4F85749C.808@domain.hid> <4F86AA98.6010805@domain.hid> <4F87099F.2020707@domain.hid> <4F87139E.6050805@domain.hid> <4F87E781.8020801@domain.hid> <4F882E7B.7010909@domain.hid> <4F8E7EF1.4070205@domain.hid> <4F8E871D.8030207@domain.hid> <4F8E9746.8060209@domain.hid> <4F8EAAAE.4050603@domain.hid> In-Reply-To: <4F8EAAAE.4050603@domain.hid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] porting xenomai on imx25 List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org Hi Gilles, i found the problem that disable interrupts when execute a task. My kernel for imx25 uses the properties CONFIG_MXC_IRQ_PRIOR in the .config. This properties enable reentrant interrupts so it uses the NIMASK(normal interrupt mask register ) register to disable interrupts with certain priority level. The interrupt of timer is disabled in that cases. i tried to disable this option in the kernel but i have other big problems with the task and so i have to do other tests before saying the conclusions. Do you know if xenomai doesn't work with reentrant interrupts ? Il 18/04/2012 13:51, Gilles Chanteperdrix ha scritto: > On 04/18/2012 12:28 PM, Roberto Bielli wrote: >> Hi Gilles, >> >> i try to give only another accurate information. >> >> i made another test: >> i write a xenomai driver for reading the timer and avic register and i >> see a strange behaviour. >> when there is the problem the interrupt is NOT masqueraded in avic but >> the timer has the interrupt not acked. > Ah, that is good news, at least now we have a clue. Note that it could > also mean that the timer has ticked, but the irq is not generated for > another reason. I think you should dump all the timer registers, and see > if anything is wrong by decoding their values with the datasheet. > > A quick test also, assuming that the write to the MX3_TSTAT regiter in > gpt_irq_acknowledge may be posted, try rereading the register after > writing it. > >> After this i understand that now are my problems. >> Do you know somebody that can help me understanding the problem only for >> xenomai side? > If you need someone's help, you need to give access to your board to > that person or company. Because indirect debugging is really > inefficient: look at how many mails I had to send you over how much time > to get you to do what anybody with xenomai experience would have done in > just a few hours. > -- +------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: roberto.bielli@domain.hid Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: info@domain.hid This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+