Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maximum firmware flash size. #1

Merged
merged 5 commits into from
Jul 22, 2019

Conversation

3d-gussner
Copy link

As this have been changed in mkbel/PF-build-env@595cc4f
I think it belongs also here as users using Arduino IDE 1.8.5 GUI version should have the same build environment as Prusa uses in build.sh and we in PF-build.sh

Changes are made to prusa3drambo-1.0.0\boards.txt

Value of rambo.upload.maximum_size=258048 changed to 253952

As this have been changed in mkbel/PF-build-env@595cc4f I think it belongs here.
@3d-gussner
Copy link
Author

@DRracer Just curious why don't you have the U8glib library from https://github.com/ultimachine/ArduinoAddons/tree/master/rambo included? Isn't that used anymore or wasn't ever?

@3d-gussner
Copy link
Author

@DRracer Wouldn't it be possible to have the avr6.xn library change made by @mkbel (2nd language) included in here? Ultimachine did it with the U8glib library.

Added tool dependecies to stay with Arduino IDE 1.8.5 and boards version 1.6.20.
As there are updates for avr boards I try to fix the build environment to a known version.
@DRracer
Copy link
Owner

DRracer commented Jul 22, 2019

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.
avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?
Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

@DRracer DRracer merged commit 5434e34 into DRracer:master Jul 22, 2019
3d-gussner added a commit to 3d-gussner/Prusa-Firmware that referenced this pull request Jul 22, 2019
@3d-gussner
Copy link
Author

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.

I also couldn't find it anywhere, so we are fine.

avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?

At this moment I solved it by unzip and/or copy the file in PF-build.sh using my modified PF-buil-env repository.

It would be great if we could have it in the JSON file. Have to look into that.

Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

Cool

4 similar comments
@3d-gussner
Copy link
Author

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.

I also couldn't find it anywhere, so we are fine.

avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?

At this moment I solved it by unzip and/or copy the file in PF-build.sh using my modified PF-buil-env repository.

It would be great if we could have it in the JSON file. Have to look into that.

Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

Cool

@3d-gussner
Copy link
Author

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.

I also couldn't find it anywhere, so we are fine.

avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?

At this moment I solved it by unzip and/or copy the file in PF-build.sh using my modified PF-buil-env repository.

It would be great if we could have it in the JSON file. Have to look into that.

Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

Cool

@3d-gussner
Copy link
Author

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.

I also couldn't find it anywhere, so we are fine.

avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?

At this moment I solved it by unzip and/or copy the file in PF-build.sh using my modified PF-buil-env repository.

It would be great if we could have it in the JSON file. Have to look into that.

Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

Cool

@3d-gussner
Copy link
Author

@3d-gussner it works without U8glib. It looks like wasn't used in the firmware at all.

I also couldn't find it anywhere, so we are fine.

avr6.xn: we'd love to have it here, it would solve a lot of confusion. Do you have an idea where to put it so that Arduino IDE accepts it?

At this moment I solved it by unzip and/or copy the file in PF-build.sh using my modified PF-buil-env repository.

It would be great if we could have it in the JSON file. Have to look into that.

Btw. we'll be moving this board definition into prusa3d repo shortly so there will be one more change to JSON paths.

Cool

@3d-gussner
Copy link
Author

3d-gussner commented Jul 23, 2019

Hi @DRracer , started with a new version https://github.com/3d-gussner/Arduino_Boards/tree/Bootloader

  • added bootloader
  • added tools download

Next step is to modify the avr-gcc avr6.xn file and provide the download file.

Tried to compile manually with fresh Arduino IDE 1.8.5 portable just with new JSON (and manual change of avr6.xn) and the results look promising. Board and Tools have been downloaded automatically.
Also with Arduino IDE 1.8.8 it used the "old" avr-gcc ... but there build size was bit lager, guess newer library.

The Tools aren't part of the Arduino source code, hoped to find it there. But when I build Arduino IDE I can see that the tools are downloaded. So more investigation needed.

3d-gussner referenced this pull request in 3d-gussner/Arduino_Boards Aug 2, 2019
@3d-gussner 3d-gussner deleted the Fix_maximum_firmware_flash_size branch August 17, 2019 09:34
3d-gussner referenced this pull request in 3d-gussner/Arduino_Boards Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants