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

AVR128DA48 and AVR128DB48 Curiosity Nano boards don't work on 1.5.8 or later #536

Open
technoblogy opened this issue Jun 16, 2024 · 3 comments

Comments

@technoblogy
Copy link

technoblogy commented Jun 16, 2024

I have an application (uLisp) that used to work on the AVR128DA48 Curiosity Nano or AVR128DB48 Curiosity Nano with DxCore versions up to and including 1.5.6. However, it doesn't work on 1.5.8, or the latest, 1.5.11.

It just hangs up when I open the Serial Monitor, rather than displaying the usual text prompt.

It uses the default settings on the Tools menu, apart from:

Write to flash from app: "Above 96K (AVR128 only)"

I use PROGMEM, but not PROGMEM_MAPPED.

I use Serial, and cater for the differences on these boards with, on the AVR128DA48 Curiosity Nano:

#define Serial Serial1

or, on the AVR128DB48 Curiosity Nano:

#define Serial Serial3

I noticed that the DxCore versions it stopped working on are the ones with the new How to set FLMAP option, but I've tried every option on that menu and none of them solve the issue.

I'm using Arduino IDE 1.8.19 on MacOS 10.13.

Any suggestions?

Thanks, David

@SpenceKonde
Copy link
Owner

We already provide a facility to support arbitrary renumbering of the serial ports by having a variant file define that, or a tools submenu can redefine it (by adding a define to the command line invoked to run the compiler).

However, that does inevitably run into a conflict if someone else tries to do the same thing a different way.

See line 1090-1100 of Arduino.h.

@technoblogy
Copy link
Author

Thanks for your reply. My point is that I had an application that used to work up to 1.5.6 and now it doesn't work, and it's not obvious how I should fix it.

See line 1090-1100 of Arduino.h.

Those lines are identical in the Arduino.h of core 1.5.6 that does work, and 1.5.11 that doesn't work, so I don't think that can be the explanation.

Any other suggestions?

@technoblogy
Copy link
Author

I hope this is a clearer explanation of the problem:

This test works on the AVR128DA48 Curiosity Nano board with DxCore 1.5.6:

#define Serial Serial1
  
void setup () {
  Serial.begin(9600);
}

void loop () {
  Serial.println("Hello");
  delay(1000);
}

However, DxCore 1.5.11 breaks it, and I can't figure out how to get it working again.

I'm using the following Board options:

Board:" AVR DA-series (no bootloader)"
Chip: "AVR128DA48"

everything else at defaults.

I'm hoping for a solution that's easy to explain to other users, rather than "revert to 1.5.6".

Thanks, David

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

2 participants