Ian, is there a way to obtain the software levels in 'update mode' and from the boot loader ?
Do you mean versions? Or the current mode? In ROM update mode ols-loader can read and report the bootloader, PIC firmware, and hardware version. Note that the bootloader version is OUR bootloader version, not the manufacturer's protocol version that is reported in the bootloader mode. This is also documented on the wiki: http://dangerousprototypes.com/docs/Log ... e_protocol
The bootloader is an HID device, so there is no confusing it for the update mode. You can get the bootloader protocol
version in the bootloader mode, and that is it.
I think it would be good to define a fixed location in the binary images (firmware and bitstream) to hold a version number or build ID (a 16bit int is probably sufficient). This would allow querying and displaying these in 'update mode' quite easily.
The firmware does hold a version which can be queried and reported (see above). We could fix it to a program memory address, but the only advantage of that would be the ols-loader utility could read the version before programming. Why not just look at the file name?
I don't think there is the concept of a fixed variable location in the FPGA synthesis process. Querying the bitstream version from the PIC is a huge can of worms. I don;t see the advantage of the update mode reporting the existing bitstream version when it is about to be overwritten in 99.99% of cases.
At least the bitstream version should be available to the (java) client as well.
Ther eis currently no way to query the version from the SUMP Logic analyzer core in the FPGA. None. This is a long wanted feature, but no VHDL developer has ever contributed it. Very recently dogsbody dropped a Verilog replacement that implements this feature. It should be available in the next update.
The PIC could query this in ROM update mode to report the current bitstream version. If you make the modifications I'll happily include them in the next PIC release, but I'd need some motivation to do it myself and I don;t see the need right now.