STM32 Build Error "cannot open linker script file" despite having it - c

I am running STM32CubeIDE version 1.6.0 (which is writing in C) on a Windows 7 virtual machine running on Parallels. I am trying to "build" my code, but when I do I get an error that says:
cannot open linker script file \MAC\Home\Documents\STM32CubeIDE\A1\STM32L476RGTX_FLASH.ld: No such file or directory
I've checked and have found the file from both the mac and PC side of my computer. If I had to guess, the issue is that the link the program is looking for is
\MAC\Home\Documents\STM32CubeIDE\A1\STM32L476RGTX_FLASH.ld:
but the ACTUAL link is
\\MAC\Home\Documents\STM32CubeIDE\A1\STM32L476RGTX_RAM.ld
with TWO back slashes.
If anyone can help with this, I'd really appreciate it, I've also attached images below of the error and finding the file on both operating systems respectively in case it helps:

This isn't a fix but a workaround: try mapping the shared directory \\MAC to a drive letter.
From Microsoft Support:
Select Start > Computer > Map Network Drive.
In the Drive list, select any available drive letter.
In the Folder box, type the path of the folder or computer, or select Browse to find the folder or computer. To connect every time you log on to your computer, select the Reconnect at logon check box.
Select Finish.

Related

Problems writing to USB drive from _www process

I have a macOS C program which is a helper app. It runs as root and has sticky permissions.
One of the jobs of this program is to backup files to an external USB drive.
When I run the program from a terminal window... it works perfectly.
However, when invoked via a web admin page (eg., via the web server), it fails to run with an "operation not permitted".
This is on the latest macOS. I've set the drive to be "ignore ownership on this volume". The drive in /Volumes is also 777.
So... when the process is invoked via the web, the user/group is both _www. It appears that no matter what, the process invoked via _www can't write to the USB stick.
To be more specific... it can't create any new files. It CAN overwrite existing ones. It can't mkdir either.
I've googled my brains out and no solutions seem to work.
Any help would be appreciated!
Ok, I found the solution here.
Open System Preferences and go to Security/Privacy and then click Full Disk Access from the left side and enable the httpd access from the right side.
Thanks!

PostgreSQL Error: The program can't start because libpq.dll is missing from your computer

I'm using Visual Studio 2010 to build a program in C that can operate on a PostgreSQL database.
Everything is fine in VS, no compile errors, everything looks good.
When I click to debug and run, the code compiles, but then I get a pop up that says:
The program can't start because libpq.dll is missing from your computer
I've installed PostgreSQL and added the folder containing all the necessary files to my include and linker paths, but to no avail.
I cannot figure out why I am still getting this message?
Any suggestions?
The answer's surprisingly simple.
The issue you're seeing comes from the compiled application not being able to find the PostgreSQL libraries. The libpq.lib is used to compile the application, and it links to the DLL at run-time. You can either add it to your system wide path, or bundle the DLL with your application. (I'd add it on the development machine, and bundle the redistributable for a installer package.)
To include it in your path try:
Right click on "My Computer" and select Properties
Then Click on "Advanced System Settings".
Click the "Environment Variables" button at the bottom of the dialog box.
It will pop up a dialog with a group box labeled "System Variables". Find the one in the list box that has a Variable name of "Path".
Now, add the path of the PostgreSQL library folder to the path with a ";" separator.
Now logout or reboot. It's imperative that you at least log out of Windows and log back in for the Visual Studio debugger to pickup the additional executable module paths (that Path variable). Ideally, rebooting sends the new system path to all applications in the system at boot time.
If the Path variable has "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem" in it, you would add ";C:\Program Files\PostgreSQL\libraries" to make it look like "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\PostgreSQL\libraries".
Be aware that your path will be really long in most cases. Just add it to the end.
Good luck!
I have Win10 64 bit and this worked for me.
Get portable version of HeidiSQL and copy libpg.dll from the archive to the HeidiSQL installation folder on your computer.
Works like a charm.

Files open as completely empty in Dreamweaver

