When I trying to debug the circuit board which designed for digital power using XMC1302T38-0032. I meet such error. “ Connecting to target...ERROR: Could not connect to target. Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection... ” Finically I found the problem is because BMI (Boot Mode Index) is not right for debug. When XMC1000 device is just out of the factory, its default BMI value is ASC Bootstrap Load Mode. So I change the BMI to User Mode (debug) SWD0 (SWDIO=P0.14, SWDCLK=P0.15). The I can sue DAVE4 to debug the boards. I use the XMC42_OBD build in on XMC1000 boot kit to debug my board. The method to change BMI is. 1) click the tool icon as below. 2) On the pop up window, you can get or set BMI as below. 3) Set the BMI So I suggest before design your own board, try to under stand the BMI options first. Thus, you could design a board could use.
1. Download XMCFlasher from website of Infineon . Or use this link XMCFlasher ; 2. Install Oracle Java8 JRE . If it is not yet installed in your system. 3. Install the latest Segger JLink software . 4. Extract the folder XMC™ Flasher to the preferred location. Double click on XMCFlasher.jar, Click on Connect and select which mcu you are going to program. If some error happen. Maybe it because the BMI set is not correct. You can set the BMI mode by click on the BMI on menu. Click Select File button to select which program is going to program. Usually the file is locate in the \Debug or \Release subfolder under your project folder depends on you set of project. After that, click Program button, the mcu will programmed. If you have several board to program, click Connect button when you change a board and click Program Button. I found in some computer, when you run XMCFlasher.jar. It will show an error. Even I reinstall Java, the error is still there. But Wh...
Recently, I am designing a circuit that needs to switch off a module from 12V by a 5V control signal. So I do some research work and make desicion to use the circuit as below. The simulation result as below. The real components in the design list as below. P-Channel MOSFET: TPH1R712MD (RDSon:1.35mOhms)
评论
发表评论