I'm trying to compile the bootloader...

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
Post Reply
alex
Posts: 3
Joined: Sun Mar 13, 2016 12:37 am

I'm trying to compile the bootloader...

Post by alex »

Hello.
Sorry for my English, I use Google translator :oops:
I'm trying to compile the bootloader loaded from https://github.com/Uzebox/uzebox/tree/m ... Bootloader and get the message from the compiler:

"C: \ uzebox-master \ demos \ Bootloader> make
0 [main] sh 6308 sync_with_child: child 4488 (0x174) died before initialization with status code 0xC0000142
1526 [main] sh 6308 sync_with_child: *** child state waiting for longjmp
sh: fork: Resource temporarily unavailable
0 [main] sh 6188 sync_with_child: child 6520 (0x174) died before initialization with status code 0xC0000142
1502 [main] sh 6188 sync_with_child: *** child state waiting for longjmp
/ Usr / bin / sh: fork: Resource temporarily unavailable
make: *** No rule to make target `../bootloaderCore.s ', needed by` bootloaderCore.o'. Stop. "

What is the reason? :roll:
Last edited by alex on Sun Mar 13, 2016 9:17 am, edited 1 time in total.
alex
Posts: 3
Joined: Sun Mar 13, 2016 12:37 am

Re: I'm trying to compile the bootloader...

Post by alex »

Ok!
I solved the problem. In Makefile are incorrect way. :geek:
Can somebody suggest what should be changed in the bootloader to compile it for atmega1284? :?:
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: I'm trying to compile the bootloader...

Post by uze6666 »

I don't recall if I ever did compile the bootloader for the atmega1284, because it just can't be overclocked reliably.

But to compile it, there should be just the mcu type and boot loader address to change:

Code: Select all

## General Flags
PROJECT = Bootloader
MCU = atmega1284
TARGET = Bootloader.elf
CC = avr-gcc
##BOOTLOAD_ADDRESS = 0
BOOTLOAD_ADDRESS = 0x1F000
alex
Posts: 3
Joined: Sun Mar 13, 2016 12:37 am

Re: I'm trying to compile the bootloader...

Post by alex »

uze6666 wrote:I don't recall if I ever did compile the bootloader for the atmega1284, because it just can't be overclocked reliably.

But to compile it, there should be just the mcu type and boot loader address to change:

Code: Select all

## General Flags
PROJECT = Bootloader
MCU = atmega1284
TARGET = Bootloader.elf
CC = avr-gcc
##BOOTLOAD_ADDRESS = 0
BOOTLOAD_ADDRESS = 0x1F000
Yes, I did just that. But the compiler generates code for 1284 different from the 644, and it generates an error, does not seem to fit in the allotted space. I need to specify a different interrupt vector?

PS My atmega1284 absolutely does not want to work! :lol: Maximum 3 sec. work bootloader compiled for 644. Even when the Vcc 6.6 :evil:
PPS atmega644 works perfectly! Thank you for Uzebox! :!:
Post Reply