Cache

2022-09-13 Thread TimH
I will probably hit send then find it.but, right now, I can't see if there's
anything I need to do to enable DCACHE?

 

My .config has CONFIG_ARCH_DCACHE set, and that seems to "enable" all the
various cache functions, including up_enable_dcache, but I can't find any
calls to that function in sama5 related code. 

 

Any clues appreciated!!

 



Re: Cache

2022-09-13 Thread Alan Carvalho de Assis
I don't know about sama5, but probably it is done here: arch/arm/src/armv7-a/

On 9/13/22, TimH  wrote:
> I will probably hit send then find it.but, right now, I can't see if
> there's
> anything I need to do to enable DCACHE?
>
>
>
> My .config has CONFIG_ARCH_DCACHE set, and that seems to "enable" all the
> various cache functions, including up_enable_dcache, but I can't find any
> calls to that function in sama5 related code.
>
>
>
> Any clues appreciated!!
>
>
>
>


RE: Cache

2022-09-13 Thread TimH
I found that the up_enable_dcache function is there, with a call to 
cp15_enable_dcache, yes; and that function is in my system.map.  But nothing 
calls it that I can find?

>-Original Message-
>From: Alan Carvalho de Assis 
>Sent: 13 September 2022 15:01
>
>I don't know about sama5, but probably it is done here: arch/arm/src/armv7-
>a/
>
>On 9/13/22, TimH  wrote:
>> I will probably hit send then find it.but, right now, I can't see if
>> there's anything I need to do to enable DCACHE?
>>
>>
>>
>> My .config has CONFIG_ARCH_DCACHE set, and that seems to "enable" all
>> the various cache functions, including up_enable_dcache, but I can't
>> find any calls to that function in sama5 related code.
>>
>>
>>
>> Any clues appreciated!!
>>
>>
>>
>>



Device connectivity over REST and SCPI

2022-09-13 Thread Petro Karashchenko
Hello,

Does anybody have experience with exposing functionality of NuttX based
device via REST API?

Also maybe someone did integration with SCPI?

I'm looking for some lightweight implementations for both REST API and SCPI
and would appreciate for any references that I can explore. Maybe there are
already some integration examples.

Best Regards,
Petro


Re: Subject: [VOTE] Apache NuttX 11.0.0 (incubating) RC2 release

2022-09-13 Thread Alan Carvalho de Assis
+1

Please find board checking below:

ESP32
=

$ xtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=/usr/local/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper
Target: xtensa-esp32-elf
Configured with:
/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/gcc/configure
--build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=xtensa-esp32-elf
--prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf
--with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf
--with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion='crosstool-NG esp-2021r2-patch3'
--disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections
--disable-libgomp --disable-libmudflap --disable-libmpx
--disable-libssp --disable-libquadmath --disable-libquadmath-support
--with-gmp=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-mpfr=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-mpc=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-isl=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--enable-lto --enable-target-optspace --without-long-double-128
--disable-nls --enable-multiarch --enable-languages=c,c++
--disable-libstdcxx-verbose --enable-threads=posix
--enable-gcov-custom-rtio --enable-libstdcxx-time=yes
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2021r2-patch3)


$ ./tools/configure.sh esp32-devkitc:nsh

$ make -j

$ xtensa-esp32-elf-size nuttx
   textdata bss dec hex filename
  73927 2364696   78859   1340b nuttx



ESP32-C3


$ riscv64-unknown-elf-gcc -v
Using built-in specs.
COLLECT_GCC=riscv64-unknown-elf-gcc
COLLECT_LTO_WRAPPER=/usr/local/bin/../libexec/gcc/riscv64-unknown-elf/10.2.0/lto-wrapper
Target: riscv64-unknown-elf
Configured with:
/scratch/jenkins/workspace/tpp-freedom-tools/tpp03--build-binary-packages--parameterized/obj/x86_64-linux-ubuntu14/build/riscv64-unknown-elf-gcc/riscv-gcc/configure
--target=riscv64-unknown-elf --host=x86_64-linux-gnu
--prefix=/scratch/jenkins/workspace/tpp-freedom-tools/tpp03--build-binary-packages--parameterized/obj/x86_64-linux-ubuntu14/install/riscv64-unknown-elf-gcc-10.2.0-2020.12.8-x86_64-linux-ubuntu14
--with-pkgversion='SiFive GCC-Metal 10.2.0-2020.12.8'
--with-bugurl=https://github.com/sifive/freedom-tools/issues
--disable-shared --disable-threads --enable-languages=c,c++
--enable-tls --with-newlib
--with-sysroot=/scratch/jenkins/workspace/tpp-freedom-tools/tpp03--build-binary-packages--parameterized/obj/x86_64-linux-ubuntu14/install/riscv64-unknown-elf-gcc-10.2.0-2020.12.8-x86_64-linux-ubuntu14/riscv64-unknown-elf
--with-native-system-header-dir=/include --disable-libmudflap
--disable-libssp --disable-libquadmath --disable-libgomp --disable-nls
--disable-tm-clone-registry --src=../riscv-gcc --with-system-zlib
--enable-checking=yes --enable-multilib --with-abi=lp64d
--with-arch=rv64imafdc CFLAGS=-O2 CXXFLAGS=-O2 'CFLAGS_FOR_TARGET=-Os
-mcmodel=medany' 'CXXFLAGS_FOR_TARGET=-Os -mcmodel=medany'
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (SiFive GCC-Metal 10.2.0-2020.12.8)

