Re: Error in sninfo with argument

2021-01-07 Thread spudaneco
You really need to analyze the hard fault to have any understanding.  My guess 
would be something unrelated like a stack overrun.Sent from my Galaxy
 Original message From: Alan Carvalho de Assis 
 Date: 1/7/21  6:15 AM  (GMT-06:00) To: 
dev@nuttx.apache.org, thiha_...@yahoo.com Subject: Re: Error in sninfo with 
argument Hi Thiha,Well, if this is a configuration issue, then it is better to 
use apre-defined board configuration, in this case you can look 
at:boards/arm/stm32/stm32f103-minimum/configs/rfid-rc522I never saw this type 
of crash on "syslog" before.Also save the current .config that is crashing, 
later you will able tocompare it with the working config to understand why it 
was crashing.Maybe the crash it not related to "syslog", but it is in some 
linejust below the syslog() line.BR,AlanOn 1/7/21, Thiha Kyaw 
 wrote:> Dear Nuttx,>> I did a bit more debugging in 
NuttX-10.0.1 on STM32F4Discovery.>> I add a below line in stm32_bringup.c to 
make sure that syslog function> with argument.>> syslog(LOG_INFO, "INFO: 
stm32_mfrc522initialize() : %d \n", 10);>> Error is as follow.>> NuttShell 
(NSH) NuttX-10.0.1> nsh> ABCDF> INFO: stm32_mfrc522initialize() : 
arm_hardfault: PANIC!!! Hard fault: ABCDF>> I believe I need to set some 
settings in menuconfig. Please guide me how to> solve the syslog issue.>> 
syslog is important to do the debugging.>> Thanks.>> Regards,> Thiha Kyaw>>>>> 
On Sat, Jan 2, 2021 at 11:52 PM Thiha Kyaw  wrote:>>> Dear 
Alan,>>>> I use NuttShell (NSH) NuttX-10.0.0.>>>> Board is STM32F4Discovery 
(STM32F407G-DISC1).>>>> Regards,>> Thiha Kyaw>>>> On Sat, Jan 2, 2021 at 11:15 
PM Alan Carvalho de Assis>> >> wrote:>>>>> Hi Thiha,>>>>>> 
Thank you for reporting this issue.>>>>>> Could you please supply more 
information?>>>>>> What NuttX version are you using? Is it from mainline? If 
so, did you>>> get this same issue using NuttX 10.0 or 9.1 ?>>>>>> BR,>>>>>> 
Alan>>>>>> On 1/2/21, Thiha Kyaw  wrote:>>> > Dear 
Nuttx,>>> >>>> > I am facing the problem in sensor debugging.>>> >>>> > Simple 
debug print using sninfo is working well.>>> >>>> > But sninfo with argument 
throws *arm_hardfault: PANIC!!!*>>> >>>> > For example,>>> > 
sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);>>> >>>> > Is there any 
missing configuration?>>> >>>> > [image: image.png]>>> >>>> > Please guide 
me.>>> >>>> > Thanks.>>> > -->>> > Yours Sincerely,>>> > Thiha Kyaw>>> 
>>>>>>>>>> -->> Yours Sincerely,>> Thiha Kyaw>>>>> --> Yours Sincerely,> Thiha 
Kyaw>

Re: Error in sninfo with argument

2021-01-07 Thread Alan Carvalho de Assis
Hi Thiha,

Well, if this is a configuration issue, then it is better to use a
pre-defined board configuration, in this case you can look at:
boards/arm/stm32/stm32f103-minimum/configs/rfid-rc522

I never saw this type of crash on "syslog" before.

Also save the current .config that is crashing, later you will able to
compare it with the working config to understand why it was crashing.

Maybe the crash it not related to "syslog", but it is in some line
just below the syslog() line.

BR,

Alan

On 1/7/21, Thiha Kyaw  wrote:
> Dear Nuttx,
>
> I did a bit more debugging in NuttX-10.0.1 on STM32F4Discovery.
>
> I add a below line in stm32_bringup.c to make sure that syslog function
> with argument.
>
> syslog(LOG_INFO, "INFO: stm32_mfrc522initialize() : %d \n", 10);
>
> Error is as follow.
>
> NuttShell (NSH) NuttX-10.0.1
> nsh> ABCDF
> INFO: stm32_mfrc522initialize() : arm_hardfault: PANIC!!! Hard fault: ABCDF
>
> I believe I need to set some settings in menuconfig. Please guide me how to
> solve the syslog issue.
>
> syslog is important to do the debugging.
>
> Thanks.
>
> Regards,
> Thiha Kyaw
>
>
>
>
> On Sat, Jan 2, 2021 at 11:52 PM Thiha Kyaw  wrote:
>
>> Dear Alan,
>>
>> I use NuttShell (NSH) NuttX-10.0.0.
>>
>> Board is STM32F4Discovery (STM32F407G-DISC1).
>>
>> Regards,
>> Thiha Kyaw
>>
>> On Sat, Jan 2, 2021 at 11:15 PM Alan Carvalho de Assis
>> 
>> wrote:
>>
>>> Hi Thiha,
>>>
>>> Thank you for reporting this issue.
>>>
>>> Could you please supply more information?
>>>
>>> What NuttX version are you using? Is it from mainline? If so, did you
>>> get this same issue using NuttX 10.0 or 9.1 ?
>>>
>>> BR,
>>>
>>> Alan
>>>
>>> On 1/2/21, Thiha Kyaw  wrote:
>>> > Dear Nuttx,
>>> >
>>> > I am facing the problem in sensor debugging.
>>> >
>>> > Simple debug print using sninfo is working well.
>>> >
>>> > But sninfo with argument throws *arm_hardfault: PANIC!!!*
>>> >
>>> > For example,
>>> > sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);
>>> >
>>> > Is there any missing configuration?
>>> >
>>> > [image: image.png]
>>> >
>>> > Please guide me.
>>> >
>>> > Thanks.
>>> > --
>>> > Yours Sincerely,
>>> > Thiha Kyaw
>>> >
>>>
>>
>>
>> --
>> Yours Sincerely,
>> Thiha Kyaw
>>
>
>
> --
> Yours Sincerely,
> Thiha Kyaw
>


