Showing posts with label Note to self. Show all posts
Showing posts with label Note to self. Show all posts

Thursday, January 23, 2020

Visual Studio doesn't discover my unit tests!

I added a unit test class to a project today, and Visual Studio couldn't find my new unit tests. Quick hack: modify your output window to "Show output from:" "Tests." This may help you find the reason why. In my case, it told me pretty directly what the issue was:

UTA001: TestClass attribute defined on non-public class MyTests

My test class wasn't public, which it appears is a requirement for discovery.

Wednesday, April 03, 2019

Updating include directories after updating Vivado

So, after updating Vivado, I ended up with a number of warnings during compile in the SDK IDE, referring to an old, now missing path. As the paths didn't appear to be modifiable within the project settings, I searched for a way to update them.

That brought me to this post, which has approximately the right stuff:


  1. Close the SDK.
  2. Delete the .metadata folder in your xyz.sdk folder.
  3. Restart the SDK.
  4. Import the existing projects. You'll see that only the design folder was automatically imported.


Thursday, December 14, 2017

No matching key exchange method found

Ran into this again while trying to ssh into the old battleship:

no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

A solution is to specify the key exchange algorithm on the command line:

ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 root@169.254.8.70

More information can be found on OpenSSH's Legacy Options page.

Tuesday, October 31, 2017

Vivado does not launch with Windows 10 Fall Creators Update

There's a work-around available from Xilinx AR 69908. Windows 10 Fall Creators Update is not officially supported for Vivado 17.3 or 17.3.1.


Sunday, March 12, 2017

Downloading an ISO for Visual Studio 2017

Note to Self

There isn't an ISO image download for VS 2017, you download the web installer, then pass it the commands to construct a disk layout for you. Here's the location of instructions to do so:

    Create an offline installer for Visual Studio 2017

That page includes instructions for:

  • Creating an offline installation layout.
  • Installing from an offline installation layout (may not be necessary, see the comments on this instruction).
  • Customizing the offline installer.
  • Updating the offline installer.
  • Troubleshooting.

And here's the command line I use:

    vs_Community.exe --layout c:\vs2017-community-en-US-offline --lang en-US


Friday, April 29, 2016

MMU section translation fault

While working on a ZedBoard (perhaps also MicroZed and others) you may find yourself facing a message referring to MMU section translation fault. This has happened to me a couple times. In my experience it's because I'm attempting to launch a bare metal application to the PS while the board has already booted to Linux--so the MMU is likely already in use. My solution:
  • Remove the Linux SD card (from which the board is booting) from the slot and reset the board
  • Program the PL (FPGA) again
  • Launch your bare metal application again.

Sunday, January 10, 2016

Atmel Studio 7 incompatibility with Visual Studio 2015 Update 1

I spent a bit of time baffled after installing Atmel Studio 7.0.634 as I couldn't even create a new project successfully. This appears to be an incompatibility with Visual Studio 2015 Update 1. I found an apparent solution to the issue here, which manages to get me past my issues with creating a project. I'm not exactly sure why Atmel Studio has so many binding redirects, but there it is.

Sample error message: The 'ErrorListPackage' package did not load correctly.

Tuesday, June 09, 2015

ZedBoard button bit assignments

Future self,

Here are the bit assignments for the five momentary switches on the ZedBoard, as found by experimentation, for your future reference should you ever wish to use them w/GPIO again:

#define BUTTON_CENTER 0x01
#define BUTTON_DOWN   0x02
#define BUTTON_LEFT   0x04
#define BUTTON_RIGHT  0x08
#define BUTTON_UP     0x10

How to undo (almost) anything with Git

via GitHub.com:

https://github.com/blog/2019-how-to-undo-almost-anything-with-git

Monday, April 06, 2015

Upping Raspberry Pi 2's power to the USB ports

Interesting post on upping the Raspberry Pi 2's power to the USB ports. Out of the box the USB peripherals are limited to 600mA.

http://hackaday.com/2015/04/06/more-power-for-raspberry-pi-usb-ports/

Tuesday, July 08, 2014

WPF Binding Diagnostics

Note to self: when trying to diagnose WPF binding issues, and you want more debug spew, here's that attached property you can't remember:

PresentationTraceSources.TraceLevel

Good luck!

Saturday, November 23, 2013

Portable Class Libraries in F#

Just ran across Using Visual Studio to Write F# Programs, specifically the section "Portable Libraries in F#," which answers a question I had the other day:

Which version of FSharp.Core.dll should I reference in projects that reference my F# PCL assembly?

The link above answers that.