I have recently bought a MikroE EasyMx Pro v7 board for the STM32 MCU, however, the compiler which MikroE uses for Arm Development is their proprietary MikroC compiler, which has hardly any tutorials on it.
I was wondering if anyone has successfully configured their board and the STM32Cube IDE to work well together, or if it is even possible.
As long as the MCU is from STM32 series, you can use STM32CubeIDE to develop for it. This applies to any board.
Also, as described in the manual, the onboard programmer is based on ST-Link V2, so debugging should not be any issue.
Related
I am trying to build a project based on IoT with flutter, android things, and raspberry pi. For that, I need to access raspberry pi GPIO pins through my flutter app.
Firstly I have installed android things os onto the raspberry pi and connect a display to it. After that, I have to build a flutter app and uploaded and it's working perfectly but now I need to control GPIO so I have googled it but found nothing except the rpi_gpio dart library which can access raspberry pi GPIO pins but apparently it is not working on flutter dependencies.
So is there a way then suggest me so that I can complete my project.
I know that this posting is a bit old, but another option might be to use the pigpio library. It has a feature that pushes the entire API out to a network connection (this feature is called "pigs").
I struggled trying to use FFI to interface with the C-based pigpio library on a Pi Zero W. Then I was reminded that Dart support for the older, less powerful devices had been dropped from Dart, so I was stuck with no graceful solution until I tried out pigs. The pigs interface completely removed the headaches associated with either FFI on Dart or JNI in Java and just made it a happy Socket interface over the network. I was doing an I2C interface to a temperature/humidity sensor. Pigs should also make a browser-based Flutter app happy as long as you deal properly with the single origin requirements.
Here's a link to pigs on pigpio
I've recently seen a Dart library for the Raspi's GPIOs. As Dart is the underlying language of Flutter, shouldn't you be able to then use the pins by importing this library?
https://pub.dev/packages/rpi_gpio
As far as I know there is no plugin for Flutter to interact with Peripheral IO. Given Flutter's nature of targeting multiplatform and Android Things being very specific, I do not think something like that will exist.
Most IoT applications have quite simple logic, so it should be reasonable easy to write the UI on Android directly (given you are not planning to release in any other platform anyway.
Your other option would be to create a Flutter plugin for GPIO and port it only to Android, but IMHO it will be harder to do than just code the UI of the app directly on Android.
There is now another FFI-based gpio on RPI Dart package called gpiod.
Its use is described in this article on running Flutter on a RPI based device.
Can anyone suggest or recommend development tools or documentation for writing graphical applications on the Acorn RISC OS on the Raspberry PI? This OS is newly supported on the Raspberry PI computer, and I would like to be able to write graphical applications for that OS. It is however quite hard to identify working tools for the version on PI, given the long history of RISC OS, the (multiple) incompatible revisions of the OS, and relatively scant resources for RISC OS on PI.
One set of development tools bundled on the official RISC OS SD card image is the Charm high level programming language.
There is an implementation of the Lua scripting language available too, with extensions to integrate with the WIMP GUI environment.
The RISC OS Programmers reference manuals provide details of the available SWI's (API's).
If your happy with using the inbuilt BBC BASIC and / or ARM assemblers, open a text editor of your choosing (I used to like Zap) and simply Google for BBC BASIC wimp and pick a tutorial e.g. Beginners Guide to WIMP Programming OR Wimp Programming on RISC OS
If you wish to play in something other than BBC Basic or ARM assembler, RISC OS open sell a USB stick with assorted compilers and a set of DDE (Desktop Dev Environment) tools, which I assume are PI compatible. Unfortunately the few high level GUI based development tools, such as Helix Basic won't work on the PI.
Raspberry Pi RISC OS System Programming Revealed by Bruce Smith looks pretty good covering BBC BASIC, ARM Assembly and some C. It includes some WIMP development.
Also, check out the Documents folder on the Raspberry Pi RISC OS release. There should be a subfolder to do with programming which contains an introduction to BBC BASIC and the developer's guide to WIMP programming mentioned in #arober11's answer above. I think there are a couple of sample programs included as well.
Has anyone done any Unity project where USB communication is done? I have to do USB communication with a board to get sensor values. How can I go about doing this USB communication?
You can link .NET DLLs in Unity by adding them to the project (drag and drop worked, if I recall correctly). So, code your board access library in a Visual Studio project using .NET, exposing the API you need to use and add the DLL.
You will be able to access the contents of the DLL from your Unity code (although I have only done this with C#).
Of course, this only works on PC. For other platforms, I don't know if this is even possible.
EDIT: Minor correction.
I'm just beginning to teach myself Java coding, in hopes of building a few blackberry apps.
I assume I should:
learn the basics.
buy a blackberry app building book - learn the ropes
acuqire necessary software - here's where my questions begin...
Do I use Eclipse as the IDE? What about the Java API? Remember, I'm a complete newb, so my jargon may be somewhat...well...wrong. But, I think these two peices are initial steps, no?
And most importantly, should I even be trying to code on my Macbook Pro? Or should I stick to my IBM compatibable, and learn from there?
Thanks for your help!
I'll answer each of your questions separately.
Yes, you have the basics of how you should learn. More than anything, it is important to understand the concepts of the Java language before you go too far in development because understanding those concepts can be the difference between a successful application and a failure (which will, ultimately, discourage you and perhaps cause you to give up).
With respect to what IDE you can use to code, you can use Eclipse (my personal favorite), NetBeans, or, just a notepad. Oracle's Java Development Kit (JDK) is what provides the Java compiler that you actually need to build your code and get it to run. However, a solid IDE can ease the process as well as provide a large number of features to make your development much easier.
It does not matter where you develop. A major advantage of Java is that it is platform independent. You can code Java on a Mac and it will work on a PC and it will work on Linux, etc, etc. All you need is the proper JDK to build Java for that specific platform. So, don't worry about that and work on the machine that is best suited for your needs.
You may want to browse around StackOverflow for a bit and read up on some of the other beginner questions on Java. Other than that, I would highly going out and getting a good Java development book and reading the tutorials that are available online.
Hope that helps get you started. Good luck and welcome to StackOverflow!
Blackberry Development on Mac OS X
The new eclipse blackberry plugin for OS X does not have a simulator so if you want ot debug you will need to hook up an actual blackberry(or run the simulator from a windows vm).
Blackberry uses Java ME and some rim classes(net.rim namespace).
Documentation is here http://www.blackberry.com/developers/docs/6.0.0api/index.html
Note that just because a class with the same name as a regular(java SE) class is there does not mean it has all of the same functionality.
Also why do you want to develop for the blackberry specifically?
You can use Eclipse as an IDE, it would certainly do the job. I'm partial to Netbeans myself, and it would do the job too. XCode is Apple's own IDE, and from what I hear you can do Java development with it (it's been a while since I last used it). Finally, I hear from other sources that IntelliJ might be worth considering.
Particularly important to note is that all of these work fine on a Mac, so there's absolutely no need to move to a different platform (Windows, etc) unless you want to. I know from experience that both Eclipse and Netbeans both work on a PC, so you could consider those if you do decide to change to PC. XCode isn't released for PC on the other hand. I don't know about IntelliJ.
As for the Java API, all of these IDEs should install a copy of the Java Development Kit (JDK) when they are installed. This includes all of the API files, compilers, tools and documentation you should need to get started.
Is there any iphone ARM based decompiler available?
You might have some luck with Ida Pro. It's kind of expensive though. I'm not sure if it has ARM support, but OllyDbg generally does well for my windows project.
(I just looked at it, and OllyDbg doesn't support ARM, but I'm leaving the link because it's still a great program.)
Ida Pro is the disassembler, it translates the binary into human readable ARM assembler.
hex-rays also provides a real decompiler, which translates the disassembled code into C.