Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with AVRxxDA/DB Series parts(Using Dx Core) #240

Open
abhijit-031991 opened this issue Aug 2, 2022 · 0 comments
Open

Compatibility with AVRxxDA/DB Series parts(Using Dx Core) #240

abhijit-031991 opened this issue Aug 2, 2022 · 0 comments

Comments

@abhijit-031991
Copy link

abhijit-031991 commented Aug 2, 2022

Any bug report / feature request raised here MUST be submitted according to the respective templates or they will be flagged with 'Not enough information'. No action will be taken till all the prerequisite information (according to the right template) is provided. If no information is provided for over a month after the 'Not enough information' label is applied, the issue will be closed.
For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.

Hi,

I'm trying to see if I can get the SPI Memory library working for the AVR128DB32 mcu. Since they are replacements/upgrades for the older Atmega chips, I though it would be a good idea to incorporate it into my newer PCBs. While the library worked flawlessly with my last set of PCBs running ATMEGA644p mcus. I'm not sure why I'm unable to get this working for AVR series chips. I am using the latest version of DxCore as the platform.
As far as I can tell, the chip powers up/down, however, the 'flash.begin()' throws an error saying the chip is not identified.

Here is the relevant code from the set up section.

void setup(){
Serial.begin(115200);
Serial1.begin(115200);
SPI.begin();
delay(1000);

// Enable & Start Flash //


if(flash.powerUp()){
    Serial.println(F("Powered Up1"));
}else{
    Serial.println(flash.error(VERBOSE));
}
if(!flash.begin()){
    Serial.println(F("Flash did not begin"));
    Serial.println(flash.error(VERBOSE));
} 
Serial.println(flash.getManID());
if(flash.powerUp()){
    Serial.println(F("Powered Up"));
}else
{
    Serial.println(F("PWR UP Failed!"));
}
if (wipe == true)
{
    Serial.println(F("WIPING FLASH"));
    if(flash.eraseChip()){
    Serial.println(F("Memory Wiped"));  
    }else
    {
    Serial.println(flash.error(VERBOSE));
    }
}else{
    rAdd = flash.getAddress(16);
}    
if(flash.powerDown()){
    Serial.println(F("Powered Down"));
    digitalWrite(FCS, HIGH);
}else{
    Serial.println(flash.error(VERBOSE));
}

Any help regarding this would be very much appreciated.

Thanks.


DO NOT DELETE OR EDIT anything below this

Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.


GitHub issue state GitHub issue title GitHub issue author GitHub issue label GitHub issue comments GitHub issue age GitHub issue last update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant