- Posts: 168
Help figure out compile issue?
- MatCat
- Topic Author
- Offline
+ 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.
- MatCat
- Topic Author
- Offline
- Posts: 168
/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.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Specificaly I recommend this one:
83d62e9bfc79e03737c2f1977004bef6e6e20562
FYI, I build on Ubuntu Lucid and Precise without any issue using that version
And welcome back
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
+ 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.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
do:
make clean
make TYPE=prd
to work around that.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080288d8 = 146.21kB
RAM: 0x20000000 - 0x200060cc = 24.20kB
the .elf I take it is the rom to upload with dfuse?
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I assume you figured this out, but it is the dfu file you need to upload. The elf is just an intermediate stepMatCat wrote:
Much better!+ Building 'devo8.elf' ROM: 0x08004000 - 0x080288d8 = 146.21kB RAM: 0x20000000 - 0x200060cc = 24.20kB
the .elf I take it is the rom to upload with dfuse?
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Yeah I looked at the makefile and figured it out, nice there is even a flash option in the make .PhracturedBlue wrote:
I assume you figured this out, but it is the dfu file you need to upload. The elf is just an intermediate stepMatCat wrote:
Much better!+ Building 'devo8.elf' ROM: 0x08004000 - 0x080288d8 = 146.21kB RAM: 0x20000000 - 0x200060cc = 24.20kB
the .elf I take it is the rom to upload with dfuse?
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.
- PhracturedBlue
- Offline
- Posts: 4402
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 personallyMatCat wrote: Yeah I looked at the makefile and figured it out, nice there is even a flash option in the make .
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
there is a script: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?
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.
- quique65
- Offline
- Posts: 45
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.
- MatCat
- Topic Author
- Offline
- Posts: 168
You are correct, I didn't notice it dropped out a .bin and .dfu as well.PhracturedBlue wrote:
there is a script: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?
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.
- sbstnp
- Offline
- Posts: 649
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
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- quique65
- Offline
- Posts: 45
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.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Help figure out compile issue?