While using dreamweaver I connected to my website and attempted to work on a file on my remote server (the actual site server) and when I opened it there was NO CODE AT ALL. When I logged into the actual site, the file functioned normally and when I went to the file manager on the actual site, the file was perfectly fine. Please help!
Also ,when I try to open a file, it gives me an error "This page may have dynamically-related files that can only be discovered by the server" When I tell Dreamweaver to try and discover them it tells me they "could not be resolved". I have never had this dynamic file thing pop up and I do not have any dynamically-related files that I am aware of, I do not even know what they are and I opened these same files without an issue last week when I updated some.
Found the answer, was a corrupted cache. Followed directions here:
Dreamweaver's cache is kept in a file in its Configuration folder. That file name depends on OS:
For Windows it is WinFileCache-<randomString>.dat
For MAC it is MacFileCache-<randomString>.dat
Deleting of that file clears the cache. After restarting Dreamweaver is creating new one. Location of the cache file differs for each version and operating system. Here is a list of locations depending on DW version and OS:
For Dreamweaver CC:
Vista, 7 & 8: C:\Users\<username>\AppData\Roaming\Adobe\Dreamweaver CC\<language>\Configuration
XP: C:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver CC\<language>Configuration\
Once I cleared it and rebooted and restarted it worked fine!

Use Chrome portable to open a index.html file on the same USB stick for a homepage

IS it at all possible to set the Google homepage to a file located on my USB pen drive?
I can link it though the file path, problem being the drive letter would change depending on the system it is plugged into so a hard coded homepage link wont work.
Im unsure of the syntax to use to make it upen the file -
%USBDRIVE%/Webfiles/index.html
The page is used to help new users navigate the USB pen and get the info/files they require as its aimed as users with next to no IT skills or disabilities
Thanks Guys
You've probably found a solution already, but just come across your question and I recently had the same scenario. I'm assuming you mean on PC.
I solved it as follows:
In the PortableGoogleChrome folder (after portable chrome is setup on the usb drive), there is a default file called parameter.txt. I added the following in order to set the homepage to my local file. It is in a sub folder called 'resources' located on the usb drive root:
--homepage="\resources\index.html"
That's all for the parameter.txt file. That takes care of the homepage setting.
Now to launch portable chrome, I created a windows batch file called launcher.bat also at the root of the usb drive (call it whatever you like obviously!). I added the following code:
#echo off
cd PortableGoogleChrome
"ChromeLoader.exe"
The launcher file changes the directory to PortableGoogleChrome and then loads Chrome via ChromeLoader.exe which takes in your homepage or other parameters in Parameters.txt.
FINALLY, in order to create an application to replace the Launcher.bat file (as I figured a windows application with icon would be more intuitive to run than the batch file), I found a windows utility called bat_to_exe_converter which enabled me to convert the bat to an exe and supply an icon also (having tried to do so in C++, C# but errors because of needing supporting DLL's, this was much more straightforward).
Hope that's of use!

transfring myob from one computer to other

i have MYOB installed on one computer and that system crush due to virus, i got all myob data and program files.
problem is i don't have installer for MYOB, i lost it.
i copy all the myob folder to c:\program files\myob
and try to run myob, its giving MYOB ERROR 9004
after i search on net i found that i need to create these registry entries which i did
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\MYOB Technology]
[HKEY_LOCAL_MACHINE\Software\MYOB Technology\AU]
[HKEY_LOCAL_MACHINE\Software\MYOB Technology\AU\MSC]
[HKEY_LOCAL_MACHINE\Software\MYOB Technology\AU\MSC\3.0]
"JavaHome"="C:\\Program Files\\MYOB\\Common\\JRE"
now program run and after getting user name & password it give error initialization error.
does any one have idea how to run myob on system without installing it.
Thanks
are you copying all folders, this error seems that you are missing some files/ folders.
check all the folders and files.
Make sure you also copy and paste over the MYOB file in your Program files, as well as the MYOBVersion as this is where the licence is!
The best answer will depend on which product and version you have installed and for the most accurate detail you're best reaching out to support directly.
For products like AccountRight Live you can easily re-install the software on the new computer. You can get fresh copies of the installers from the product downloads section of your my.myob.com login.
Individual company files (.myox for AccountRight Live) can be copied to the new computer and then opened (in much the same way you would install Microsoft Word and then open a Word .docx document) noting that each file is linked to the serial number.
And lastly on a note of personal advice: run a patched anti-virus on the new machine :)

Resources