Using nuttx i2c scan to detect MAX30100
I’m creating a NuttX driver for MAX30100 Pulse Oximeter Heart Rate sensor. At first my noticed the sensor wasn’t responding, then I searched in the Internet and discovered that the board model I was...
View ArticleThe risk of designing OFF DATA SHEET
Ten years ago I was working for a Brazilian company that develops vehicle tracking devices. That company used to have a design house in Beijing, China and their hardware engineer/designer came from...
View ArticleUsing Renesas RX63N with JLink on Linux
I want to test NuttX on RX65N but unfortunately I only found a RX63N board here in Brazil. The board is called RX63N RDK IoT Starter Kit and Part No.: YRDKRX63N-AWS This board come with a Segger JLink...
View ArticleRunning NuttX ostest on Nucleo-L476RG board
NuttX is an very good system testing called ostest. We can try it on Nucleo-L476RG board: NuttShell (NSH) NuttX-9.0.0nsh> ?help usage: help [-v] [] [ cd dd help mkdir mw sh uname? cp echo hexdump...
View ArticleTesting NuttX Low Power Modes
NuttShell (NSH) NuttX-9.0.0nsh> alarm -a 0 100alarm_daemon startedalarm_daemon: RunningOpening /dev/rtc0Alarm 0 set in 100 secondsnsh> stm32_idlepm: newstate= 1 oldstate=0stm32_idlepm: idle...
View ArticleEclipse remote gdbserver debug error
I was getting this error: Error during file upload. Could not write file: /siam/IPController/ipcontroller/Design/firmware/ipcontroller/app/Debug/ipcontroller. Failure Could not write file:...
View ArticleModuleNotFoundError: No module named ‘Crypto’
Traceback (most recent call last): File "/app/tools/gen_fw_json.py", line 4, in from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto' make[1]: *** [makefile:58: post-build] Error...
View ArticleNew OSTest for comparison
nsh> osteststdio_test: write fd=1stdio_test: Standard I/O Check: printfstdio_test: write fd=2stdio_test: Standard I/O Check: fprintf to stderrostest_main: putenv(Variable1=BadValue3)ostest_main:...
View ArticleCreating call graph function for C program compiled with GCC
I was looking for a way to see how functions flow in a program. After some search I found this nice post: m0agx.eu/2016/12/15/making-call-graphs-with-gcc-egypt-and-cflow/ Then I downloaded...
View ArticleHow to keep processes running after ending ssh session
Then you are running a program in a remote server over telnet, ssh, etc, the program will be killed when your connection is closed. A way to avoid it is using the screen program: $ screen $ ./my-app...
View ArticleSetting date and time on busybox
This is the command to setup date and time on busybox. If you try the above command on Linux it will not work. # date -s 202006020937 # busybox –help BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6)...
View ArticleFlashing the BlackPill (STM32F411CEU6)
I was having a hard time trying to flash the firmware nuttx.bin on BlackPill board. Initially I tried OpenOCD with STLinkV2 as I used to with the BluePill, but it didn’t work. Then I tried a Atmel-ICE...
View ArticleFlashing the BlackPill on Linux using dfu-util
If you read my previous post you know I was facing many issues to flash the firmware on BlackPill using the SWD programmer (STLinkV2, JLink, etc). Finally I got it working! Let check it out! These are...
View ArticleSometimes you can run in circle on Linux, just be careful
Today I found the interesting presentation about why Linux still sucks even on 2020: Linux Sucks 2020: https://www.youtube.com/watch?v=cZN5n6C9gM4 Each year the author of this presentation updates it...
View ArticleRemoving python 2.7 from Ubuntu 20.20
As you know Python 2.7 is deprecated and shouldn’t be used after Jan 1 2020: https://www.python.org/doc/sunset-python-2/ Yet Ubuntu 20.20 comes with “python” defined to python 2.7! I faced many issues...
View ArticleTesting TizenRT on ESP32
Based on: https://github.com/Samsung/TizenRT/blob/master/build/configs/esp_wrover_kit/README.md Making romfs.img... /comum/workspace/ESP32/TizenRT/tools/fs/../../os/../build/output/bin/romfs.img was...
View ArticleHow to print the value of a #define variable during compilation
This is a nice trick to see the value of a variable: #define XSTR(x) STR(x) #define STR(x) #x #pragma message "The value of NETLIB_SOCK_TYPE: " XSTR(NETLIB_SOCK_FAMILY) It is also a good idea to put...
View ArticleCompiling OpenOCD for ESP32
$ git clone https://github.com/espressif/openocd-esp32 $ cd openocd-esp32 $ ./bootstrap $ ./configure --enable-internal-jimtcl --enable-maintainer-mode --disable-werror --disable-shared...
View ArticleError CMSIS-DAP command CMD_DAP_SWJ_CLOCK failed
After trying to use JLink to flash the NuttX firmware on NXP iMXRT1060_EVK board and receiving the message that it doesn’t support Cortex-M7 (I’m using the most up to date JLink’s firmware), I decide...
View ArticleUsing NuttX as library once again
If you follow this blog you know that I already show how to use NuttX as a library to avoid compiling it all the time using the build system. But unfortunately I did it more than 3 years ago and NuttX...
View Article