[SOLVED]using Atmelstudio 7 to compile Anduril for D4 + Aux

5 posts / 0 new
Last post
Anthon
Offline
Last seen: 7 hours 14 min ago
Joined: 09/07/2015 - 10:33
Posts: 583
[SOLVED]using Atmelstudio 7 to compile Anduril for D4 + Aux

Edit: problem solved and full anduril running in my D4 with aux port enabled. If you need the file Pm me

Hello

I’m trying to compile a full anduril build for Emisar D4

I’ve followed this topic to add the required lines to the code to enable de aux port in the driver

http://budgetlightforum.com/node/65593

However, I’m getting this error when trying to build the firmware: looks like the code is too big, removing something like bike flasher mode solves the problem and builds the .hex sucessfuly, but I want a full anduril

This is the error I get:

Quote:
anduril.elf section `.data’ will not fit in region `text’

region `text’ overflowed by 26 bytes

recipe for target ‘anduril.elf

ld returned 1 exit status

Could you help me? Toykeeper told me that I should be able to compile the rom changing the compiler settings, copying the CFLAGS values in the bin/build.sh script into the Atmel GUI to produce a smaller file. However I’m new with Atmelstudio and I don’t know how to do that

I will share the anduril.hex file once finished and tested in my D4

Edited by: Anthon on 05/24/2019 - 06:07
contactcr
Offline
Last seen: 55 min 46 sec ago
Joined: 05/19/2017 - 18:52
Posts: 2847
Location: US
Anthon
Offline
Last seen: 7 hours 14 min ago
Joined: 09/07/2015 - 10:33
Posts: 583

contactcr wrote:
Here is your answer:

http://budgetlightforum.com/comment/1457826#comment-1457826

thank you a lot, you saved my day

I got the .hex

I’m going to try it tonight and if it works I’ll share it here

Regards

Anthon
Offline
Last seen: 7 hours 14 min ago
Joined: 09/07/2015 - 10:33
Posts: 583

Tested and it works

If someone needs the .hex, don’t hesitate to contact me

trailhunter
Offline
Last seen: 1 hour 32 min ago
Joined: 12/23/2015 - 17:56
Posts: 608
Location: VA

how were you able to get this to work? I minimized code and still get the error

Quote:

[localhost anduril]$ ../../../bin/build-tiny85.sh anduril -DCONFIGFILE=cfg-fw3a.h
avr-gcc -DCONFIGFILE=cfg-fw3a.h -Wall -g -Os -mmcu=attiny85 -c -std=gnu99 -DATTINY=85 -I.. -I../.. -I../../.. -fshort-enums -o anduril.o -c anduril.c
avr-gcc -Wall -g -Os -mmcu=attiny85 -o anduril.elf anduril.o
/usr/lib/gcc/avr/4.9.2/../../../../avr/bin/ld: anduril.elf section `.text’ will not fit in region `text’
/usr/lib/gcc/avr/4.9.2/../../../../avr/bin/ld: region `text’ overflowed by 54 bytes
collect2: error: ld returned 1 exit status