Go to advanced search

by McGregor80
Thu May 09, 2013 8:27 am
Forum: General programming discussion
Topic: How to compile directly in to Pi folder?
Replies: 2
Views: 861

Re: How to compile directly in to Pi folder?

I solved the problem by re-building the compiler from the beginning.
but i was doing something like this:

gcc main.c -o [path to the ftp//]/main
by McGregor80
Wed May 08, 2013 3:01 pm
Forum: General programming discussion
Topic: Problem with raw-reading AUX register
Replies: 8
Views: 1836

Re: Problem with raw-reading AUX register

No answers. Maybe in this case someone can show me some example how to raw read a register value from the PI?
by McGregor80
Mon May 06, 2013 2:23 pm
Forum: General programming discussion
Topic: Problem with raw-reading AUX register
Replies: 8
Views: 1836

Problem with raw-reading AUX register

Hi I'm trying to read data from AUX_MU_LSR_REG (0x7E215054). I modified code for manipulation of GPIO ports but i only get 0 when reading the register. What is it what i'm doing wrong? Here are all #include... #define BCM2708 0x20000000 #define GPIO_BASE (BCM2708+0x200000) #define UART_BASE (BCM2708...
by McGregor80
Tue Apr 23, 2013 12:50 pm
Forum: General programming discussion
Topic: How to compile directly in to Pi folder?
Replies: 2
Views: 861

How to compile directly in to Pi folder?

Hi Experts, I managed to compile gcc cross-compilator on my Ubuntu 10.12 (if i remember right). It works fine and i can compile c files and create working on Pi executable files. (i use arm-unknown-linux-gnueabi-gcc). I wanted to make things easier so i enabled SSH and started ftp server on the PI. ...
by McGregor80
Thu Apr 11, 2013 4:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART receiving in wrong order
Replies: 8
Views: 1947

Re: UART receiving in wrong order

Ok. Now i know why the Pi reacted like this.
It was the:

Code: Select all

options.c_iflag&=~IXON
which was the reason why the 0x11 and 0x13 signs were not displayed when i printf the buffer on the screen.

However i still don't understand why sometimes the Pi was missing to read the stop sign.
Any ideas?
by McGregor80
Sun Mar 24, 2013 10:35 pm
Forum: General programming discussion
Topic: c code::blocks@ubuntu x86 to Raspberry PI
Replies: 5
Views: 4924

Re: c code::blocks@ubuntu x86 to Raspberry PI

Finally some progress. I manage to install git and the compiler works. Here is what i did for these amateurs who will have similar problem: sudo apt-get install git git clone git://github.com/raspberrypi/tools.git sudo apt-get install gcc-arm-linux-gnueabi make ncurses-dev However when i try to buil...
by McGregor80
Sun Mar 24, 2013 8:28 am
Forum: General programming discussion
Topic: c code::blocks@ubuntu x86 to Raspberry PI
Replies: 5
Views: 4924

Re: c code::blocks@ubuntu x86 to Raspberry PI

Thanks.
I'm still not there.
I don't know how to configure codeblocks to compile.
It's not finding automatically the files for compiler, linker, etc and i don't know what to set up manually.

Is there anyone who can help me with this one. please
by McGregor80
Tue Mar 19, 2013 6:04 pm
Forum: General programming discussion
Topic: c code::blocks@ubuntu x86 to Raspberry PI
Replies: 5
Views: 4924

c code::blocks@ubuntu x86 to Raspberry PI

Hi there, Can someone help me with configuration of code:blocks on my Ubuntu so i can compile, build and somehow export to my raspberry Pi which is on the same local network. Current progress: 1. I installed code::blocks 10.05 from Ubuntu Software Center (i've seen on codeblocks webpage that there i...
by McGregor80
Fri Mar 08, 2013 2:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART receiving in wrong order
Replies: 8
Views: 1947

Re: UART receiving in wrong order

to me looks like synchronisation of two systems 1/ Sender starts sending bytes 2/ Receiver Driver receives first byte 3/ Receiver program flushes uart buffers after first char received but not second The code is incomplete and appears to have a commenting error "/*" no close "*/" This is guess as I...
by McGregor80
Fri Mar 08, 2013 2:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART receiving in wrong order
Replies: 8
Views: 1947

Re: UART receiving in wrong order

The sender transmits :11 22 33 44 55 66 77 88 99 13 But the PI receives 11 22 33 44 55. Here read() returns n=4 and printf displays 22 33 44 55. Then in the next loop round the read() returns n=4 and printf displays 66 77 88 99. (the 13 becomes \n sign) That's why i believed that somehow the softwar...
by McGregor80
Thu Mar 07, 2013 11:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART receiving in wrong order
Replies: 8
Views: 1947

UART receiving in wrong order

Hi experts, I have a problem while listening to my UART. Just now i'm trying to "spy" uart communication between two devices. So the whole point is to just listen and display on the screen (with some formatting). Each message starts with "Start Byte" (11) and ends with "Stop Byte"(13). after enablin...
by McGregor80
Thu Feb 28, 2013 9:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RS485<->Ethernet via PI
Replies: 6
Views: 4701

Re: RS485<->Ethernet via PI

It seams than you have a lot experience in this. I let myself ask some quck questions which bothers me just now. If you know the answers than i save a lot of time. 1. GPIO14(TX) and GPIO15(RX). Is this the miniUART (BCM2835 manual chapter2 ) or UART (BCM2835 manual chapter 13). I don't understand wh...
by McGregor80
Thu Feb 28, 2013 7:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RS485<->Ethernet via PI
Replies: 6
Views: 4701

Re: RS485<->Ethernet via PI

Thanks Daniel, The Linux settings was correct (minicom TX and RX worked fine) the thing which was missing was this: options.c_lflag=0; I didn't know it contained something important for the receiver. It must be the "echo" bit because from the beginning i got echoing on my test terminal. However i bl...
by McGregor80
Wed Feb 27, 2013 3:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RS485<->Ethernet via PI
Replies: 6
Views: 4701

Re: RS485<->Ethernet via PI

Thanks Daniel, The issue seams to be not so easy but i'll give it a try because i already have the hardware. For simple testing i use a delay loop which calculates the delay depending on number of Bytes which suppose to be sent. Right now i have problem with receiver as i don't get anything back. I ...
by McGregor80
Tue Feb 26, 2013 11:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RS485<->Ethernet via PI
Replies: 6
Views: 4701

RS485<->Ethernet via PI

Hi, I'm strugling a bit with a small project. The issue is to write a simple bidirectional converter from RS485 to Ethernet. Right now i'm trying to do the easiest part which is sending a message to Pi's UART(where i have the RS485 converter chip). The hardware is runing and it's ok. The problem is ...

Go to advanced search