Re: Question regarding `WATCHDOG_AUTOMONITOR_BY_CAPTURE`

2020-11-12 Thread Sara da Cunha Monteiro de Souza
Thank you Xiang!
Solved!

Em qua., 11 de nov. de 2020 às 23:36, Xiang Xiao 
escreveu:

> watchdog_register return watchdog_upperhalf_s * pointer, so lowerhalf could
> save the return value some place. Here is an example:
>
> https://github.com/FishsemiCode/nuttx/blob/song-u1/drivers/timers/dw_wdt.c#L350
>
> On Thu, Nov 12, 2020 at 4:59 AM Sara da Cunha Monteiro de Souza <
> saramonteirosouz...@gmail.com> wrote:
>
> > Dear Greg,
> >
> > I've been exploring the AUTOMONITOR feature and I had an issue. It seems
> > the watchdog_automonitor_capture callback expects to receive a
> > watchdog_upperhalf_s * pointer, but since the registration and call of
> this
> > callback happen from inside the lower-half, how would we be supposed to
> > pass a watchdog_upperhalf_s * pointer? I mean, from inside the lower-half
> > it seems that I only have access to the watchdog_lowerhalf_s * .
> >
> > Thanks in advance,
> >
> > warm regards,
> >
> > Sara Monteiro
> >
>


Re: Serial console strange behaviour

2020-11-12 Thread Oleg Evseev
David, I've disabled CONFIG_USART6_TXDMA and it gets back to normal.
I didn't see any issue yet with other uarts that have TXDMA, only the one
with a console. Hope it is not an issue with TXDMA itself.

Would you be so kind to test smt32f7 px4 board with enabled TXDMA for
console uart please (you will need this patch to not get a hadrfault
https://github.com/apache/incubator-nuttx/pull/2209)?

ср, 11 нояб. 2020 г. в 14:18, Oleg Evseev :

> No, it is the same board and config that worked before with NuttX 8.2
> without such issues. Only several modifications same as was done for fmu-v5
> to work with 10.0.0.
> Serial consoles on PX4 boards work ok, no such issues, right?
>
> ср, 11 нояб. 2020 г. в 14:14, David Sidrane :
>
>> Are you running any PX4IO drivers or RC  input?
>>
>> -Original Message-
>> From: Oleg Evseev [mailto:ev.m...@gmail.com]
>> Sent: Wednesday, November 11, 2020 3:09 AM
>> To: dev@nuttx.apache.org
>> Subject: Serial console strange behaviour
>>
>> Hi,
>>
>> Custom board stm32f7, PX4 based project - moved from NuttX 8.2 to 10.0.0.
>> If serial dev console (CONFIG_USART6_SERIAL_CONSOLE=y) is used, it works:
>> prints all corresponding output on boot, but then
>>
>> "nsh> " is shown only when I start typing in putty.
>> "ls" command shows only the first output line. Other lines are shown only
>> if I type at least one symbol.
>> I tried with and without CONFIG_USART6_RXDMA - same result.
>>
>> USB CDC ACM console works OK.
>>
>> Any thoughts on what can cause such behavior?
>>
>> ---
>> With best regards, Oleg
>>
>