Help figure out compile issue?

More
26 Nov 2012 02:09 #3199 by MatCat
Help figure out compile issue? was created by MatCat
I finally managed to get the arm toolchain installed, now I am at this problem:
+ Compiling 'target/devo8/tx_voltage.c'
target/devo8/tx_voltage.c:17:37: fatal error: libopencm3/stm32/f1/scb.h: No such file or directory
compilation terminated.
make: *** [objs/devo8/tx_voltage.o] Error 1

I looked in the libopencm3 source and didn't even find this header file anywhere in it?

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 02:21 #3200 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Ok so a few of the header files for me where in quite different locations, now I am up to:
/home/matcat/sat/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld: devo8.elf section `.data' will not fit in region `rom'
/home/matcat/sat/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld: region `rom' overflowed by 2704 bytes
objs/devo8/adc.o: In function `ADC_Init':
/home/matcat/src/deviation/src/target/common_devo/adc.c:38: undefined reference to `adc_enable_discontinous_mode_regular'
collect2: ld returned 1 exit status
make: *** [devo8.elf] Error 1

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 03:33 #3207 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Ok what linux distro a does everyone have their toolchain setup in? I just cannot get anything to work properly! I have VM with Debian, Ubuntu, Fedora, BT5, and Windows available, so what am I missing? :)

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 03:46 - 26 Nov 2012 03:48 #3210 by PhracturedBlue
Replied by PhracturedBlue on topic Help figure out compile issue?
Check the instructions. You need a specific version of libopencm3
Specificaly I recommend this one:
83d62e9bfc79e03737c2f1977004bef6e6e20562

FYI, I build on Ubuntu Lucid and Precise without any issue using that version

And welcome back :)
Last edit: 26 Nov 2012 03:48 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 04:54 #3212 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Ok I got past the libopencm3 problems now on to this:
+ Building 'devo8.elf'
/home/matcat/sat/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld: devo8.elf section `.data' will not fit in region `rom'
/home/matcat/sat/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld: region `rom' overflowed by 2696 bytes
collect2: ld returned 1 exit status
make: *** [devo8.elf] Error 1

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 05:00 #3213 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Oh and indeed, it is good to be back! This time around I plan to contribute UART on trainer port and some UI widgets such as virtual controls on screen :), also FY31AP telemetry support :).

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 05:16 #3216 by PhracturedBlue
Replied by PhracturedBlue on topic Help figure out compile issue?
I need to change the default build options.
do:
make clean
make TYPE=prd
to work around that.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 06:13 #3217 by MatCat
Replied by MatCat on topic Help figure out compile issue?
+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080288d8 = 146.21kB
RAM: 0x20000000 - 0x200060cc =  24.20kB
Much better!

the .elf I take it is the rom to upload with dfuse?

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 06:31 #3218 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Ok now I even have eclipse hooked up and ready to go!

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 13:18 #3227 by PhracturedBlue
Replied by PhracturedBlue on topic Help figure out compile issue?

MatCat wrote:

+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080288d8 = 146.21kB
RAM: 0x20000000 - 0x200060cc =  24.20kB
Much better!

the .elf I take it is the rom to upload with dfuse?

I assume you figured this out, but it is the dfu file you need to upload. The elf is just an intermediate step

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 20:07 #3253 by MatCat
Replied by MatCat on topic Help figure out compile issue?

PhracturedBlue wrote:

MatCat wrote:

+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080288d8 = 146.21kB
RAM: 0x20000000 - 0x200060cc =  24.20kB
Much better!

the .elf I take it is the rom to upload with dfuse?

I assume you figured this out, but it is the dfu file you need to upload. The elf is just an intermediate step

Yeah I looked at the makefile and figured it out, nice there is even a flash option in the make :).

I haven't even actually loaded the firmware yet to the radio, going to mess with it tonight.

I will start some threads in the appropriate locations for what I am going to do with the code, plus I need to get my old repo set back up too to store my changes.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 20:20 - 26 Nov 2012 20:20 #3255 by PhracturedBlue
Replied by PhracturedBlue on topic Help figure out compile issue?

MatCat wrote: Yeah I looked at the makefile and figured it out, nice there is even a flash option in the make :).

Be very wary of that. wusselfuzz put it there and said it worked on his Mac. I've never tried it myself. At least one other user bricked his Devo8 (needed to reflash the bootloader) with that tool (though not using 'make' to do so)...I'm not sure how that is possible, but there you go. I always use the Windows tool to upgrade personally
Last edit: 26 Nov 2012 20:20 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 20:40 #3257 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Good point... what did he use to reflash the bootloader and where did he get it?

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 19:03 #3367 by MatCat
Replied by MatCat on topic Help figure out compile issue?
Ok one last silly question on compiling, what is the proper method to prepare the .elf for dfu loading, does it just need to be renamed or is there a tool to prepare it?

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 19:47 #3369 by PhracturedBlue
Replied by PhracturedBlue on topic Help figure out compile issue?

MatCat wrote: Ok one last silly question on compiling, what is the proper method to prepare the .elf for dfu loading, does it just need to be renamed or is there a tool to prepare it?

there is a script:
utils/dfu.py
that is run to generate it. This happens automatically when you run 'make'. you should not need to run this script by hand.

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 20:01 #3370 by quique65
Replied by quique65 on topic Help figure out compile issue?
Hello,
I have this error compiling on Windows with:

make TARGET=devo10 TYPE=prd

+ Copying template files
+ Building 'devo10.elf'
File "../utils/dfu.py", line 42
print 'File: "%s"' % file
^
SyntaxError: invalid syntax
make: *** [devo10.dfu] Error 1

User@User-T60 ~/src/deviation/src
$

Can you help me?. Thank you in advance.

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 20:19 #3372 by MatCat
Replied by MatCat on topic Help figure out compile issue?

PhracturedBlue wrote:

MatCat wrote: Ok one last silly question on compiling, what is the proper method to prepare the .elf for dfu loading, does it just need to be renamed or is there a tool to prepare it?

there is a script:
utils/dfu.py
that is run to generate it. This happens automatically when you run 'make'. you should not need to run this script by hand.

You are correct, I didn't notice it dropped out a .bin and .dfu as well.

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 20:46 #3373 by sbstnp
Replied by sbstnp on topic Help figure out compile issue?

quique65 wrote: Hello,
I have this error compiling on Windows with:

make TARGET=devo10 TYPE=prd

+ Copying template files
+ Building 'devo10.elf'
File "../utils/dfu.py", line 42
print 'File: "%s"' % file
^
SyntaxError: invalid syntax
make: *** [devo10.dfu] Error 1

User@User-T60 ~/src/deviation/src
$

Can you help me?. Thank you in advance.


You need python2 and most likely your have python3 installed.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
28 Nov 2012 21:39 #3377 by quique65
Replied by quique65 on topic Help figure out compile issue?

sbstnp wrote:

quique65 wrote: Hello,
I have this error compiling on Windows with:

make TARGET=devo10 TYPE=prd

+ Copying template files
+ Building 'devo10.elf'
File "../utils/dfu.py", line 42
print 'File: "%s"' % file
^
SyntaxError: invalid syntax
make: *** [devo10.dfu] Error 1

User@User-T60 ~/src/deviation/src
$

Can you help me?. Thank you in advance.


You need python2 and most likely your have python3 installed.


You are right, with Phyton 2 perfect. Thank you very much.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum