Skip to content

Too many Global String constructs on Due #79

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

Closed
gwiken opened this issue May 9, 2014 · 1 comment
Closed

Too many Global String constructs on Due #79

gwiken opened this issue May 9, 2014 · 1 comment
Assignees

Comments

@gwiken
Copy link

gwiken commented May 9, 2014

Too many Global String or C++ constructs in Due makes the software not running at all. Likewise if code amount goes over 100 Kbytes. Have used F-macro where there are constants for Serial port printing and response, this does not help. Seems like bss/data area gets broken during build on the Due board.
According to the stack pointer the stack size changes between 4 and 10 Kbytes, so this should not be a problem.

@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
@cmaglie
Copy link
Member

cmaglie commented Sep 17, 2019

@gwiken I guess you find your solution elsewhere in the meantime, anyway:

declaring srings as const char * should allow to not use RAM and store strings directly in flash.

BTW from your description is not cleat if this is your issue, if you're still interested please comment further with more details, in particular an example sketch that demonstrates the problem.

@cmaglie cmaglie closed this as completed Sep 17, 2019
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