Author Topic: Including SD.h made Digikeyboard.println() not print  (Read 3028 times)

yelleagle

  • Newbie
  • *
  • Posts: 4
Including SD.h made Digikeyboard.println() not print
« on: April 29, 2015, 02:15:35 pm »
Hello,

I have been working on an older version of an SD.h library (https://github.com/arduino/Arduino/tree/b02e85ceb2e5b5bf07f6f7197a22f2b4635f0de5/libraries/SD) with my project that's still in the testing phase.

I was taking it step by step and just tested out Digikeyboard printing out voltages. However, the moment I added SD.h, the Digikeyboard doesn't print out the voltage anymore.

I'm assuming SD.h overwrites the print functions or something else with it. I was wondering if anyone knows what is overwritten, or if that's not the case, how I would be able to fix it.

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: Including SD.h made Digikeyboard.println() not print
« Reply #1 on: April 29, 2015, 07:31:06 pm »
I'm suspicious you ran out of RAM.  Take out any strings you have embedded in your code - use them from PROGMEM.  I'd swap some prints for BLINKS and see if you can get it working with those.  Maybe put a DVM on an analog output and write the value you want to 'see' there to debug.

yelleagle

  • Newbie
  • *
  • Posts: 4
Re: Including SD.h made Digikeyboard.println() not print
« Reply #2 on: May 07, 2015, 11:44:55 am »
Unfortunately, I found out that the program crashed before the setup loop even started, and PROGMEM wasn't much help. Since accuracy of our measurements is an important part of our design, we've decided to change to our microcontroller to one with a higher SRAM to be able to  make sure we can get fast measurements.

Thank you so much for all your help.