-
Notifications
You must be signed in to change notification settings - Fork 402
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
make ATTINY85 with RS485 retun error #349
Comments
Try an older version of gcc. The latest Microchip version is avr-gcc 5.4.something, and Arduino is support 7.3.something. Note that the mechanism for specifiying bootloader size and start address has changed recently, so that it's now in the C code instead of being controlled by section-start linker commands. See the optiboot.c code near "sectionOpts()" -just bump up VBSIZE... |
FYI, latest Atmel toolchain is now based on avr-gcc 7.3. The older avr-gcc 5.4 based version is still available though. |
Interestingly urboot only recommends avr-gcc 4.8.1 and avr-gcc 5.4 now. But I think later avr-gcc 7.3 based toolchain will be used for UPDI parts support. |
As of now, Arduino shiped toolchain works with optiboot/optiboot_x. For optiboot_dx, you may want to use the toolchain from DxCore. It also works with optiboot/optiboot_dx. You can also use Atmel toolchain as the base and manually copy the necessary files from the DFPs from Atmel Studio but that is a hassle. |
I have tested with Atmel toolchain (avr-gcc 7.3 based) and there is no ssue to build the bootloader. FYI, MSYS2 comes with avr-gcc 8.5 and it seems to work as well.
|
I guess this issue can be closed. |
While I run command:
make attiny85 RS485=B2 LED_START_FLASHES=0 TIMEOUT=8 BAUD_RATE=19200 NO_START_APP_ON_POR=1 START_APP_ON_EXTR=1
return this error:
But if I run without
RS485=B2
pogram is compling.I tried to add
attiny85: LDSECTIONS = -Wl,--section-start=.text=0x1c00
inMakefile.tiny
but problem is after connect attiny85 to power, the microcontroller runs the main program without the bootloader. This is do after writ 1st time programvia bootloader. In the project I need to disable the reset pin and use it as an additional pin. So the bootloader must start after attiny85 is powered up.The text was updated successfully, but these errors were encountered: