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

Image may be NSFW.
Clik here to view.

Flashing NuttX on SAML21 microcontroller

I was trying to use OpenOCD and STLink-v2 to flash a board powered by Atmel SAML21 microcontroller, using this openocd.cfg: # SAML21 X Pro Target # Using stlink as SWD programmer source [find...

View Article


Image may be NSFW.
Clik here to view.

Don’t get fooled by git

It is strange, I “git add” a directory and then rename a file inside it to another name and pushed it to github. Then when cloned again from github noticed the rename file wasn’t there. So you need to...

View Article


Image may be NSFW.
Clik here to view.

Listing of Open Source Ladder editors

I am looking for open-source ladder editors: ClassicLadder is a Ladder/Grafcet editor for Linux/Windows in C: http://sourceforge.net/projects/classicladder/ Soapbox is a Ladder editor in C#:...

View Article

Image may be NSFW.
Clik here to view.

Listing of projects devoted to IoT

There are many open-source “Deus-ex” solution for IoT (a flashion name), then I decided to list some of these projects here: AllJoyn (an AllSeen Alliance framework):...

View Article

Image may be NSFW.
Clik here to view.

JTAG 20 pins to SWD 10 pins cable adapter

This is how I created a JTAG to SWD cable adapter/converter: JTAG | SWD -------------------- 9 | 1 20 | 2 1 | 4 7 | 5

View Article


Image may be NSFW.
Clik here to view.

Using the Nintendo Wii Nunchuk Joystick in the STM32F4Discovery running NuttX

I created a simple NuttX sensor driver (I will implement a joystick driver and send to NuttX mainline) to use Nunchuk Joystick with STM32F4Discovery running NuttX. We have two options to see the NuttX...

View Article

Image may be NSFW.
Clik here to view.

Fix the Ubuntu blinking mouse cursor

If you just installed Ubuntu 14.4 LTS and you get annoyed by mouse cursor blinking all the time, then you get fix it disabling the “Unknown Display”. Open the Unity Control Center clicking in the gear...

View Article

Image may be NSFW.
Clik here to view.

Debugging NuttX on Atmel SAM L21 microcontroller with J-Link programmer

Run JLink GDB server this way: $ JLinkGDBServer -device ATSAML21J18 -if SWD Execute GDB passing the ELF file: $ arm-none-eabi-gdb nuttx Connect to GDB server: (gdb) target remote localhost:2331 Remote...

View Article


Image may be NSFW.
Clik here to view.

A trick to show Debug messages only in the current file

This trick can be used to avoid showing annoying debug message from all drivers and subsystems supported by NuttX: #include <nuttx/config.h> /* Trick to get DEBUG messages only in this file */...

View Article


Image may be NSFW.
Clik here to view.

NuttX board initialization: Where can I put my code to be executed?

Essentially there are 3 levels of board initialization: 1. stm32_board_initialize() Called immediately on boot up to set what resources are needed to boot this system. This includes a little bit of low...

View Article

Image may be NSFW.
Clik here to view.

How to convert a .hex file to .bin file?

If you have a firmware file.hex (Intel HEX) and want to convert it to raw binary (file.bin) you can use this command to convert: $ arm-none-eabi-objcopy -I ihex -O binary file.hex file.bin Source:...

View Article

Image may be NSFW.
Clik here to view.

Cloning NuttX repositories

The NuttX RTOS is moving from SourceForge to BitBucket, during this move Greg Nutt created some separated repositories for NuttX kernel, applications and other submodules. You can see the step to clone...

View Article

Image may be NSFW.
Clik here to view.

Using Watchpoints in the GDB to verify register access

Watchpoint is a feature similar to Breakpoint, but instead of stopping when the Program Counter reach a function or code line, watchpoint stops when an address memory is read (rwatch), write (watch) or...

View Article


Image may be NSFW.
Clik here to view.

GUI for LinuxCNC/Machinekit

There are some nice GUIs for LinuxCNC. These GUI make LinuxCNC or MachineKit (LinuxCNC fork) control more user friend. Here I list three more common options: Axis This is the original GUI shipped with...

View Article

Image may be NSFW.
Clik here to view.

Some facts about Atmel SAM L21 microcontroller

The Atmel SAML21 microcontroller has a complex clock structure, in fact even more complex than some high end processors. This complexity brings more flexibility to enable individually each peripheral...

View Article


Image may be NSFW.
Clik here to view.

How to compile Python code to native executable

First, you need to create a python application, in this case just a “Hello World” test.py file: $ cat test.py print "Hello World" Convert the Python code in C code using Cython: $ cython --embed...

View Article

Image may be NSFW.
Clik here to view.

Some open-source/open-hardware ODB-II related projects

I was searching for Open-Source/Hardware solutions for OBD-II and found some interesting links: CANtact: https://github.com/cantact Opendiag, An open-source OBD-II to Serial adapter board:...

View Article


Image may be NSFW.
Clik here to view.

How to discover what video card and video driver your laptop is using

$ lshw -c video WARNING: you should run this program as super-user. *-display UNCLAIMED description: VGA compatible controller product: GF108M [GeForce GT 630M] vendor: NVIDIA Corporation physical id:...

View Article

Image may be NSFW.
Clik here to view.

Sigrok and a “cheap” Saleae clone can save your life (I meant your time)

An affordable, inexpensive and “cheap” Saleae clone could save your day (really). You could find it for less than U$ 10: http://www.electrodragon.com/product/saleae-usb-logic-analyzer-24m-8-channel/ I...

View Article

Image may be NSFW.
Clik here to view.

Debug I2C SAML21 board initialization using GDB

You already saw how to use JLink to debug Atmel SAML21 microcontroller here. Now we will see the GDB trace when debugging the I2C with callback sample: $ arm-none-eabi-gdb i2c_int.elf GNU gdb...

View Article
Browsing all 870 articles
Browse latest View live


Latest Images