$ ./tools/configure.sh esp32c3-devkit:nsh

$ make -j

$ riscv64-unknown-elf-size nuttx
   textdata bss dec hex filename
  85286 180  142272  227738   3799a nuttx



STM32
=

$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/9.2.1/lto-wrapper
Target: arm-none-eabi
Configured with: ../configure --build=x86_64-linux-gnu --prefix=/usr
--includedir='/usr/lib/include' --mandir='/usr/lib/share/man'
--infodir='/usr/lib/share/info' --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir='/usr/lib/lib/x86_64-linux-gnu'
--libexecdir='/usr/lib/lib/x86_64-linux-gnu' --disable-maintainer-mode
--disable-dependency-tracking --mandir=/usr/share/man
--enable-languages=c,c++,lto --enable-multilib --disable-decimal-float
--disable-libffi --disable-libgomp --disable-libmudflap
--disable-libquadmath --disable-libssp --disable-libstdcxx-pch
--disable-nls --disable-shared --disable-threads --enable-tls
--build=x86_64-linux-gnu --target=arm-none-eabi --with-system-zlib
--with-gnu-as --with-gnu-ld --with-pkgversion=15:9-2019-q4-0ubuntu1
--without-included-gettext --prefix=/usr/lib
--infodir=/usr/share/doc/gcc-arm-none-eabi/info
--htmldir=/usr/share/doc/gcc-arm-none-eabi/html
--pdfdir=/usr/share/doc/gcc-arm-none-eabi/pdf --bindir=/usr/bin
--libexecdir=/usr/lib --libdir=/usr/lib --disable-libstdc++-v3
--host=x86_64-linux-gnu --with-headers=no --without-newlib
--with-multilib-list=rmprofile CFLAGS='-g -O2
-fdebug-prefix-map=/build/gcc-arm-none-eabi-Gl9kT9/gcc-arm-none-eabi-9-2019-q4=.
-fstack-protector-strong' CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2'
CXXFLAGS='-g -O2
-fdebug-prefix-map=/build/gcc-ar

Re: Subject: [VOTE] Apache NuttX 11.0.0 (incubating) RC2 release

2022-09-13 Thread Craig Altenburg
Not a voting member but built on MacOS for RP2040: 

> arm-none-eabi-gcc -v

Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/lto-wrapper
Target: arm-none-eabi
Configured with: 
/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/src/gcc/configure 
--target=arm-none-eabi 
--prefix=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native 
--libexecdir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/lib
 
--infodir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/info
 
--mandir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/man
 
--htmldir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/html
 
--pdfdir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/pdf
 --enable-languages=c,c++ --enable-plugins --disable-decimal-float 
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath 
--disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared 
--disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib 
--with-headers=yes --with-python-dir=share/gcc-arm-none-eabi 
--with-sysroot=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/arm-none-eabi
 --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 
--with-gmp=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
 
--with-mpfr=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
 
--with-mpc=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
 
--with-isl=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
 
--with-libelf=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
 --with-host-libstdcxx='-static-libgcc -Wl,-lstdc++ -lm' --with-pkgversion='GNU 
Arm Embedded Toolchain 10.3-2021.07' --with-multilib-list=rmprofile,aprofile
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 10.3.1 20210621 (release) (GNU Arm Embedded Toolchain 10.3-2021.07) 

> tools/configure.sh -E raspberrypi-pico:nsh

> make -j

> arm-none-eabi-size nuttx
   textdata bss dec hex filename
 118288 1524148  122588   1dedc nuttx


