PUB GetAccelZ():i
i:=(accelZ signx 16)
return i 'with sign extend
That's a Spin2 feature: the number of values returned from a function must be explicitly indicated by declaring return variables. I think your first example would have worked as long as you had the ":i" after the "GetAccelZ()" to indicate that the function returned 1 value.
Did you download the version marked v34vb that is signed? I also installed on the 13th and it just ran fine, though Windows Defender has been pretty aggressive with PNut in the past.
For PNut_v34v (not the signed version),
On a Win10 Pro version 1903, Virus & threat protection reported
Threat detected: Trojan:Win32/Zpevdo.B
Alert level: Severe
Category: Trojan
Details: This program is dangerous and executes commands from an attacker.
I was able to Allow on this system, and then restore the software, after which it ran fine.
I'll report back if it tries to remove it again.
Edit: Based on the virustotal.com report it looks like McAfee is the source that the OS is listening to for this.
@kg1 No, There was a button with a drop-down menu which included 'Allow'. Then the next screen had a button with a drop-down menu for 'Remove' or 'Restore'.
If it comes up again I'll take screenshots, although in Protection History it does state 'This threat or app has been allowed and will not be remediated in the future.'
I imagine that it may leave me exposed to the Trojan appearing in other apps, but the machine in question isn't my daily drive so I'm not too concerned. I would expect others to be concerned at taking such a step on their main computer.
Updated to version 2004 of Win 10 Pro and the copy of PNut_v34v is not flagged as a threat, but when downloading a fresh copy it is flagged aa Trojan Zpevdo.B. Strange.
Edit: The PNut_v34vb from Github isn't flagged as a threat.
I also found a problem with my LOGSCALE calculations. Got it straightened out:
_clkfreq = 200_000_000
PUB go() | i, j
debug("`scope_xy mag size 300 range 25 samples 0 dotsize 2 logscale")
repeat i from -25 to +25
repeat j from -25 to +25
debug("`mag ", sdec_(i,j))
waitms(1)
Looks good Chip! This logic display stuff will certainly be very helpful for some signal debugging. If this also gets coupled with a high speed logging COG in the P2 itself designed to record pin states to hub at full P2 clock speed and then output them serially to your display, it will be very useful. Not too many micros will have that type of capability I would expect.
A while ago to debug HDMI data I was able to capture HDMI pins at 252 MHz with a COG using stuff Brian had figured out and then send this data to a PC to analyze, but I needed some mucking about writing custom utilities to try to process/analyze it. The display you came up with could have been very useful and let you debug things right away. If there was a mouse cursor that displayed the current hex/dec/ascii values of each coloured trace at each sample point that the mouse was over that would be good too. But I know you could begin to add features all day. Simple is good.
Looks good Chip! This logic display stuff will certainly be very helpful for some signal debugging. If this also gets coupled with a high speed logging COG in the P2 itself designed to record pin states to hub at full P2 clock speed and then output them serially to your display, it will be very useful. Not too many micros will have that type of capability I would expect.
A while ago to debug HDMI data I was able to capture HDMI pins at 252 MHz with a COG using stuff Brian had figured out and then send this data to a PC to analyze, but I needed some mucking about writing custom utilities to try to process/analyze it. The display you came up with could have been very useful and let you debug things right away. If there was a mouse cursor that displayed the current the hex/dec/ascii values of each coloured trace at each sample point that the mouse was over would be good to. But I know you could begin to add features all day. Simple is good.
Good idea about the mouse cursor showing the value.
Ideas about advanced possibilities of debug output:
Export as csv.
Fft.
Moving average and moving standard deviation.
Waterfall diagram with time as 3rd axis for xy or Fft.
I still think, it would be very useful if debug could output the source code line number. So you can place multiple debug statements to track a variable.
But these things are not top priority for P2 I think.
This has been a long time coming... VirusTotal says only 1 out of 71 engines detect a problem.
The VBA32 engine (the only one left detecting a problem) is a Belarusian company, that seems to be labeled "abandonware" by some on the 'net, after their main engineer went to Kaspersky. I've sent it to their false positive "team" anyway to see what happens.
Comments
Would be good to copy your member of Congress as well.
Glad you figured it out!
PNut doesn't seem to like this:
That's a Spin2 feature: the number of values returned from a function must be explicitly indicated by declaring return variables. I think your first example would have worked as long as you had the ":i" after the "GetAccelZ()" to indicate that the function returned 1 value.
Did you have the PNut v34vb version from here: https://github.com/parallaxinc/propeller/releases
I'm not seeing an issue with that version.
I just ran Windows updates and still no issue.
For reference I'm running W10Pro Version 1909, Build 18363.1016.
C.W.
Yes tried that version again. Windows deletes every thing back to vers s.
Nothing of note, just some feature enhancements.
Aside from getting them to whitelist PNut.exe, I don't think there's much we can do about it.
You're just going to have to put a new version out every 3 days Chip. Needs a new subscription style, delivery to inbox every 3 days
The EULA can state that this program is scheduled to self destruct in 4 days, "mission impossible" style...
Wait a day. It may be gone on a Win machine.
My computer appears to be working fine. I do lots & go many places on the internet, too.
I don't care anymore.
On a Win10 Pro version 1903, Virus & threat protection reported
Threat detected: Trojan:Win32/Zpevdo.B
Alert level: Severe
Category: Trojan
Details: This program is dangerous and executes commands from an attacker.
I was able to Allow on this system, and then restore the software, after which it ran fine.
I'll report back if it tries to remove it again.
Edit: Based on the virustotal.com report it looks like McAfee is the source that the OS is listening to for this.
If it comes up again I'll take screenshots, although in Protection History it does state 'This threat or app has been allowed and will not be remediated in the future.'
I imagine that it may leave me exposed to the Trojan appearing in other apps, but the machine in question isn't my daily drive so I'm not too concerned. I would expect others to be concerned at taking such a step on their main computer.
Maybe I'll try to download again...
I can still download and run the version that is here:
https://propeller.parallax.com/p2.html#software
I even saw a popup "scanning for viruses" and it cleared...
Note: I'm just using Windows Defender for A/V on this machine...
Update: Just updated to the newest version of Win10 and still works...
Here is the code that drives it:
An MP4 file is below...
Edit: The PNut_v34vb from Github isn't flagged as a threat.
A while ago to debug HDMI data I was able to capture HDMI pins at 252 MHz with a COG using stuff Brian had figured out and then send this data to a PC to analyze, but I needed some mucking about writing custom utilities to try to process/analyze it. The display you came up with could have been very useful and let you debug things right away. If there was a mouse cursor that displayed the current hex/dec/ascii values of each coloured trace at each sample point that the mouse was over that would be good too. But I know you could begin to add features all day. Simple is good.
Good idea about the mouse cursor showing the value.
Export as csv.
Fft.
Moving average and moving standard deviation.
Waterfall diagram with time as 3rd axis for xy or Fft.
I still think, it would be very useful if debug could output the source code line number. So you can place multiple debug statements to track a variable.
But these things are not top priority for P2 I think.
This has been a long time coming... VirusTotal says only 1 out of 71 engines detect a problem.
The VBA32 engine (the only one left detecting a problem) is a Belarusian company, that seems to be labeled "abandonware" by some on the 'net, after their main engineer went to Kaspersky. I've sent it to their false positive "team" anyway to see what happens.