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

optiboot_lgt8f328d.hex corrupt? #118

Closed
jg1uaa opened this issue Mar 12, 2021 · 3 comments
Closed

optiboot_lgt8f328d.hex corrupt? #118

jg1uaa opened this issue Mar 12, 2021 · 3 comments

Comments

@jg1uaa
Copy link
Contributor

jg1uaa commented Mar 12, 2021

Blink.ino could not boot with optiboot_lgt8f328d.hex, others boots.

I checked .hex's MD5 to check bootloader, all files are different.

MD5 (optiboot_lgt8f328d.hex) = 5829aff59380b60bdd1ec77dc5d6402a
MD5 (optiboot_lgt8f328d_extosc.hex) = 0640fe83172c27f832ea30179657ffd0
MD5 (optiboot_lgt8f328d_intosc.hex) = b0c8f030204ecf1c3146e49e50811226

I also checked LGTMCU/Larduino_HSP(https://github.com/LGTMCU/Larduino_HSP)'s bootloader hex.

MD5 (optiboot_lgt8f328d.hex) = b0c8f030204ecf1c3146e49e50811226
MD5 (optiboot_lgt8f328d_extosc.hex) = 0640fe83172c27f832ea30179657ffd0
MD5 (optiboot_lgt8f328d_intosc.hex) = b0c8f030204ecf1c3146e49e50811226

I think our optiboot_lgt8f328d.hex should be same as optiboot_lgt8f328d_intosc.hex like Larduino_HSP, what's happened?

FYI:
Due to -mshort-calls option of gcc is obsoleted, optiboot requires old gcc (4.3.2; arduino-1.5.6 and before). Shold we simply copy optiboot_lgt8f328d_intosc.hex to optiboot_lgt8f328d.hex, or overhaul for modern environment?

@jg1uaa
Copy link
Contributor Author

jg1uaa commented Mar 21, 2021

here is the test that compiling LGT8F328D bootloader on avr-gcc-7.3.0
internal OSC, 16MHz, 57600bps configuration only (no plan to support external OSC).
https://github.com/jg1uaa/lgt8fx/tree/bl_lgt8fx8e_test/lgt8f/bootloaders/lgt8fx8e

@dwillmore
Copy link
Collaborator

Is this issue still valid or has it been overtaken by other events? Please reevaluate @jg1uaa.

@jg1uaa
Copy link
Contributor Author

jg1uaa commented Feb 10, 2023

Normally Arduino-capable LGT8Fx is programmed with suitable bootloader and it is special case that re-program it. If there is a problem, please reopen this issue. Once closed.

@jg1uaa jg1uaa closed this as completed Feb 10, 2023
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

No branches or pull requests

2 participants