Go Down

Topic: Updating the mighty-1284p core (Read 24953 times) previous topic - next topic

CrossRoads

I'll post the one I use, blinks SCK just like an Uno. Is on a different computer. Just 3 quick flashes I think.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Coding Badly


The Bobuino has the on-board LED on SCK / B7.  Where is the LED on other boards? Jack, did you also put the LED on B7?

Jack Christensen


The Bobuino has the on-board LED on SCK / B7.  Where is the LED on other boards?


Unknown.

Quote

Jack, did you also put the LED on B7?


Yes. (But I'm not necessarily married to the idea, my boards are just for prototyping and testing.)
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Coding Badly


Jack, have you been using the Bobuino board entry to program your board?

Coding Badly


I suggest these fuse settings for '1284 boards...

Code: [Select]
bobuino.bootloader.low_fuses=0xF7
bobuino.bootloader.high_fuses=0xD6
bobuino.bootloader.extended_fuses=0xFD


# Full Swing Oscillator; Start-up time: 16K CK + 65 ms; Crystal Osc.; slowly rising power; [CKSEL=0111 SUT=11]
# Boot Reset vector Enabled (default address=$0000); [BOOTRST=0]
# Boot Flash section size=512 words Boot start address=$FE00; [BOOTSZ=11]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]
# Serial program downloading (SPI) enabled; [SPIEN=0]
# Brown-out detection level at VCC=2.7 V; [BODLEVEL=101]

Thoughts?

retrolefty

Quote

# Full Swing Oscillator; Start-up time: 16K CK + 65 ms; Crystal Osc.; slowly rising power; [CKSEL=0111 SUT=11]


This seemed to be the best and simplest 'fix' for people having problems with serial data problems on the first uart pins. Problem was sensitive to board layout and there were other hardware fixes that were effective, but simply using the full swing option seems to be the best method and doesn't cost anything and is board agnostic.

Lefty

Jack Christensen



Jack, have you been using the Bobuino board entry to program your board?


I'm using Mighty 1284p 16MHz using Optiboot ... the board I designed maps the pins according to the standard variant.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Brad Burleson

Gents-

I'm not sure it will help, and sorry if this was posted before (I didn't follow any linked threads) but I was doing some searches today and ran across a blog posting that has new core files for the 644P/1284P based on 1.5.6-R2.

The posting was at http://www.leonardomiliani.com/2014/core-per-atmega644p1284p-aggiornato-per-lide-1-5-6-r2/?lang=en

Just thought it might be useful.

Regards,

Brad
KF7FER

Jack Christensen


I suggest these fuse settings for '1284 boards...


Those are fine.

FYI, I'm currently using the low-power XO and was unable to reproduce the serial data reset issue, even when running at 16MHz and 3.3V. I tried 115200 and 230400 baud for the serial data. But maybe the DIP is more sensitive to this issue than the TQFP that I'm using, so go with what's safest. Then again Robert I don't believe has seen it on his boards with the DIP either, so I really don't know what to think.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Coding Badly

Gents- I'm not sure it will help ... I was doing some searches today and ran across a blog posting that has new core files for the 644P/1284P based on 1.5.6-R2.


It does help.  Thank you.

Coding Badly


Is anyone interested in an Optiboot built to communicate at 1 M baud (or 2 M)?

Is anyone interested in an Optiboot built for a no-LED board?

Coding Badly


The core files that have changes are:
Code: [Select]
cores/standard/WInterrupts.c
cores/standard/wiring_private.h
cores/standard/Arduino.h
cores/standard/Print.h
cores/standard/wiring_analog.c
cores/standard/WString.h



You may need to get a better diff tool!

The bad news is WinDiff finds changes in nearly every file.  The good news is that the vast majority of the changes appear to be additions to the 1.0.5 standard core which should have no bearing on the '1284 processor or add new features.  I found just one "conflict" that should be easy to get past.

Is the goal to use the standard core source files?

CrossRoads

I find I don't care much about the bootloader LED blinking, as I  bootload and then install Blink right off the bat to show the serial interface is working.
Are there many serial things that run at 1 or 2M? I could see that being handy for Arduino/Aruino comm's vs messing with I2C or SPI.
Would be nice to not have to mess with adding 1284 variant back in every time an IDE is downloaded.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Coding Badly

I find I don't care much about the bootloader LED blinking, as I  bootload and then install Blink right off the bat to show the serial interface is working.


Excellent point.  I can't recall even once checking for the bootloader to blink the LED.

Quote
Are there many serial things that run at 1 or 2M?


In my house there are.   :D

The first thing I do when I get a new board is change the bootloader baud rate to 1 M.  So all my Arduinos use 1 M baud.   8)

The theoretical upload limit is essentially reached at 1 M.  In other words, it's faster uploading at 1 M using a bootloader than using a dedicated ISP programmer.

Whenever I build applications that transfer data between a PC and an Arduinio I always use 1 M.

Quote
I could see that being handy for Arduino/Aruino comm's vs messing with I2C or SPI.


I've found the higher baud rate to be generally very handy.

Quote
Would be nice to not have to mess with adding 1284 variant back in every time an IDE is downloaded.


I don't think we will be able to get to that point.  In the past, the Arduino policy has been to only include genuine Arduino products with the IDE.

I think we will be able to reduce the "core" to six files.  The "core" will use the source code from the IDE (will always be up-to-date).

retrolefty


Gents-

I'm not sure it will help, and sorry if this was posted before (I didn't follow any linked threads) but I was doing some searches today and ran across a blog posting that has new core files for the 644P/1284P based on 1.5.6-R2.

The posting was at http://www.leonardomiliani.com/2014/core-per-atmega644p1284p-aggiornato-per-lide-1-5-6-r2/?lang=en

Just thought it might be useful.

Regards,

Brad
KF7FER


I loaded up 1.5.6r2 and then added this 1284/644 new core offered at this site to a hardware folder in a new user sketch directory. However it resulted in only offering one type of 1284 board, using ISP and running at 1Mhz! This is even though the added boards.txt file defines many different 1284 configurations. So doesn't seem to be a working correctly, at least for me. I didn't even try to modifiy the boards.txt or add a boburino variant or to attach my 1284p board, but did validate a blink compile.


Go Up