How to use a high polling rate mouse on Linux
I just bought a Cooler Master Storm Mizer mouse. Unboxing here: This mouse is not so expensive and has a good specification (8200 DPI and 1000Hz). But by default Linux uses 125Hz polling rate. You can...
View ArticleTesting U-Blox Sara-G350 on NuttX
This is the result of my Sara G350 debug on NuttX: NuttShell (NSH) nsh> pppd tun fd:3 tty fd:4 ipcp init AHDLC_TX - transmit frame, protocol 0xc021, length 4 offline 0 0x05 0x01 0x00 0x04 AHDLC_TX -...
View ArticleKeep your git repository updated with a friend’s repository
This is the way I use to keep my repository in sync when working on a project together with a friend: Clone your main project: $ git clone git.yourproject.com/projectname.get Add your friend...
View ArticlePintura com tinta de poliuretano e tipos de catalizadores
Resolvi pintar algumas partes do CNC que estou montando com tinta poliuretano. Pintar com tinta à base de poliuretano tem a vantagem de um acabamento muito profissional, mas exige um certo cuidado....
View ArticleUsing the Linux screen command as terminal emulator to serial console
I want to read the output of NuttX’s hexdump to see if a binary file was generated correctly. Unfortunately using “minicom” to select and read text it not an option. Then I decided to use Linux...
View ArticleUsing SmartFS on NuttX
After fixing many issues and thanks to help of Greg Nutt and Ken Petit (SmartFS author) finally I got SmartFS working on NuttX. This is the NuttX initialization with FileSystem debug enabled: ABCDF...
View ArticleJLinkExe bad behaviour
It is strange, JLinkExe fails to flash a new STM32F407 board that I just mounted: $ sudo JLinkExe -if SWD SEGGER J-Link Commander V4.98e ('?' for help) Compiled May 5 2015 11:49:39 DLL version V4.98e,...
View ArticleFirmware update using DFU to STM32F407
This is the way I did the firmware update using DFU on my board: $ sudo apt-get install dfu-util $ sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D nuttx.bin dfu-util 0.8 Copyright 2005-2009 Weston...
View ArticleInstall Nexus Experience ROM on Moto G 2014
I installed the Nexus Experience ROM in the Moto G of a friend of mine. These are the files I used: Android6.0.1_NX_R10.0.4_MotoG2014.zip NX-GAPPS_M_Release1.2_STD.zip TWRP_2.7.1.1.img These files...
View ArticleUsing the NuttX’s USB Mass Storage to copy SPI NOR Flash Content
I’m using an 8MiB SPI NOR (Winbond W25Q64) on my board and I was looking for a way to copy its content. Some readers could recall I used the hexdump and screen to copy small files from NuttX, but it is...
View ArticleConfiguring Linux’s serial port to raw mode
I was facing a strange issue when debugging a serial communication from a microcontroller on a Linux machine. I was using this command to print modem communication: $ cat /dev/ttyUSB0 | hexdump -v -e...
View ArticleMy IPCam is crashing
Just reporting an issue I got on my IPCamera: [ 113.580000] Unhandled fault: external abort on non-linefetch (0x808) at 0xfc000004 [ 113.590000] Internal error: : 808 [#1] PREEMPT [ 113.590000] Modules...
View ArticlePlaying the Game for a Longer Life
I read some news about a research that suggest removing the senescent cells from the organism will increase the lifespan in animals about 25% (in mouse at least). Then I decided to search for it and...
View ArticleTesting a RGB LED on NuttX with brightness control
In my previous post I explained how to control a RGB LED on NuttX, but at that time it doesn’t have brightness control. Now I created a new driver that uses three PWM pins to control the LED intensive....
View ArticleTips to use GPG to encrypt file
These are some tips to encrypt a file with the Key ID from a username@domain.com : Search the user Key ID: $ gpg --keyserver pgp.mit.edu --search-keys username@domain.com Let us to suppose the user Key...
View ArticleUsing OpenOCD to program a homebrew nRF51822 board
I created a board to test the Bluetooth Low Energy using Nordic nRF51822 chip, see: I did everything today (schematic, pcb routing, board etching, soldering SMD components and software test). For flash...
View ArticleThis is my Dell laptop hardware list
$ sudo lshw -short H/W path Device Class Description ======================================================= system Computer /0 bus Motherboard /0/0 memory 7865MiB System memory /0/1 processor...
View ArticleWhat to do when grub-install fails
I was trying to reinstall GRUB to use the new kernel image I compiled, but it was failing: # grub-install /dev/sda Fortunately using the “grub” terminal solved it: # grub grub> root (hd0,0) root...
View ArticleCreating a boot logo to Linux kernel again
About 7 years ago I posted here how to create a boot logo: https://acassis.wordpress.com/2009/07/01/creating-a-logo-to-linux-kernel/. Those tips were very useful, but it was missing an important step,...
View ArticleHiding the blinking cursor of video console
I’m customizing a Linux distro to boot with a logo in full-screen. So far so good, except the Linux video logo insist to show “boot-logo bigger than screen size” when using an 800×600 image with...
View Article