Go Down

Topic: Project Bambino (Read 12815 times) previous topic - next topic


I'm also drawing on the Enzo Project.

Thats a Bambino with a Nano footprint for breadboarding Projects.

Still the same capabilities as Bambino.


I was thinking of making a trampoline routine in the top bootloader area to be able to write code with the SPM instruction to the application area (selfprogramming)

By calling it with a pointer to a page in SRAM to write to flash, it could compile code onboard?

Can I just write the trampoline code in AVRASM with the right ORG, make a hexfile, and write that to flash and it will write it in the correct location in flash?

Then just call it from the application area with code in the SRAM?

Does the ISP programmer write the code at the correct location straight or does it fill all the way up before writing it?


Perhaps just use fungus example of including .S files?

And the .ORG in the .S file function set to BLS?


This should work.
Combining the app and bls code.

Code: [Select]

E:\avr>type app.hex

E:\avr>type boot.hex

E:\avr>copy /b app.hex + boot.hex  combined.hex

E:\avr>type combined.hex

But then i need the HEX file produced from the ArduinoIDE?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131