Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Out of memory errors with latest PlatformIO

  1. #1

    Out of memory errors with latest PlatformIO

    Hi guys,

    I've been using Platform IO with VSCode for awhile. I recently opened up an unchanged codebase and PIO auto-updated. Although this code base worked perfectly fine previously, it is now compiling with significantly higher DATA memory usage (to the point where it's out of memory after upload). I changed nothing in the code and have the following build flags set.

    build_flags = -D USB_MIDI_SERIAL -D TEENSY_OPT_SMALLEST_CODE

    Did something change with the way PIO minifies code on the latest version?

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,540
    Since PlatformIO uses its own build system, I’d rather open the issue with them. Be sure to add your full code base and the reported memory sizes after compiling with the old and with the new build system, so that Mr Kravets might reproduce the problem.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,692
    Maybe bring your code into Arduino and see how the results compare?

    Also, I'll quickly mention "TEENSY_OPT_SMALLEST_CODE" looks unfamiliar. Maybe that's something PlatformIO added? Normally to optimize for smallest code, the flags are "-Os --specs=nano.specs".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •