Programming :: 12F675 Programming From Linux

Dec 30, 2010

Back at uni I used to love programming in assembly, we used ARM processors and some pre-made boards. Anyway, I'd like to try and get back into it, so I have acquired some basic electronic components, some prototype board, a couple of 12F675 chips and a JDM serial programmer.Now, whilst I could run this from my works laptop on Windows, I'd far prefer to use my Linux desktop! (of course!) I'll be using my favourite editor to write the code so not bothered about an all singing and dancing IDE.I have a couple of questions...

1) What can I use to assembly/compile the source code? Does gcc have any support? If not, can someone recommend a free assembler, ideally command line?

2) Is there any good simulator software out there (I've found a few but not found people who have actually used them)? It would be useful to be able to run the code through a simulator before actually uploading to the chip - saves time and effort uploading something to find I've missed a command out!

3) Any useful links, tutorials, forums?

4) Any other resources? Like I said, I can (or at least used to be able to! ) write code for an ARM chip but the instruction set it different for this. I can easily pick up languages though so not too bothered about learning from scratch. I know people will say use c, but I'd far prefer to go down the ASM route, just for my own benefit and enjoyment!

This isn't for any particular project, it's just a hobby - once I've got a sound grounding then I'll start looking at a few more elaborate things!

View 1 Replies


ADVERTISEMENT

Programming :: Mobile Phone Programming Using Linux

Sep 30, 2010

I am trying to work on mobile phone programming in Linux platform using C language. Can somebody guide with this? I tried to search the web but I didnt get appropriate site.Also guide me about the mobile phones compliant with linux platform for programming using C language.

View 5 Replies View Related

Programming :: Add Linux Users Online?

Jul 6, 2010

Im looking for a script that could help me create linux users on my server online using a website.Anybody know where i could find one?or how to make it? not the best with coding doh

View 3 Replies View Related

Programming :: Perl From USB Pen To Run On Both Linux And Windows

May 23, 2011

Im somewhat new at perl and was wondering if there was a way to run a perl script or tool made from perl, from a USB pen that would work both on Linux and on Windows?

View 1 Replies View Related

General :: Kernel Programming For BSD Or Linux?

Jul 20, 2010

I have recently been getting into kernel development and was wondering whether the Linux kernel or BSD kernel would be easiest for newbies (such as myself). Does anyone know? I am really considering BSD because it seems to me to have the best documentation.

View 2 Replies View Related

Programming :: Measuring Microseconds With Linux

Oct 27, 2010

I need to measure the time it takes for a program I'm writing to do Its job in microseconds resolution. I'm using Ubuntu 10.10. My Idea is, to write a device driver that directly reads the counter that produces the interrupt of RTC ticks. How do I do this, for a Linux kernel and a PC hardware?

View 4 Replies View Related

Debian Programming :: Linux Headers For Armhf And Gcc

Jun 24, 2015

I'm running debian testing on my armhf machine. I need to install linux headers after searching with apt-cache. I ran the command

Code: Select allsudo apt-get install linux-headers-3.16.0-4-all-armhf

But it says it will also install gcc-4.8.. I checked my gcc version which is 4.9. and running. sudo apt-get install gcc . says gcc is already the new version.How do i install the headers without installing gcc-4.8

View 3 Replies View Related

Programming :: Could Someone Confirm My Understanding Of Linux Drivers?

Jun 20, 2011

2 Questions:

1) Is there a dedicated forum on the net for people writing Linux drivers?

2) I've been reading over how Linux drivers are put together and even made my own dummy driver. However, before I begin writing the "real" driver I set out to write, I would like someone with some driver writing experience to verify that my knowledge is correct.

The driver I intend to write is for a PCI card. The very first thing I need is to know is the vendor ID and device ID of the card. After having that information, I can then use the pci_register_driver command to open a connection to the card. At this point, I need to use the pci_*_config_* commands (an example of a pci_*_config_* command is pci_read_config_byte) to figure out where the device is mapped in memory and what I/O ports I need. Now, the pci_* breed of commands take a parameter integer (which is an address) as there second argument. The address(es) which I will use and what they accomplish is device dependent. At this point, after having otained the I/O ports I need, I can then begin writing to them via the inb, outb, etc commands. Writing to X port will have Y result but this is vendor specific.

