Xilinx SDK & Stack Size: How to see/set it - xilinx

I suspect I'm having a stack overflow issue. I'm using the Xilinx SDK on a Zynq 7020 but I can't be sure.
How do I find out what the stack size is that the Xilinx SDK is using, and then how do I change it?
Note that I'm using the GNU toolchain

In the SDK Project Explorer:
Expand the create application/src folder
Open the lscript.ld file
Edit the Stack and other memory settings in the opened
window

Related

Does the Webpack Vivado 2020.2 include the SDK

I am confused. Does Vivado 2021.2 include the SDK using the Webpack license?
Digilent says yes: https://reference.digilentinc.com/programmable-logic/guides/vivado-create-hdl-wrapper
(the hdl wraper is part of the SDK, peta linux, etc)
But, my installation does not seem to include it.
Where did I go wrong?
Thanks
Err... Turns out that Vivado went from SDK to Vitis. So now they are using Vitis for their higher level languages.
https://forum.digilentinc.com/topic/21686-does-anybody-have-the-xilinx-vivado-20194-sdk-xilinx-doesnt-have-in-the-archive/?tab=comments#comment-62563
https://forums.xilinx.com/t5/Vitis-Acceleration-SDAccel-SDSoC/Vitis-Community-How-can-we-help/td-p/1117972
Here are some examples:
https://reference.digilentinc.com/programmable-logic/guides/getting-started-with-ipi
https://github.com/Xilinx/HLS-Tiny-Tutorials

Where to get OpenCL SDK?

I tried to download OpenCL SDK. But no way. I have an AMD GPU so I searched on Google for AMD SDK but all the links from google and some tutorials are broken and there is no possibility to find the sdk through AMD developpers site.
Well I tried then Intel OpenCL SDK ... but there is no direct link. I tried to register and apply for the sdk but I don't see any download links in my mail box :(
Is it that difficult to get hands on OpenCL SDKs? Something I am missing?
UPDATE:
Finally as for OpenGL SDK is only needed for headers and libs. And tools ...
Looks like the SDK is deprecated and we should just use OpenCL SDK Lite that only contains headers and library files:
https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases Pretty disappointing.
There are still tools related to ROCm for linux but not much for Windows. CodeXL should work on windows thow.
For Intel SDK I finally received a confirmation mail and could download it. It took a couple of days.
Full Installers:
32-bit: http://amd-dev.wpengine.netdna-cdn.com/app-sdk/installers/APPSDKInstaller/3.0.130.135-GA/full/AMD-APP-SDKInstaller-v3.0.130.135-GA-windows-F-x86.exe
64-bit: http://amd-dev.wpengine.netdna-cdn.com/app-sdk/installers/APPSDKInstaller/3.0.130.135-GA/full/AMD-APP-SDKInstaller-v3.0.130.135-GA-windows-F-x64.exe
On Win64, you can build the SDK yourself. Get the OpenCL headers from Khronos, and build the import library from the OpenCL.dll using the VC++ tools. See csidev.net.

Finding boost framework with Cmake for iOS

I have Boost built as a framework for iOS. This is currently installed in Applications/Xcode.app/Contents/Developer/Library/Frameworks/.
When I create a "hand-generated" XCode project, I have no problems using this framework.
I'm now trying to use CMake to generate an XCode project. I found this helpful, cross-compiling toolchain (https://github.com/cristeab/ios-cmake). This works as long as I do not include
find_package( Boost )
But when the above line is added to my CMakeLists.txt file, I get a "Boost_INCLUDE_DIR-NOTFOUND"
So question is: has anyone had success in using CMake with Boost for iOS? If so, any help on how to go about it is greatly appreciated.
I found another SO user trying to do something similar here: How to find a iOS/mac OS X framework via Cmake
But it does not offer much details other than using "CMAKE_FRAMEWORK_PATH".
So any help is much appreciated.
Thanks...
find_package cannot find boost built for ios (tested on cmake 3.13 and 3.14)
Was able to solve it in following way.
Build boost using https://github.com/faithfracture/Apple-Boost-BuildScript
set BOOST_ROOT to Apple-Boost-BuildScript/src/boost_x_xx_x
for iOS:
set(Boost_INCLUDE_DIRS "${BOOST_ROOT}")
set(Boost_LIBRARIES "${BOOST_ROOT}/iphone-build/stage/lib/libboost_date_time.a")
set(Boost_LIBRARIES "${Boost_LIBRARIES};${BOOST_ROOT}/iphone-build/stage/lib/libboost_regex.a")
set(Boost_LIBRARIES "${Boost_LIBRARIES};${BOOST_ROOT}/iphone-build/stage/lib/libboost_system.a")
iOS simulator:
set(Boost_INCLUDE_DIRS "${BOOST_ROOT}")
set(Boost_LIBRARIES "${BOOST_ROOT}/iphonesim-build/stage/lib/libboost_date_time.a")
set(Boost_LIBRARIES "${Boost_LIBRARIES};${BOOST_ROOT}/iphonesim-build/stage/lib/libboost_regex.a")
set(Boost_LIBRARIES "${Boost_LIBRARIES};${BOOST_ROOT}/iphonesim-build/stage/lib/libboost_system.a")
I hope it's not too late:)
I came across almost same issue, find_package always complain that can not find the lib, even the search path is correct, notice that the similar issue also exist for Android NDK
For the ios I suggest:
Enable boost debug by set(Boost_DEBUG ON), then check the path specified is correct or not, ref to this link for more info
How can I get CMake to find my alternative Boost installation?
Try find_host_package instead of find_package, I found some clue in ios.cmake which may lead to the issue:
# only search the iOS sdks, not the remainder of the host filesystem
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

Is it possible to compile potrace for iOS?

Looking at the cross-platform nature of potrace http://potrace.sourceforge.net/, is it possible to compile this for iOS? If so, how?
Yes, it is possible to compile potrace for iOS.
As a matter of fact, most open source libraries using standard (GNU) configure tools that compile on MacOS X will easily compile on iOS, because they are likely free of platform-specific code (e.g. linuxisms) and standard configure tools allow cross-compilation.
You can compile these libraries in the shell by pointing configure to the proper toolchain and SDKs. Paths changed with Mavericks and Xcode 5, but fortunately automated scripts exist for more popular libraries such as expat.
The proposed solution is based on the x2on/expat-ios project on GitHub. Their script fixes expat's config.sub which doesn't know about arm64 target. Do does potrace 1.11's config.sub. However, a simpler approach consists in downloading a more recent version of config.sub. Unlike expat, potrace doesn't seem to need any patch to compile for iOS.
Full script build-potrace.sh is available here:
https://gist.github.com/pguyot/dce18af64a71b93c0204
Please note that potrace is licensed under the GPLv2. You might want to check Is it legal to publish iOS apps under the GNU GPLv3 open-source license? question.

Blackberry AES encryption error

I have implemented AES encryption in BlackBerry using code from the Knowledge Base Article "How to - Use Advanced Encryption"
I keep getting error:
Module 'net_rim_crypto' not found.
In the code I have imported net.rim.device.api.crypto.*; package, but I can't find the package net.rim.crypto.
Do I need to add any external jar for that?
You should install JRE 4.6 and set the API level to 4.6 and OS of the target device should be higher than JRE version.
If you have problem with BlackBerry API or OS version, you may consider to use bouncy castle for j2me.

Resources