Johanan

Forum Replies Created

Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • in reply to: Unable to create a blink Arduino project #26048
    Johanan
    Participant

    I did it and it suggested the cleanup, I clicked OK, and it cleaned up.

    Then started a new project, same result. output from Build:

    ————————————————————-
    Command exited with code 1
    Executable: C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe
    Arguments: -compile -logger=machine -fqbn=stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd -build-path C:\MyWork\ArduinoProjects\ArduinoProject1\Output\Generic_STM32F103C_series\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Arduino/hardware” -hardware C:\Users\Johanan\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Arduino/tools-builder” -tools C:\Users\Johanan\AppData\Local/Arduino15/packages -built-in-libraries “C:\Program Files (x86)\Arduino/libraries” -libraries C:\Users\Johanan\Documents\Arduino\ -prefs=runtime.tools.stm32tools.path=C:\Users\Johanan\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2019.9.24 sketches/ArduinoProject1.ino
    Directory: C:\MyWork\ArduinoProjects\ArduinoProject1
    VisualGDB: Error: Command-line action failed
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    And the output from VisualGDB Advanced Project Subsystem is:

    Checking if any source files need uploading…
    Saved the code model to C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\BuildCommandLines.txt
    Failed to parse code model from C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
    at ov1.j1.m_2(IEnumerable`1 a)
    Compiler output:
    Checking if any source files need uploading…
    Saved the code model to C:\MyWork\ArduinoProjects\ArduinoProject2\VisualGDBCache\ArduinoProject2-Debug-Arduino_Leonardo\BuildCommandLines.txt
    Failed to parse code model from C:\MyWork\ArduinoProjects\ArduinoProject2\VisualGDBCache\ArduinoProject2-Debug-Arduino_Leonardo\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
    at ov1.j1.m_2(IEnumerable`1 a)
    Compiler output:
    Loading cached code model from C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\BuildCommandLines.txt…
    Failed to parse code model from C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
    at ov1.j1.m_2(IEnumerable`1 a)
    Compiler output:
    Checking if any source files need uploading…
    Checking for file modifications…
    Found changed files since last query (see C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\BuildFileStats.txt.old vs C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\BuildFileStats.txt.new). Rerunning code model query..
    Saved the code model to C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\BuildCommandLines.txt
    Failed to parse code model from C:\MyWork\ArduinoProjects\ArduinoProject1\VisualGDBCache\ArduinoProject1-Debug-Generic_STM32F103C_series\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
    at ov1.j1.m_2(IEnumerable`1 a)
    Compiler output:

    Hope this gives a clue.

    BTW I do have it on my laptop, with much fewer Arduino broads installed, but on the laptop it looks OK at first glance – I did not play too much with it.

    Regards

     

     

    in reply to: STM32 not behaving after optimization #23497
    Johanan
    Participant

    Will try that.

    Of course, I could berry my head in the sand, and leave it without optimization.

    I am concerned that this is a bad sign, and if not taken care of, it will hit me bad sometime later down the road…

    Thanks

    • This reply was modified 5 years, 10 months ago by Johanan.
    in reply to: STM32 not behaving after optimization #23494
    Johanan
    Participant

    Actually I am using USB host.

    Wonder what will happen if I remove it for testing.

    • This reply was modified 5 years, 10 months ago by Johanan.
    in reply to: Arduino board change #23377
    Johanan
    Participant

    I downloaded Beta 2, nothing changed.

    See attached screens.

    Regards

    Johanan

     

    Attachments:
    You must be logged in to view attached files.
    in reply to: codelens #23239
    Johanan
    Participant

    ho ho ho..

    Thanks

    I should have posted this before wasting so much time….

    in reply to: STM32 huge BIN/Hex file #22555
    Johanan
    Participant

    Indeed using NOLODAD solved the problem.

    it took me some time to figure out how to use it so here is the linker script on external rams, if someone needs it and don’t like to read the linker tutorial…

    <hr />

    MEMORY
    {
    FLASH (RX) : ORIGIN = 0x08040000, LENGTH = 1792K
    SRAM (RWX) : ORIGIN = 0x20000000, LENGTH = 192K
    CCMRAM (RWX) : ORIGIN = 0x10000000, LENGTH = 64K
    NVRAM (RWX) : ORIGIN = 0x40024000, LENGTH = 4K
    SDRAM (RW) : ORIGIN = 0xC0000000, LENGTH = 8M
    }

    _estack = 0x20030000;

    SECTIONS
    {
    .sdram (NOLOAD):
    {
    *(SD_ram*);
    *(SD_ram);
    } > SDRAM

    .nvram (NOLOAD) :
    {
    *(NV_ram*);
    *(NV_ram);
    } > NVRAM

    .ccram (NOLOAD) :
    {
    *(CCM_ram);
    } > CCMRAM

Viewing 6 posts - 31 through 36 (of 36 total)