Re: Error in sninfo with argument

2021-01-07 Thread Thiha Kyaw
Dear Nuttx,

I did a bit more debugging in NuttX-10.0.1 on STM32F4Discovery.

I add a below line in stm32_bringup.c to make sure that syslog function
with argument.

syslog(LOG_INFO, "INFO: stm32_mfrc522initialize() : %d \n", 10);

Error is as follow.

NuttShell (NSH) NuttX-10.0.1
nsh> ABCDF
INFO: stm32_mfrc522initialize() : arm_hardfault: PANIC!!! Hard fault: ABCDF

I believe I need to set some settings in menuconfig. Please guide me how to
solve the syslog issue.

syslog is important to do the debugging.

Thanks.

Regards,
Thiha Kyaw




On Sat, Jan 2, 2021 at 11:52 PM Thiha Kyaw  wrote:

> Dear Alan,
>
> I use NuttShell (NSH) NuttX-10.0.0.
>
> Board is STM32F4Discovery (STM32F407G-DISC1).
>
> Regards,
> Thiha Kyaw
>
> On Sat, Jan 2, 2021 at 11:15 PM Alan Carvalho de Assis 
> wrote:
>
>> Hi Thiha,
>>
>> Thank you for reporting this issue.
>>
>> Could you please supply more information?
>>
>> What NuttX version are you using? Is it from mainline? If so, did you
>> get this same issue using NuttX 10.0 or 9.1 ?
>>
>> BR,
>>
>> Alan
>>
>> On 1/2/21, Thiha Kyaw  wrote:
>> > Dear Nuttx,
>> >
>> > I am facing the problem in sensor debugging.
>> >
>> > Simple debug print using sninfo is working well.
>> >
>> > But sninfo with argument throws *arm_hardfault: PANIC!!!*
>> >
>> > For example,
>> > sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);
>> >
>> > Is there any missing configuration?
>> >
>> > [image: image.png]
>> >
>> > Please guide me.
>> >
>> > Thanks.
>> > --
>> > Yours Sincerely,
>> > Thiha Kyaw
>> >
>>
>
>
> --
> Yours Sincerely,
> Thiha Kyaw
>


-- 
Yours Sincerely,
Thiha Kyaw


Re: Error in sninfo with argument

2021-01-02 Thread Thiha Kyaw
Dear Alan,

I use NuttShell (NSH) NuttX-10.0.0.

Board is STM32F4Discovery (STM32F407G-DISC1).

Regards,
Thiha Kyaw

On Sat, Jan 2, 2021 at 11:15 PM Alan Carvalho de Assis 
wrote:

> Hi Thiha,
>
> Thank you for reporting this issue.
>
> Could you please supply more information?
>
> What NuttX version are you using? Is it from mainline? If so, did you
> get this same issue using NuttX 10.0 or 9.1 ?
>
> BR,
>
> Alan
>
> On 1/2/21, Thiha Kyaw  wrote:
> > Dear Nuttx,
> >
> > I am facing the problem in sensor debugging.
> >
> > Simple debug print using sninfo is working well.
> >
> > But sninfo with argument throws *arm_hardfault: PANIC!!!*
> >
> > For example,
> > sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);
> >
> > Is there any missing configuration?
> >
> > [image: image.png]
> >
> > Please guide me.
> >
> > Thanks.
> > --
> > Yours Sincerely,
> > Thiha Kyaw
> >
>


-- 
Yours Sincerely,
Thiha Kyaw


Re: Error in sninfo with argument

2021-01-02 Thread Alan Carvalho de Assis
Hi Thiha,

Thank you for reporting this issue.

Could you please supply more information?

What NuttX version are you using? Is it from mainline? If so, did you
get this same issue using NuttX 10.0 or 9.1 ?

BR,

Alan

On 1/2/21, Thiha Kyaw  wrote:
> Dear Nuttx,
>
> I am facing the problem in sensor debugging.
>
> Simple debug print using sninfo is working well.
>
> But sninfo with argument throws *arm_hardfault: PANIC!!!*
>
> For example,
> sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);
>
> Is there any missing configuration?
>
> [image: image.png]
>
> Please guide me.
>
> Thanks.
> --
> Yours Sincerely,
> Thiha Kyaw
>


Error in sninfo with argument

2021-01-02 Thread Thiha Kyaw
Dear Nuttx,

I am facing the problem in sensor debugging.

Simple debug print using sninfo is working well.

But sninfo with argument throws *arm_hardfault: PANIC!!!*

For example,
sninfo("ADXL372_FIFO_CTL = 0x%02x\n", reg_content);

Is there any missing configuration?

[image: image.png]

Please guide me.

Thanks.
-- 
Yours Sincerely,
Thiha Kyaw