View 2 Replies View Related

Programming :: How To Compile Mysql For Arm9 Linux

Jan 3, 2011

I want to compile mysql for arm9 linux box, I did not find any good resource.

View 5 Replies View Related

Programming :: Read A Txt File With C++ In Linux And Output It?

Mar 15, 2010

i have wrote a long piece of code above with the "main" which is calling openFile( &fout, filename )filename contains the txt name in a form of "data.txt"i wanna read the data from the file and output it into fout for later use.the data in that file is a vector looking interger group.i have the following code:

int openFile( ofstream * fout, const char * filename)
{
ifstream iFile(filename);

[code]...

View 1 Replies View Related

Debian Programming :: App That Creates Bootable Images For Linux

Nov 29, 2013

I'm looking for an app for Linux that creates bootable images. Back when I used windows, I used Imgburn. Now, I need an app like that for Linux. Wherever I looked online, I saw either one (or both) of these ideas.

1. Run Imgburn under wine
2. Get k3b

I don't like using wine because the programs run very slow. I'm not sure exactly how to get k3b to produce a bootable image. So that's where I'm stuck.

View 14 Replies View Related

Debian Programming :: Compiling Linux Kernel Module

Aug 27, 2014

I'm trying to compile a Linux kernel module called hello-2.c using the command "make -C /lib/modules/$(uname -r)/build M=${PWD} modules" (without the quotes) (which I found online), and the following is the (seemingly successful) output.:

Code: Select allmake: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  Building modules, stage 2.
  MODPOST 0 modules
make: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'

However, I don't see a hello-2.ko (in the same folder or anywhere else for that matter). I'm Using Debian GNU/Linux 7.6.

Everything I am doing is within a folder/directory called "thefolder" (without the quotes) in the "/tmp" directory (without the quotes).

Why I can't see a hello-2.ko, and what to do to get it?

View 2 Replies View Related

Programming :: Perl Script To RDP LAN Of Windows Machine From Linux?

Apr 13, 2010

I am a newbie in perl and I am trying to develop a script that should try to login on all windows machine in a LAN say 192.168.100.0/24 with a given username and password. I am not sure wether it will use RDP or any other protocol, so I am getting confused how to proceed.

View 3 Replies View Related

Programming :: Developing Application Which Invokes Linux Exceutable

May 2, 2011

i am again stuck with the same problem. I need to run an executable which i got from University of Edinburgh.

View 14 Replies View Related

Programming :: Perform Floating Point Operations In Linux Kernel?

Apr 7, 2011

how to perform floating point operations in kernel? i answered that its impossible to perform floating point operations in kernel.but he is telling that its possible but with some feature to be added.can any body know about this perfectly??

View 1 Replies View Related

Programming :: 3D Programming - Difference Between JOGL And C++ OpenGL Programming?

Aug 27, 2010

I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.

So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?

Why and what is the main difference between them?

View 4 Replies View Related

Programming :: LINUX "hacx": Click On A Button Of PHP Webpage?

Jul 18, 2010

I am working on a piece of html/php code. With a specific moment of the week, I would like that linux click on the button : RESET

( indicated with
Code:
<INPUT type="submit" name="bsubmit" value="Reset">

[code]....

View 1 Replies View Related

Programming :: Conflicting Type Declarations Between Sys/types.h And Linux/types.h

Sep 12, 2010

I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".

#include <rtnetlink.h>
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv[])
{
return 0;
}

The program will demonstrate such type conflicts.

View 3 Replies View Related

Programming :: Write MIDI Driver / Interfacing With Linux MIDI

Jul 31, 2011

I am building a midi synthesizer that I'd like to be able to control from linux. I know its a rather broad question, but, how do I go about this? At this point the hardware consists of a simple UART bridge, and I've already written a simple C++ program using termios to send the raw midi data to the device. Obviously I don't want to write a player/sequencer from scratch, so where should I start if I wanted to get this thing to work with, say, a sequencer like rosegarden? Do I write the driver for rosegarden, or hook into alsa or what?

View 1 Replies View Related

Programming :: Asm 64bit Registers - "64-bit Linux Allows Up To Fourteen Parameters To Be Transferred In Registers (6 Integer And 8 Floating Point)."

Mar 28, 2010

I have tried to learn how 64bit asm (nasm in my case) works and found, among the many disparate pieces of info on the net, a few vague inferences that floating point registers can be used for other purposes than what they are intended for, example: "64-bit Linux allows up to fourteen parameters to be transferred in registers (6 integer and 8 floating point)." This would be fantastic for string operations/manipulation (I have never used asm for floating-point operations), can anyone shed a bit of light?

View 8 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code]....

