How To Use WDT On Free RTOS Running ATSAMEx embedded by blog_1buq8n - July 24, 20190 After doing some google and spending almost 4 hours on choosing right place to start WDT, we have decided to share our learning here. Well we are using ATSAME54P19/20 controller from Microchip formally Atmel. Watchdog timer - WDT works well without Free RTOS (10.0) but when WDT is enabled along with RTOS it simply does not work well. In big while(1) embedded applications with no RTOS you can always initialize WDT after peripheral initialization and feed/touch WDT in while/main loop. In case of RTOS there are multiple tasks/threads and to be specific in case for Free RTOS when you try to enable WDT right before vTaskStartScheduler(); call it simply does not work. Tried with following solutions - like configure
Ceedling Unit Testing With ATSAME54 Testing by neudeep - May 17, 2019May 20, 20190 This post is continuation of previous post on how to mock local variable in ceedling, please check out previous post before continuing with this article. Another issue is having to add all the microchip files. When CMock gets a hold of the header file it looks at all the functions defined there and generates several mock functions for each. In one program, we are dealing with 4 pins of microcontroller. The pin numbers and its functions are defined in file 'atmel_start_pins.h' which is included in our project. But inside this file there are definitions for all the pins and 'hal.gpio.h' file is included. Inside 'hal.gpio.h' file, another files are included. The original atmel_start_pins.h file is like below, We need
How To Mock Local Variable In Ceedling embedded by neudeep - May 17, 2019August 30, 20210 In embedded system product development there are quite number of tools and framework for unit testing the C code. In this blog post I will explain about how to mock local variable in ceedling for unit testing. Ceedling is one of the widely used open source framework for your test driven product development (TDD) in embedded systems. What is Ceedling 'Ceedling' is open source framework used in unit testing, in our project which involves embedded system development we are using 'ceedling' framework. Ceedling works together with Unity and CMock. Both are are open source tools for testing C code. Ceedling has feature of automatic generation of mock. Read more about ceedling features in our previous blog post. Unit Testing Tools Unit
Install Redmine On Ubuntu With Solved Gem BuildError LinuxAdmin by blog_1buq8n - April 29, 2019December 11, 20191 This post describes in detail on howto install Redmine latest version on Ubuntu 18.04 -x86_64 GNU/Linux system. Redmine is one of the most widely used open source software tool and platform for project management, issue tracking and project execution. With lot of freely available plugins one can also use Redmine as CMS, Invoicing, finance, HR and most of the activities that are involved in small scale software company. If you are startup company and looking for all in one tool Redmine is answer. This guide is little bit lengthy as there are few workaround during installation, so grab your coffee before you start. If your system does not have apache server installed then follow step 1, else skip to step
How To Automate Code Review With Reviewboard LinuxAdmin by blog_1buq8n - April 26, 2019September 5, 20210 This post is simple how-to guide on Automate Code Review And Code Quality With Reviewboard. These days for software code review, code quality and code security lot of online tools are available like BitBucket, Amazon CodeGuru, GitHub, Gitlab but reviewboard is winner. Will list out GitHub and Gitlab major features and move on to Reviewboard. In embedded product development it is important to setup right tools and right process, Earlier, we have seen setting up ceedling test driven product development (TDD) process for embedded systems product development. GitHub is one of the popular source code management tool. It is web based version control system with easy UI. One of the widely used tool in collaborative software development. With Pull Request or
USB Host API’s in the android.hardware.usb Android by Manasi Dharne - April 26, 2019April 30, 20190 When Android-powered device is in USB host mode, it acts as the USB host, powers the bus, and enumerates connected USB devices. Manifest Requirements Following things need to be add in Manifest file: <uses-feature> element that declares that your application uses the android.hardware.usb.host feature.Set the minimum SDK of the application to API Level 12 or higher. add <intent-filter>(USB_DEVICE_ATTACHED) and <meta-data> .<meta-data> points to an xml file which contains vendor-id,produt-id,class,subclass,protocol.to give information <usb-device> tag can be used. <manifest ...> <uses-feature android:name="android.hardware.usb.host" /> <uses-sdk android:minSdkVersion="12" /> ... <application> <activity ...> ...
Redmine Could Not Spawn Process Error Solved LinuxAdmin by blog_1buq8n - April 19, 2019December 11, 20191 Redmine error solved for passenger.
EmbSysRegView Alternative Plugin For Eclipse embedded by blog_1buq8n - April 11, 2019April 13, 20190 If you are looking for alternate option for EmbSysRegView (embedded system register view) plugin or wondering 'How to Add Register Details View in Eclipse" this post describes simple trick to it. The standard Eclipse registers view shows only the core registers, which is not enough in embedded system development. So, EmbSysRegView – is an open source solution for 8, 16 and 32 bit microcontroller to display special function registers (SFR) while debugging. EmbSysRegView is a good plugin which supports GCC toolchain including GDB with Eclipse for emebedded system development, but it is not maintained and lacks support for new controllers. One can always refer to previous post we have seen how to add register details view in Eclipse for
EmbSysRegView In Eclipse For SAME54 On Ubuntu embedded by blog_1buq8n - April 4, 2019April 11, 20191 After successfully able to debug using OpenOCD and Eclipse, Now it is time to explore more. To start with, lets install EmbSysRegView plugin, This plugin gives similar functionality to the 'I/O view' in Atmel Studio 7. It displays special functions registers (SFR), peripheral registers values and memory values. This needed in embedded system development. Installation Bad news is, You can not install the EmbSysRegView plugin from the eclipse marketplace since eclipse marketplace is referring to old sourceforge download URL. Installation from Marketplace fails: An error occurred while collecting items to be installed session context was:(profile=_Applications_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: http://embsysregview.sourceforge.net/update/plugins/org.eclipse.cdt.embsysregview_0.2.6.jar. The new link to download is from sourceforge latest download, But it does not download full files and this
Debugging in Eclipse Using OpenOCD on Ubuntu embedded by blog_1buq8n - April 3, 2019April 11, 20192 This is second part of ongoing tutorial on setting up GCC + Eclipse + OpenOCD environment for use with the SAME54 Xplained pro board on latest Ubuntu system. In order to be able to follow this blog entry you must already have the gcc-arm toolchain and openOCD configured When we talk about debugging it is important to know that the actual "debugger" or emulation hardware is "on chip" and is called the "on chip debug" (OCD) hardware. While there are other methods to debug your embedded code using DDD, Kgdb, & Gdb on Ubuntu in this post will see debugging using Eclipse. Prerequisite - Download and install the latest version of Eclipse (open-source integrated development environment). Compile and install openOCD