jafeucht

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Debugging rp2040 with PICO_COPY_TO_RAM=1 #36113
    jafeucht
    Participant

    I think I just figured out a work-around which works well for me:

    In the CMakeLists, remove:

    • set(PICO_COPY_TO_RAM 1)

    And replace with:

    • pico_set_binary_type(my_app_name no_flash)

    In that case, the application is compiled to go directly into RAM skipping programming it to flash memory.

    • This reply was modified 2 weeks, 2 days ago by jafeucht.
    • This reply was modified 2 weeks, 2 days ago by jafeucht.
    in reply to: Really would like pre-build step implementation #30860
    jafeucht
    Participant

    I spent some time figuring this out. I found that what worked for me was adding the following anywhere in the *.vcxproj file under the main Project XML section:

    <Target Name="BeforeBuild" BeforeTargets="PrepareForBuild">
      <Exec Command="<<Exe call with command line>>" />
    </Target>

    What’s important with the Exec command is that all XML unsafe characters are escaped (< becomes “&gt;”, ” becomes “&quot;”, & becomes “&amp;”, etc.)

    jafeucht
    Participant

    I found out what my issue is. I had selected “Cross-Platform MSBuild” in the build step “MSBuild Version” setting rather than “MSBuild 2019”. Switching that fixed my issue.

    jafeucht
    Participant

    Is there also a tutorial on how to configure VisualGDB projects to build through TeamCity? I have a setup where I can envoke the build of a VisualGDB project with msbuild.exe, however when I try to set up the same command with TeamCity, I find:

    • TeamCity needs to be set up with env.VCTargetsPath (set to C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\)
    • Need to set env.TOOLCHAIN_ROOT to “C:\sysgcc”

    However, my next challenge is to figure out what to do about this same FastUpToDateCheck.targets error MSB4062:

    [dotnet msbuild] C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\FastUpToDateCheck.targets(5,2): error MSB4062: The “InitializeFastUpToDateCheckFile” task could not be loaded from the assembly C:\Program Files (x86)\Sysprogs\VisualGDB\\Sysprogs.Build.Tasks.dll. Could not load file or assembly ‘Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

    I even set up TeamCity service to use the same user account which I’m using to successfully build my VisualGDB projects with TeamCity, but I can’t seem to get it to compile.

    • This reply was modified 4 years, 1 month ago by jafeucht.
    • This reply was modified 4 years, 1 month ago by jafeucht.
    in reply to: Having trouble getting JTAG HLA working #26995
    jafeucht
    Participant

    I just updated OpenOCD. That appears to have fixed the issue.

Viewing 5 posts - 1 through 5 (of 5 total)