disable write protection on stm32l4 - embedded

Does anyone know how to disable write protection or check if user address is write protected? I'm using stm32l4xx series and would like to do it by embedded code in program not by using STM32 ST-Link Utility. Any examples are very appreciated. Thank you

Related

What are the most effective ways to encrypt and protect my VBScript and VBA code?

I need to be able to run my scripts and macros on my client's system without revealing my code. I understand that .vbe wouldn't help much. Is there any way around creating an .exe? But then again, macros would still be exposed. Obfuscate the code?
Would be moving to a python program soon, but until then...
Right click the VBAproject and click 'Project Properties' then select Protection tab and check 'lock project for viewing' and set a password. Now if anyone wants to view the vba files they need a password first.

Protect source code at delopment time in tfs

I use TFS , My question is how can i sure about that developer who work on a project can not copy source file and evict or extract them from office by Email,flash memory,USB,... ?
Is there any solution with TFS?
Can anyone help me?
TFS has no ability to do this, once a file has been retrieved from TFS it is just another text file on your computer you will have to use other tools to do what you want.
Opening it up to tools outside of TFS it is extremely difficult to do what you want to do but it is possible. Your best option is contact a security firm that often works with government defense contractors and have them set up your network IT security, some government defense contractors have the same requirements as you list and they would know all the things you would need to do.
Off the top of my head some of the things you will likely need to do is:
Use group policy to block writeable media from being used to block flash drives and CD-Rs.
Block internet access to stop webmail.
Block printing to stop people printing out the source then using a scanner and OCR software on another computer to turn it back in to code.
Not allow any device that can take photographs in areas where source code may be on screen as the same OCR procedure could be done with photographs.
This list is no where near complete and I would recommend contacting a security firm to get a complete list.

How to use shared variable in labview for communicating strings?

i have created two projects,one as master and one as slave to read a string from slave to master in labview using DSC module.Master is showing error in opening connection to shared varibles.Ihave tried every known options to debug it.Can ny1 help by providing block dig or giving some tips for same??
i would really appreciate ny help.
What error is your Master showing?
If you would like an example, NI provides one with LabVIEW that might be helpful. Go to the Help menu, then click "Find Examples..." to open the Example Finder. Browse according to task to Networking >> Shared Variable >> Shared Variable.lvproj.

Folder locking with password

Hello can anyone explain me or give me some examples of how to lock a folder with VB.net.
I want to chose folder, set password for it and then lock it.
When i try to open that folder i want my app to popup asking for password, if password is ok then unlock folder if not do nothing.
I know how to do all except this autorun of my app when folder is accessed.
Thank you!
Your scheme as you described it doesn't mention encrypting files, and without encryption use of such "locking" is questionable.
Now, encryption or not, your only solution is a filesystem filter driver which will ask the password when the file is accessed, and then will allow or deny opening of the file (and on-the-fly encryption/decryption must be performed as well).
VB.NET can't be used to write a kernel-mode driver (you need deep knowledge of C and Windows internals and about 6 months of work to create a driver). You can use our CallbackFilter product, which provides a driver and lets you write business logic in user-mode.
on the Microsoft forum there is the following solution, maybe it's useful to you: http://social.microsoft.com/forums/en-US/softwareresources/thread/9a0f17af-928e-4732-a3ba-90d54ed961ea ; you may create the file they suggest dinamically by your software and then manage it.

Developing an API for a USB connected Glucometer

I have a ReliOn Glucometer that can be connected to a Windows PC via USB. Glucometer Details Here. I have never tried this, but can someone point me in the right direction to go about connecting to a USB device (C# or Delphi) and pulling data from it? I want to download the current test result and save off to a database to build log of test history. I am a diabetic and I hate doing the tests everyday, but I realized if I can leverage this necessary evil with learning how to work with USB connected device, I at least can get some pleasure in knowing I made some good out of this.
Has anyone done this or something similar? I know there is a website I can join and they have an OCX to do this.. but I don't want to put my info/data on a site, plus it misses the point - I want the challenge of doing this.
Any advice - directions where to start would be greatly appreciated.
I would begin by looking at the USB device driver that comes with the software, especially the inf file. Is it HID or is it for a specific USB chipset, etc? Then look for a relevant development kit/info to take it from there.