Old (2yrs) code wont upload anymore

I have working code that i made two years ago and it works fine. Now when I try to upload this same code to another unit (Wemos D1 mini) it does not work at all. This is not the first time when I come across with this problem.
Now, when I start a new sketch and copy-paste the code it works just fine.
I can't think anything else than IDE new version causes this. Am I right?
In my mind new IDE should work with code that is made in an earlier version.

For this board you must be load a core, and it can changed too. and library for sketch too

Hi @WemosAlaPlaya. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. If you don't still have the IDE or web editor open with the error present, repeat the process that generated it.
  2. You now need to copy the full and exact text of the output.
    The procedure for doing this is different depending on which Arduino development software you are using:
    • Arduino IDE 1.x: Click the Copy error messages button on the right side of the orange bar in the IDE.
    • Arduino IDE 2.x: Right click on the black "Output" pane at the bottom of the IDE window and then select Copy All from the context menu.
  3. Open a forum reply here by clicking the Reply button.
  4. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  5. Press Ctrl+V.
    This will paste the compilation output into the code block.
  6. Move the cursor outside of the code block markup before you add any additional text to your reply.
  7. Click the Reply button to post the output.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.