2018년 이전 관심사/mbed(23)
-
How to use GDB environment on Eclipse with pyOCD
How to use GDB environment on Eclipse with pyOCDEnvironmentTarget : WIZwiki_w7500 OS : Linux Mint Kernel : 3.15.8-031508featured imageSetting for pyOCDDownload pyOCD and installrefer to this document.Run pyOCD gdb server script$ sudo python test/gdb_test.py [sudo] password for kaizen: INFO:root:Waiting for a USB device connected INFO:root:new board id detected: 22010203066B9E1CFB9743E5 INFO:root..
2015.10.08 -
How to use pyOCD for new target MCU like W7500
How to use pyOCD for new target MCU like W7500What about pyOCDpyOCD is an Open Source python 2.7 based library for programming and debugging ARM Cortex-M microcontrollers using CMSIS-DAP. Linux, OSX and Windows are supported.You can use the following interfaces: From a python interpretor: halt, step, resume executionread/write memoryread/write block memoryread-write core registerset/remove hardw..
2015.10.08 -
WIZwiki_W7500 CMSIS-DAP Porting
WIZwiki_W7500 CMSIS-DAP PortingWIZwiki_W7500 Board를 개발하는 중, W7500 Chip이 Reset 되지 않는 문제를 발견하였다. 이 문제로 인해, WIZwki_W7500에 아래와 같은 문제가 발생 했다. Firmware Upload 시, SWD_ERROR 발생 Firmware Upload 전, Target Chip(W7500)을 Reset 하는데, Reset 후 W7500이 Booting 되지 않아서 발생한 문제 mbed self test에서 Fail되는 현상 mbed test bench에서 Firmware Upload 후 CMSIS-DAP을 Reset 하는데 이 때 W7500이 Booting 되지 않아서 발생한 문제 Modified point for Softwa..
2015.10.08 -
W7500 mbed SDK Porting Guide (6/6)
W7500 mbed SDK Porting GuideADC Porting예제 코드#include "mbed.h" int main() { Serial pc(USBTX, USBRX); // tx, rx pc.baud(115200); AnalogIn ain(A0); //is ADC0_0: must be channel 0 of ADC0 or ADC1 pc.printf("Starting program...\r\n"); while(1) { pc.printf("percentage: 3.3f\r\n", ain.read() * 100.0f); pc.printf("normalized: 0x%04X\r\n", ain.read_u16()); wait(1); } } 수정할 필요 없는 코드api 폴더, common 폴더, hal ..
2015.10.08 -
W7500 mbed SDK Porting Guide (5/6)
W7500 mbed SDK Porting GuideI2C Master Porting예제 코드int main() { int address = 0xA0; char tx_data[27] = {0x00, 0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8, 0x08, 0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10, 0x10, 0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18}; char rx_data[22]={0}; I2C i2c(I2C_SDA, I2C_SCL); i2c.start(); i2c.write(address,tx_data,9); wait(1); i2c.start(); i2c.write(address,0x00,1,true); i2c.re..
2015.10.08 -
W7500 mbed SDK Porting Guide (4/6)
W7500 mbed SDK Porting Guidewait Dealy Porting예제 코드#include "mbed.h" int main() { Serial pc(USBTX, USBRX); DigitalOut myled(LED1); pc.baud(115200); pc.printf("TEST Start\r\n"); myled = 0; while(1){ pc.printf("LED ON\r\n"); myled = 1; // LED is ON wait(1); // 1 sec pc.printf("LED OFF\r\n"); myled = 0; // LED is OFF wait(1); // 1 sec } } 수정할 필요 없는 코드api 폴더, common 폴더, hal 폴더에 있는 내용을 수정하면 호환성 문제가 발..
2015.10.08