On 9/9/22, Alin Jerpelea mailto:jerpe...@gmail.com>> wrote:
> Hello all,
> Apache NuttX (Incubating) 11.0.0 RC2 has been staged under [1] and it's
> time to vote on accepting it for release. If approved we will seek
> final release approval from the IPMC. Voting will be open for 72hr.
> 
> A minimum of 3 binding +1 votes and more binding +1 than binding -1 are
> required to pass.
> 
> The Apache requirements for approving a release can be found here [3]
> "Before voting +1 [P]PMC members are required to download the signed
> source code package, compile it as provided, and test the resulting
> executable on their own platform, along with also verifying that the
> package meets the requirements of the ASF policy on releases."
> 
> A document to walk through some of this process has been published on
> our project wiki and can be found here [4].
> 
> [ ] +1 accept (indicate what you validated - e.g. performed the non-RM
> items in [4])
> [ ] -1 reject (explanation required)
> 
> Thank you all,
> Alin Jerpelea
> SCM Information:
>  Release tag: nuttx-11.0.0-RC2
>  Hash for the release incubating-nuttx tag:
> d32555f3e0492b8f4caeb407db55de23322724ef
>  Hash for the release incubating-nuttx-apps tag:
> 8b43f9f9ca30f44c1cccae9a9078d5d45b776d35
> 
> [1] https://dist.apache.org/repos/dist/dev/incubator/nuttx/11.0.0-RC2/
> [2]
> https://raw.githubusercontent.com/apache/incubator-nuttx/nuttx-11.0.0-RC2/ReleaseNotes
> [3] https://www.apache.org/dev/release.html#approving-a-release
> [4]
> https://cwiki.apache.org/confluence/display/NUTTX/Validating+a+staged+Release



Re: Subject: [VOTE] Apache NuttX 11.0.0 (incubating) RC2 release

2022-09-13 Thread Alan Carvalho de Assis
Thank you very much Craig!

For release a new version all votes count because if a user found a
critical issue we need to prepare a new version.

That said all here are welcome to test and report their finding!

BR,

Alan

On 9/13/22, Craig Altenburg  wrote:
> Not a voting member but built on MacOS for RP2040:
>
>> arm-none-eabi-gcc -v
>
> Using built-in specs.
> COLLECT_GCC=arm-none-eabi-gcc
> COLLECT_LTO_WRAPPER=/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/lto-wrapper
> Target: arm-none-eabi
> Configured with:
> /tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/src/gcc/configure
> --target=arm-none-eabi
> --prefix=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native
> --libexecdir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/lib
> --infodir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/info
> --mandir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/man
> --htmldir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/html
> --pdfdir=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/share/doc/gcc-arm-none-eabi/pdf
> --enable-languages=c,c++ --enable-plugins --disable-decimal-float
> --disable-libffi --disable-libgomp --disable-libmudflap
> --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls
> --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld
> --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi
> --with-sysroot=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/install-native/arm-none-eabi
> --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10
> --with-gmp=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
> --with-mpfr=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
> --with-mpc=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
> --with-isl=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
> --with-libelf=/tmp/jenkins-GCC-10-pipeline-259_20210727_1627345004/build-native/host-libs/usr
> --with-host-libstdcxx='-static-libgcc -Wl,-lstdc++ -lm'
> --with-pkgversion='GNU Arm Embedded Toolchain 10.3-2021.07'
> --with-multilib-list=rmprofile,aprofile
> Thread model: single
> Supported LTO compression algorithms: zlib
> gcc version 10.3.1 20210621 (release) (GNU Arm Embedded Toolchain
> 10.3-2021.07)
>
>> tools/configure.sh -E raspberrypi-pico:nsh
>
>> make -j
>
>> arm-none-eabi-size nuttx
>textdata bss dec hex filename
>  118288 1524148  122588   1dedc nuttx
>
>
> On 9/9/22, Alin Jerpelea mailto:jerpe...@gmail.com>>
> wrote:
>> Hello all,
>> Apache NuttX (Incubating) 11.0.0 RC2 has been staged under [1] and it's
>> time to vote on accepting it for release. If approved we will seek
>> final release approval from the IPMC. Voting will be open for 72hr.
>>
>> A minimum of 3 binding +1 votes and more binding +1 than binding -1 are
>> required to pass.
>>
>> The Apache requirements for approving a release can be found here [3]
>> "Before voting +1 [P]PMC members are required to download the signed
>> source code package, compile it as provided, and test the resulting
>> executable on their own platform, along with also verifying that the
>> package meets the requirements of the ASF policy on releases."
>>
>> A document to walk through some of this process has been published on
>> our project wiki and can be found here [4].
>>
>> [ ] +1 accept (indicate what you validated - e.g. performed the non-RM
>> items in [4])
>> [ ] -1 reject (explanation required)
>>
>> Thank you all,
>> Alin Jerpelea
>> SCM Information:
>>  Release tag: nuttx-11.0.0-RC2
>>  Hash for the release incubating-nuttx tag:
>> d32555f3e0492b8f4caeb407db55de23322724ef
>>  Hash for the release incubating-nuttx-apps tag:
>> 8b43f9f9ca30f44c1cccae9a9078d5d45b776d35
>>
>> [1] https://dist.apache.org/repos/dist/dev/incubator/nuttx/11.0.0-RC2/
>> [2]
>> https://raw.githubusercontent.com/apache/incubator-nuttx/nuttx-11.0.0-RC2/ReleaseNotes
>> [3] https://www.apache.org/dev/release.html#approving-a-release
>> [4]
>> https://cwiki.apache.org/confluence/display/NUTTX/Validating+a+staged+Release
>
>