Quantcast
Channel: acassis – Alan C. Assis
Browsing all 870 articles
Browse latest View live

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 Article


The 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 Article


Using 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 Article

Running 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 Article

Testing 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 Article


Eclipse 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 Article

ModuleNotFoundError: 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 Article

New 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 Article


Creating 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 Article


How 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 Article

Setting 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 Article

Flashing 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 Article

Flashing 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 Article


Sometimes 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 Article

Removing 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 Article


Testing 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 Article

How 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 Article


Compiling 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 Article

Error 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 Article

Image may be NSFW.
Clik here to view.

Using 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
Browsing all 870 articles
Browse latest View live