View 1 Replies View Related

Programming :: Groovy Scripting - An Object-oriented Programming Language For The Java Platform ?

Mar 7, 2010

Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.

View 1 Replies View Related

Programming :: Searching For Video Or Screen Cast Which Shows Device Driver Programming?

May 30, 2010

I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better

View 1 Replies View Related

Programming :: Timer In Socket Programming - Wait For X Sec After Read() And Then Disconnect The Client Connection

Mar 8, 2011

I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.

View 3 Replies View Related

Programming :: Totem Python Plugin Programming: Any Signal For Video Mouse Click?

Feb 9, 2011

I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":

Code:
vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)

[code]....

View 3 Replies View Related

Programming :: Socket And Timer Programming - Server Doesn't Execute Any Msg Which Client Sent

May 16, 2011

i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.

#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....

View 1 Replies View Related

Programming :: Headers From Richard Stevens Network Programming Book Not Installing

Oct 27, 2010

I am learning network programming via a book of Richard Stevens.The sample source codes are given here
http://www.unpbook.com/unpv13e.tar.gz
I downloaded and unzipped the file in /usr/src folder.As per the instructions given in README of downloaded archive I did.

View 5 Replies View Related

Programming :: Unix Programming - Single Thread Server Can Support Exactly 2 Clients At Once

Sep 28, 2010

A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit

View 4 Replies View Related

Programming :: Unable To Find Description Of Alsa's Programming Language

Dec 19, 2008

I am unable to find a description of alsa's programing language, this sort of stuff:

[Code]...

I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.

View 2 Replies View Related

Programming :: Choice Of Programming Solutions For Collated Document Repository?

Feb 18, 2011

We have documents on multiple workstations and want to collate them into a single repository to provide text search and download. So far we have implemented rsync to copy files from each workstation under a directory for each workstation on a server (incidentally providing a backup) and have set up text search using Xapian with Omega; users access it via a web browser. Still to do is to set up a system to copy files from each workstation's area on the server to the repository.

Many files are duplicated. In these cases we want to preserve the names but keep a single copy of the file;hard links can be used for that.For each file to be copied from a workstation's area into the collated area we need to check whether it is a duplicate (file size and, if same, MD5 sum) and if so, create a hard link to the original rather than create a copy.A system to detect and replace duplicates in the collated area has been written using ruby and postgresql but the developer cannot commit to continuing this work. It does mean we have a postgresql database populated with "fingerprints" of files in the collated area.My first priority is to get the system working; in the longer term whatever is developed must be maintainable; I do not yet know which language skills are available locally.

I am fluent in bash and competent with awk. Ruby looks nice but I have started to learn python and do think it prudent to learn both at the same time. Python's postgresql capabilities are not settled but may be fine for the simple usage required.What to do? A bash solution would run very slowly but could be developed quickly. Language knowledge aside, I have found it difficult to install ruby on the server (CentOS 5.5;installed rvm but "gem" still not installed; seems a very complex system with its own package management).

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved