I was a Keil user. With the projects I'm dealing with are getting bigger, the free trial version of Keil with 32K byte limit no longer a choice for me. My teacher even encourage us to use a pirate version of Keil. I'm a fan of opensource and VS Code. Microsoft does a great job on optimization and F1 command is so convinient. But there are still lots of steps to do for debugging in VS Code, I choosed STM32CubeIDE, which is based on ECLIPSE and intergrated with stm32Cube. This note is written with STM32CubeIDE Version: 1.4.0 STM32CubeMX Bug list USB device descriptor request failed: Adjust PLL parameters in clock configuration tab. Try different parameters that still outputs 48MHz to USB peripheral. USB device DFU class: USBD_DFU_MEDIA Interface, aka FLASH_DESC_STR, longest size is 127 chars. Doesn't go any further even you change any parameter found in CubeMX. Include a header file correctly
3/6/2022There are a bunch of tutorials showing how to pack your .py code to an executable(such as .exe in windows). However, most of them just show one or two command packing the executable in the simplest way. In this note, I will also show you the basic, the simplest way to pack your executable and I will also show you how to deal with the annoying import errors. I believe that PyPi page of pyinstaller helps alot. Install pyinstaller If you have pip installed: pip install pyinstaller If pip is not available in your enviroment, then you can download the archive and unzip it. Excute following with administration access:
9/14/2021When developing applications of modbus, you need a modbus Server or Client. But not everyone has a real PLC. That's why PLC TCP simulator exists. Here are two tools introduced, both on windows. Before reading this note, I assume you already know what Modbus is and how Modbus TCP works. Simulated Modbus Clients and Servers ModRSsim2 as PLC(aka modbus server or slave) ModSim as PLC(aka modbus server or slave) ModScan as HMI(aka modbus client or master) The trial version of ModSim and ModScan has limitation but it's sufficient for testing purpose.
7/25/2021Hence I can not understand well the usage from the official document, here is the note for pymodbus. This note is written with pymodbus==2.3.0. You can also visit the github page for more information. It's okay that you don't have a modbus slave device, such as PLC. You can use a simlation software as an modbus slave, see modbus: Simulation Tools. To install the library: pip install pymodbus Modbus Simple Introduction Modbus point type Note that the table below shows the maximum range defined by modbus official spec. However, in most applications, PDU addresses are no bigger then 1000, and the absolute addresses are denoted as 00001, 10001, 30001 and 40001.
4/25/2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up