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:

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, lat

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 Su

Re: Nuttx Task Trace

2021-01-07 Thread Sebastian Glatz
Dear Yuuichi I have changed the configuration by invoking: make px4_fmu-v5_default menuconfig The corresponding configfile is: PX4-Autopilot/boards/px4/fmu-v5/nuttx-config/nsh/defconfig With these changes: +CONFIG_DRIVER_NOTE=y +CONFIG_DRIVER_NOTECTL=y -CONFIG_SCHED_INSTRUMENTATION_EXTERNAL=y +CON

Re: Handling of newbie-oriented fixes

2021-01-07 Thread Grr
I just finished basic edition but my connection is veeery slow right now so I'll upload it until tomorrow morning I incorporated the ASCII function map and completely linearized the document I need to check the last part about nsh and such but the rest of the document is exact and up to date E

SPI Driver Balkanization

2021-01-07 Thread Grr
I've been working towards creating a unified (character or SocketCAN) driver model for SPI CAN controller MCP2515 and I found out that SPI_* macro family allow platform-neutral SPI device control but there's one thing I cannot find: Is it possible to abstract chip select (CS) definition and usage

Re: SPI Driver Balkanization

2021-01-07 Thread Brennan Ashton
On Thu, Jan 7, 2021 at 8:20 PM Grr wrote: > > I've been working towards creating a unified (character or SocketCAN) > driver model for SPI CAN controller MCP2515 and I found out that SPI_* > macro family allow platform-neutral SPI device control but there's one > thing I cannot find: > > Is it pos

Re: SPI Driver Balkanization

2021-01-07 Thread Grr
It is abstracted, for example see this file. > > https://github.com/apache/incubator-nuttx/blob/cdd111a1faec9b40b707797e00c4afae4956fb3f/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c#L140 > You mean GPIO_MCP2515_CS? I don't quite understand its definition #define GPIO_MCP2515_CS (GPIO_OUTPUT

Re: SPI Driver Balkanization

2021-01-07 Thread Brennan Ashton
On Thu, Jan 7, 2021 at 9:51 PM Grr wrote: > > It is abstracted, for example see this file. > > > > > https://github.com/apache/incubator-nuttx/blob/cdd111a1faec9b40b707797e00c4afae4956fb3f/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c#L140 > > > > You mean GPIO_MCP2515_CS? I don't quite understa

RE: Nuttx Task Trace

2021-01-07 Thread Yuuichi.A.Nakamura
Dear Sebastian, > NuttX/nuttx/include/sys/syscall_lookup.h:350:18: error: attempt to use > poisoned "getenv" PX4 project seems to prohibit some APIs by using GCC #pragma in src/include/visibility.h #pragma GCC poison getenv setenv putenv Because NuttX Task Trace creates wrappers for all APIs t