Forum Replies Created
-
AuthorPosts
-
ChrisMember
Spoke to Riley tonite. Looks like it was the Lock Bits being set incorrectly that was stopping anything being written, either thru avrdude and Studio. No idea how they got set because until last week I didnt have a programmer that could tweak them 🙂
The fix was to erase the chip using my new mkii thru Studio. I check all the fuses were per the wiki instructions and set all the lock bits to NOLOCK (and wrote them.)
I could then flash anything I wanted to the card, including xboot (although it wouldn’t verify, but seemed to flash ok and I got the boot blink). I tried tinyg.hex directly thru Studio w/o xboot. I verified the card booted correctly in the terminal. I then went back and reflashed xboot (no verify) and then tried an avrdude flash of tinyg.hex thru the USB port and it took first time. Again I verified everything thru the terminal.
I’m very happy with the level of support from Synthetos. You guys are awesome and go way beyond to help.
Cheers
Chris
ChrisMemberBTW. those values I posted ARE the values read by Studio 6.
ChrisMemberWhat values should I set them to?
ChrisMemberI got my MKII week before last and still have problems, can’t flash a new bootloader nor the tinyg firmware. Either thru ATMEL Studio or the command line.
Doing some digging and curious what everyone else is seeing for Lock Bits. Can people post their Lock Bits as reported from the Device Programmer in Studio (I’m using version 6).
For the lockbits the following are set on my board. If I’m reading it right it’s locked from writing or verifying anything.
BLBB = RLOCK
Read lock – (E)LPM executing from the application section is not allowed to read from the boot loader section. If the interrupt vectors are placed in the application section, interrupts are disabled while executing from the boot loader section.
BLBA = WLOCKÂ
Write lock – SPM is not allowed to write the application section.
BLBAT = WLOCKÂ
Write lock – SPM is not allowed to write the application table
LB = Â RWLOCK
Read and write lock – programming and read/verification of the flash and EEPROM are disabled for the programming interface. The lock bits and fuses are locked for read and write from the programming interface
- This reply was modified 11 years, 7 months ago by Chris.
ChrisMemberI’ve hit the same problem. I tried searching but couldn’t find your link. Can you post it? Thanks.
-
AuthorPosts