Hello all, I just started seeing the following issue while trying to work with B4J and a raspberry pi.
Basically I'm trying to talk to a 433 MHz Transceiver over SPI using the raspberry pi 3 B+, everything was working fine up until I decided to make all my functions to return a resumablesub
I am not getting the following error every time I try to compile either in Debug or Release mode
And Here's is also the readStatusReg function
As I mentioned above, everything was running fine until I had to make all my functions to return a resumablesub.
Any ideas why this is happening?
Walter
Basically I'm trying to talk to a 433 MHz Transceiver over SPI using the raspberry pi 3 B+, everything was working fine up until I decided to make all my functions to return a resumablesub
I am not getting the following error every time I try to compile either in Debug or Release mode
And here is the getMarcState functionSystem.UnauthorizedAccessException: Access to the path 'C:\Users\walter.flores\Documents\B4J\B4J Projects\ReceiverSPI\Objects\bin\classes\com\genesis\receiver\cc1101$ResumableSub_getMarcState.class' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at fa.a.ad()
getMarcState Function:
Public Sub getMarcState As ResumableSub
Dim rs As ResumableSub = readStatusReg(CC1101_MARCSTATE)
wait for (rs) Complete (result As Byte)
Return Bit.And(result, 0x1F)
End Sub
And Here's is also the readStatusReg function
readStatusReg:
Public Sub readStatusReg(regAddr As Byte) As ResumableSub
Dim rs As ResumableSub = readReg(regAddr, CC1101_STATUS_REGISTER)
wait for(rs) Complete (ret As Byte)
Log("readstatusreg response: " & ret)
Return ret
End Sub
As I mentioned above, everything was running fine until I had to make all my functions to return a resumablesub.
Any ideas why this is happening?
Walter