![]()
I’ve found that the filesystem is not very robust when it comes to power cycles or brown-out conditions. Depending on the microcontroller selected, they may have their application code internal on the MCU or external on a memory device such as an SD card. Next, developers need to consider how they will recover their system if something goes wrong. Developers need to consider how secure they need their system to be and potentially take extra steps to protect the intellectual property. The bytecode does make it a little bit harder but it’s not too difficult to convert the byte code back into readable code. The problem with these solutions is that the application code is readily available to anyone who can gain access to the MicroPython file system, which is quite easy to do. MicroPython allows developers to either load code-text-based Python scripts or to compile those scripts into bytecode and place them into a.mpy module. DISADVANTAGES OF EMBEDDED SYSTEMS HOW TOFirst, developers need to consider how to protect their application code. When considering using MicroPython for product development, there are several key considerations that developers need to consider. DISADVANTAGES OF EMBEDDED SYSTEMS DRIVERS(Looking at one of my I2C drivers in C revealed several thousand lines of code, granted it is a very robust implementation and provides a just a handful of functions to interact with the bus once the ground work is laid). ![]() That’s it! All the ground work for handling I2C is handled by the MicroPython libraries, which dramatically simplify development. I2c.mem_write (40, DEVICE_SLAVE_ADDRESS, REGISTER_ADDRESS, timeout=1000) # Set the proximity threshold that will enable GMODE I2c.init(I2C.MASTER, baudrate=400000) # init as a master I2c = I2C(1, I2C.MASTER) # create and init as a master ![]() DISADVANTAGES OF EMBEDDED SYSTEMS DRIVERDeveloping an I2C driver can be fairly complicated in C, but with MicroPython it requires nothing more than the following lines of code to create an I2C object and send data to a slave device: For example, a hardware engineer could design a circuit board and with little to no knowledge about how the microcontroller (or C) works, develop high-level scripts that could test a circuit board by controlling GPIO, or even communicate with I2C devices. What’s interesting about these language characteristics is that they make it possible for every member of a development team to become a programmer! MicroPython provides a series of libraries that provide control to low-level microcontroller features that abstract out the complexity. When compared with C, Python also provides built-in mechanisms for creating threads, handling errors and easily integrating into test harnesses. DISADVANTAGES OF EMBEDDED SYSTEMS SOFTWAREIn fact, I’ve encountered elementary students who were learning Python! Python provides developers with a high-level programming language that they can use to build simple scripts or that can be used to develop complex object-oriented architectures that use all the best practices for a modern software project. The Python programming language has a shallow learning curve which makes it extremely easy for developers to get started with it. Python Language Programming Characteristics Let’s examine a few pros and cons for using MicroPython: ![]() With the project now in its sixth year, it’s been gaining popularity and momentum that could make it the programming language you use to design your next product. Python for use on a microcontroller, though, never seemed like it would fit the bill until MicroPython, a Python 3.0 port designed to run on microcontrollers. While languages such as Java and Ada have certainly tried, Python is the language whose popularlity has not only been on the rise but has been finding its way into Linux-based applications for quite some time. The C/C++ programming languages have long dominated the embedded systems industry, with very few other languages being able to find a foothold. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |