Beiträge anzeigen

Diese Sektion erlaubt es ihnen alle Beiträge dieses Mitglieds zu sehen. Beachten sie, dass sie nur solche Beiträge sehen können, zu denen sie auch Zugriffsrechte haben.

Nachrichten - bingo600

1

http://www.ewetel.net/~horst.raap/
https://github.com/HerrSchrader/McBetty


Using : launchpad arm-gcc
gcc version 4.8.4 20140526 (release) [ARM/embedded-4_8-branch revision 211358] (GNU Tools for ARM Embedded Processors)


When compiling McBetty/McBetty/scart_image/boop.orig


I get a linker error
/home/cfo/arm/arm-gcc/gcc-arm-none-eabi-4_8-2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: Warning: alignment 1 of symbol `default_RFsettings' in cc1100/rf.thumb.o is smaller than 4 in infrared/ir_rf.thumbunopt.o


I think there is a wrong definiton in  cc1100/rf.h


To solve : In McBetty/McBetty/scart_image/boop.orig/cc1100/rf.h

Change :

const struct RFsettings_ default_RFsettings;

to

extern const struct RFsettings_ default_RFsettings;


The struct is declared and initialized in rf.c , but actually also defined  in the above rf.h

const struct RFsettings_ default_RFsettings =
{
0x01, //address
0x01 //channel
};


The same error is in the current boop svn (rev 60)

Does that make sense ??

/Bingo

Edit:
Added the makefile & linkerfile used for McBetty (boop.orig) , overwrite the files from svn
Added makefile for 8051 scart_image


2

ich habe die Einstellungen für die Toolchain von Launchpad aus dem vorherigen Beitrag eingecheckt


Thanx  ;)

/Bingo
3
Brauch doch die neue arm launchpad compiler
https://launchpad.net/gcc-arm-embedded

See for new make & linkerfile
http://bettyhacks.com/forum/index.php?topic=1049.msg2888#msg2888

Copy (replace) the files from the archive to boop/trunk , and it will work wit the launchpad compiler

No need for external libs etc

/Bingo
4
Nice to hear that it works  ;)

/Bingo
5

If you want to use the arm launchpad compiler

see here

http://bettyhacks.com/forum/index.php?topic=1049.msg2888#msg2888

/Bingo
6
Ohh

I haven't loaded the firmware , just checkked that it could/would build

/Bingo

My old makefiles were here
http://bettyhacks.com/forum/index.php?topic=289.msg2099#msg2099

Diffs against svn is in diff.txt
7

Seems like he's switched to summon

From the "repos"
boop    2013-04-16    gunnarhenne    [r57] Anpassung an summon ARM toolchain

Trunk
svn checkout svn://svn.code.sf.net/p/boopfirmware/code/ boopfirmware-code

I just compiled the trunk with the attached Makefile & linker-file.


I used this "arm launchpad" compiler , a newer one might also work
gcc version 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601] (GNU Tools for ARM Embedded Processors)


It's strange that the makefile creator keeps using ld for linking and not gcc
That is NOT the recommended way , and that's why he has to specify those libraries manually.

I have corrected to use gcc as linker

Have fun

Ps: You have to adapt this line in the makefile , to point on there you have installed the arm-gcc toolchain
ARMBASE = $(HOME)/arm/arm-gcc/arm-gcc/


/Bingo
Dänemark"
10
Sonstiges / Re: Neues user
30. Nov 2012, 23:30
Hi Siegfried

Thanx , but i know that url WS pointed me to it here  ;)

http://www.mikrocontroller.net/topic/278675#2938127

I actually got the Bettys as a remote to my upcomming homeautomation , where i use RFM12 433Mhz radios. The Bettys are perfect as user interface & displayunits.

Now i need some guidance in the Menu system & in the CC1100 to RFM12 communication.


/Bingo
11
Sonstiges / Re: Neues user
30. Nov 2012, 17:48
I succeded in getting Codesourcery to compile also

I added -nostartfiles and -mthumb-interwork

LDFLAGS = -mthumb-interwork -nostartfiles -Xlinker -Map -Xlinker boop.map -Tlpc2220_rom.ld

And added a section to the linkerfile


/Bingo
12
I also got a 16'pack - to Dänemark.
No problems

/Bingo
13
Sonstiges / Re: Neues user
28. Nov 2012, 21:52
More files

Including a working firmware , made today

Ohh the lpctool binary is build under Ubuntu 10.04 32-bit

/Bingo
14
Sonstiges / Re: Neues user
28. Nov 2012, 21:51
I have succeded in compiling the boop/trunk under Linux (Ubuntu 10.04)

I didn't succed in using Codesourcery Lite , maybe because it hasn't got any interwork libraries.

So i used the suggested Ronetix Toolchain from here
http://download.ronetix.info/toolchains/arm/ronetix-gnutools-arm-elf-4.1.1-linux.tar.bz2

Extract the above toolchain somewhere.

I had to modify a bit in the makefile , so copy the Makefile.local from the makefiles-trunk.zip into the boop/trunkdir.

Adapt the below line in the Makefile.local , po point at where the armlelf directory of the toolchain is
ARMBASE = ${HOME}/arm/arm-gcc/arm-elf

Do a : make clean all

Connect your 3v3 serialadapter to the Betty (I had to cross the RX & TX lines)
Put your Betty in bootloader mode (I do it manually)

1: Connect Bootloader-pin to Gnd
2: Connect Reset-Pin to Gnd
3: Disconnect Reset-Pin from Gnd
4: Disconnect Bootloader-pin from Gnd

First now ... Start the lpctool program

lpctool -d /dev/ttyUSB0 -i -v -e -a boop_rom.bin

And away you go .....

After the Upload , connect/disconnrct reset to Gnd , and Betty shows.


Hope it helps a bit

/Bingo
15
Sonstiges / Re: Neues user
28. Nov 2012, 17:23
Update ...

Got my Bettys today - Thnx asgaard

/Bingo