Comments (5)
Hi enkore.
Thank you for your report. I assume it is toolchain related:
Please try one of these versions: 3.4.2 or 3.4.3 (for example available at http://matrixstorm.com/avr/tinyusbboard/#asmorc) or at directly at Atmel. Even using a recent gcc can still be based on old Atmel patches.
If you bootstrapped your own AVR toolchain: I know some optimizations are missing in the gcc (and binutils) mainline.
In this case only switching features off (can_exit, serial flash access ...etc...) will spare flash.
Hope to read from you soon,
BR Stephan
A Warning at the end: Changing the default BLS size (4 --> 2KiB) will cause spminterface to fail! Please
manually adapt its addresses or deactivate (NOT recommended) the feature.
from usbasploader.
If I don't need to write the flash from the booted application, then I don't need spminterface, do I?
However, I also will never write to the EEPROM (at least not from the bootloader), disabling EEPROM_PAGED_ACCESS and EEPROM_BYTE_ACCESS (which will probably disable all EEPROM programming access, I guess) I end up with a 1994 byte binary. Fair enough :)
from usbasploader.
Hi
If I don't need to write the flash from the booted application, then I don't need spminterface, do I?
Yes, but update will never work, too.
I really do not recommend it - If you want to change the bootloader in the future (bug, new feature ...etc...) you won't be able to use the existing bootloader to update, and you will need to use external ISP.
If you distribute your board to other people, this might be not a good solution.
from usbasploader.
Ah, thanks for the clarification here. It's just a personal project where I don't have enough space for a ISP connector so my plan is to flash the bootloader onto the MCU using clip connectors and doing regular dev work using the bootloader. Updating the bootloader would then mean to open the case and apply clip connectors again ; I'm ok with that.
One could also see this bootloader-self-updating-inability w/o spminterface as an advantage - you can't brick the device without a programmer and in that case you can easily unbrick it again :)
from usbasploader.
Hi
One could also see this bootloader-self-updating-inability w/o spminterface as an advantage - you can't brick the device without a programmer
This is why there is a feature called magic value. The 32Bit value is intended to block unintentional calls to the do_spm.
It helps to distinguish different layout versions of a bootloader and blocks wrong updates from getting installed ;-)
An external ISP would help additionally, esp. when testing the updates for delivery (and everything goes wrong the first time ;-) )
How ever, you are right. The main use for the updater have developers remotely deploying updates to their users. (And they don't want to open boxes or interconnect cables ;-) )
So have fun using USBaspLoader, best regards
Stephan
from usbasploader.
Related Issues (20)
- cpufunc.h HOT 4
- Build error when doing a 'make' in USBaspLoader-master/ HOT 7
- In all USBaspLoader version up to 0.97 exists a bug, which causes the watchdog timer to continously reboot. HOT 4
- How about ATTiny4313 support? HOT 5
- Size exceed 2kB HOT 5
- Help on options HOT 2
- Buil Not fit into your MCUs bootloader section HOT 1
- Flash bootloader with avrdude/avrdudess and usbtinyisp HOT 8
- Compilation error on Ubuntu 12.04 HOT 9
- I get an error when I try to run "make" HOT 5
- Does D+ also work on other external interrupt input pins?
- USBaspLoader WCID HOT 1
- Issues when Compiling HOT 24
- Issues when Compiling HOT 1
- USBaspLoader on 12 Mhz USBasp dongle timing issue in Arudino HOT 20
- Its not enough to call wdt_disable on some devices. HOT 6
- Current version exceeds 2kb size limit when compiled for 12 Mhz device HOT 2
- A little more delay HOT 12
- Trouble compiling with WinAVR HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbasploader.