[PR Proposal - Opinions] Improve NSH Kill cmd

2021-05-31 Thread Rodrigo Garcia
Hello all, I want to submit a PR with an improvement on NSH kill cmd. The idea is to make it a bit closer to unix kill behavior. In unix, kill command will assume SIGTERM as the default signal when the <-SIGNAL> option is omitted. The PR I want to submit would implement such behavior. It would

Re: [Reporting][Need Help] llvm11/12 arm-none-eabi-ld undefined reference to `__atomic_fetch_add_4'

2021-05-31 Thread Matheus Castello
Hi Gustavo, Em 5/31/2021 9:00 AM, Gustavo Henrique Nihei escreveu: Hi Matheus, it seems you are using an Arm processor that does not implement the atomic instructions LDREX and STREX. This is the case for Arm Cortex-M0/M0+ line, which is based on the arm-v6m ISA. In this case, you'd need to

Re: [Reporting][Need Help] llvm11/12 arm-none-eabi-ld undefined reference to `__atomic_fetch_add_4'

2021-05-31 Thread Gustavo Henrique Nihei
Hi Matheus, it seems you are using an Arm processor that does not implement the atomic instructions LDREX and STREX. This is the case for Arm Cortex-M0/M0+ line, which is based on the arm-v6m ISA. In this case, you'd need to implement these functions by providing the atomicity requirements with

[Reporting][Need Help] llvm11/12 arm-none-eabi-ld undefined reference to `__atomic_fetch_add_4'

2021-05-31 Thread Matheus Castello
Trying to use libcxx for port a project to Nuttx and I'm having the following errors: ``` LD: nuttx arm-none-eabi-ld: /home/castello/projects/N/nuttx/staging/libxx.a(locale.o): in function `std::__1::locale::id::__init()': locale.cpp:(.text+0x1890): undefined reference to

[Reporting] llvm11/12 arm-none-eabi error: use of undeclared identifier '__libcpp_signed_lock_free'

2021-05-31 Thread Matheus Castello
Trying to use libcxx I found the following error: ``` error: use of undeclared identifier '__libcpp_signed_lock_free' typedef atomic<__libcpp_signed_lock_free> atomic_signed_lock_free; ``` Which was solved with a patch reported here: https://github.com/ziglang/zig/issues/6573 BR, Matheus

Re: Support for disk full detection using LittleFS

2021-05-31 Thread Takashi Yamamoto
On Fri, May 28, 2021 at 9:21 PM Flavio Castro Alves Filho wrote: > > Hello, > > I am using LittleFS to store information on an external dataflash. > > I need to know if the memory is full. I saw that the nsh provides the > df command, which as far as I understood is a cat for /proc/fs/usage >