Pages: 1 [2] 3 4 ... 29   Go Down
Author Topic: Updating the mighty-1284p core  (Read 21466 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'll post the one I use, blinks SCK just like an Uno. Is on a different computer. Just 3 quick flashes I think.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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?
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.)
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Code:
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?
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Salem, Oregon
Offline Offline
Sr. Member
****
Karma: 7
Posts: 310
Friends don't let friends use Strings
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The core files that have changes are:
Code:
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?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.   smiley-grin

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.   smiley-cool

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).
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Pages: 1 [2] 3 4 ... 29   Go Up
Jump to: