Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to set build flag for RP2040 "No ROM CACHE" mode (Read 2171 times)
howy
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2023
How to set build flag for RP2040 "No ROM CACHE" mode
Aug 17th, 2023 at 6:31pm
Print Post  
Hi, I'm using Visual Micro on MS Visual Studio 2022 for the RP2040. 

I need to tell the RP2040 compiler to not put any data in ROM since my program does not require it and ROM accesses are causing noise in the system. If I were using CMAKE I would maybe define PICO_NO_FLASH. 

I am not clear on where to put this variable (if it's the correct variable) in the Visual Studio Graphical interface. Or is there a project file that Visual Studio uses that I can add it to?
-thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #1 - Aug 17th, 2023 at 7:48pm
Print Post  
The information that was requested when you created the thread is also shown in the yellow box at the top of each forum page.

When/if you find out if you can add a define or change the compile or linker command we can use the requested information to answer your question.
  
Back to top
IP Logged
 
howy
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2023
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #2 - Aug 18th, 2023 at 1:41pm
Print Post  
Sorry, Here is the build output. 
It appears I am close to the RAM limit anyway, so my next question might be how to limit the amount of unused libraries in my build. 
Thanks
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #3 - Aug 18th, 2023 at 1:51pm
Print Post  
You must be on an old version of vmicro. Please upgrade or switch on vMicro>Compiler>Verbose then provide the output again. Ideally you should update vmicro.

+ we suspect the solution will require a new 2040 core/package.
« Last Edit: Aug 18th, 2023 at 2:22pm by Tim@Visual Micro »  
Back to top
IP Logged
 
howy
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2023
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #4 - Aug 18th, 2023 at 2:52pm
Print Post  
Here is the build output with Verbose turned on.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #5 - Aug 18th, 2023 at 3:34pm
Print Post  
Thanks, you are only using the rp2040 library. Which unused libraries are you refering too?

It might be that PICO_NO_FLASH relates more to how the upload tool works. The upload tool is provided by the rp2040 platform (board manager package) that you install. Often the compiler and upload tools have settings that are read from a text file in the platform called platform.txt. If you ask the author of the board package, if there is a facility to enable this for the arduino ide then visual micro will also work. Visual Micro does have some additional config options to make life easier but first we need to know the arduino official solution.

I suggest you upgrade visual micro from "extensions>extension manager". There have been many improvements since your version, especially around compile times.
« Last Edit: Aug 18th, 2023 at 4:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
howy
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2023
Re: How to set build flag for RP2040 "No ROM CACHE" mode
Reply #6 - Aug 18th, 2023 at 4:06pm
Print Post  
Great. Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint