Skip to content

GNU ARM – nano.specs not found

Last days I’ve been trying to compile a STM32F4xx project with Ubuntu 14.04LTS, Eclipse and GNU ARM plugin for Eclipse. Now it says that nano.specs is missing. Here is my build log: I found some nano.specs files on my computer. What should I do? Just remove linker flag (I can’t actually do that, b…

Given a PPID, how to find all of associated PID?

It might be a weird question as I searched and found many people asking about how to find the PPID given a PID. However, I’m interested in finding out all the PID of a given PPID. The incentive was to run a process check using pidstat and from my test with pidstat, it seems to be that pidstat only repor…

SIGALRM, interval timers and problems with sleep()

I am working with porting one of our embedded microcontroller libraries to linux and writing a python wrapper around it. One of my low level modules depends on a callback that gets called every 10ms. This callback counts up software timers that each have callbacks of their own. These timers are used all over …

Communicating with CashCode bill acceptor in linux

I’ve implemented CCNET protocol to communicate with CashCode bill acceptor from my software on Linux. Initially I spent lots of time trying to figure out why the device does not respond to the commands I’m sending. Using trial-and-error method I found the solution to set the following options for …

why file with hole has smaller disk block than file without hole?

I’m newbie in unix system programming There is code making file with hole. Output result is: Why file with hole has fewer disk block than file without hole? In my thinking, file without hole takes smaller disk blocks Because file with hole is more spreaded than without hole.. From “Advanced Progra…