Forum >Replies by brcd131
userhead brcd131
Replies (4)
  • You Reply: Stanley,
    I finally got the code to build using the Arduino compiler, but now it says the file is too large for the processor:
    "Binary sketch size: 30,978 bytes (of a 30,720 byte maximum)"
    Any ideas on what can be safely trimmed from the sketch without jeopardizing functionality?
    Thanks.
  • You Reply: More info - CodeBlocks appears to compile and link it ok, but it produces a hex file that is 80K in size which I think is too big for the Nano board. Part of the extra size is because the GPS stuff is in there, even though GPS is turned off in the code.

    Also, when I look at the log file for the ArduinoBuilder build, it starts out saying "Compiling obdlogger.ino" then compiles a few more files then says "Compiling obdlogger.ino" again. Not sure why it compiles this twice (or appears to do this).
    Thanks,
    Chuck
  • You Reply: Stanley,
    Still no luck. I have all of the main files in a folder called "obdlogger" as the arduino compiler wants, and I deleted the SSD1306.* files from the library folders so there was no duplication, and I also made sure that all of the library files had the latest versions based on your latest download and they do and I still get the multiple definition error. Any other ideas what may be causing this?
    Thanks,
    Chuck
  • You Reply: Stanley,
    I'm still having problems compiling and uploading the example code to kit #1. Here's a partial screen shot of some of the errors I get - Multiple definition error. I've tried a number of things to avoid this like putting #ifndef  in the header files to be sure that they are not re-entered but it didn't help. I also noticed that even though USE_GPS is turned off, the TinyGps module is still included in the build. I manually removed all the GPS code and that didn't help. Any ideas how I can get the code to compile and upload to the Nano using ArduinoBuilder? Thanks.