dhansel / VersaTerm

A versatile DIY serial terminal
GNU General Public License v3.0
100 stars 27 forks source link

Versaterm crash when store configuration #9

Closed pinosoft closed 4 months ago

pinosoft commented 4 months ago

HI, I'm trying to compile versaterm with Visual studio, it happens with follow errors, I managed to compile with the "Release" option but I have the following problem, I load the new .uf2, when I try to save the configuration in the "Manage configurations" menu, the software crashes and everything freezes. If I load the default .uf2 file everything is fine. Can you help me? Thanks in advance Untitled

Pino

dhansel commented 4 months ago

I have not used Visual Studio to compile the code so I'm not sure how much I can help. However, I do have a hunch. The Pi Pico crashes if it is executing code from SRAM memory while flashing another part of the SRAM (which is what happens when you save a configuration). My build instructions include the line cmake .. -DPICO_SDK_PATH=../lib/pico-sdk -DPICO_COPY_TO_RAM=1 where the PICO_COPY_TO_RAM=1 setting makes sure that ALL code is copied to RAM before executing. This makes the code run faster and also prevents the crash when saving a configuration.

I do not know how to set this in Visual Studio but maybe you know or someone else can give you a hint.

pinosoft commented 4 months ago

Hi David, Thank you so much for your answer, I try to compile with command line but I have this error:

Untitled Untitled_2

pinosoft commented 4 months ago

Maybe I found the error: /usr/bin/sh: cd: /home/hansel/rpi-pico/VersaTerm: No such file or directory Untitled_3

pinosoft commented 4 months ago

SOLVED!!!

Just add the follow row in the CMakeList.txt set(PICO_COPY_TO_RAM 1) Untitled_4

Now all working well! David, Thank you so much

dhansel commented 4 months ago

Glad to hear it's working - and thanks for posting the solution!