I have recently started working on EV-COG-4050LZ. Basically I am expected to develop a WiFi driver for this project which interfaces COG 4050 with WIFI module ESP8266 and this should be running on ARM MBED OS.
Presently I got the wifi driver code for ADICUP3029 which i successfully ported to run on COG4050. So the bare metal application is being implemented.
Now I want this application to run on MBED. Can I have the same project and run it on MBED compiler or I should write a fresh driver on MBED? I am not understanding how to use MBED to build my application.
Any Inputs would be helpful regarding MBED and how to use it for my application.
Thanks & Regards
I also saw online MBED support for COG4050 and they have many examples on MBED online compiler. Now should I write the whole driver on MBED compiler or CCES(Which i have been using, and even bare metal wifi driver framework is implemented on CCES)?
Just now i tried exporting a project that was functional when directly by compiling in MBED online compiler and then copying the file generated to MBED drive. I tried to export it to CCES but when I opened it in CCES I was not able to build or debug the program. I mean both build and debug options are disabled.
So how to debug MBED programs? This was a simple blink LED program which directly ran on the board but for othe programs where output is printed on console, where do I get to output for such programs in this case?
Should I use MBED CLI instead of Online Compiler?
Sudeep0497@ said:Now I want this application to run on MBED. Can I have the same project and run it on MBED compiler or I should write a fresh driver on MBED? I am not understanding how to use MBED to build my application.
MBED OS is an open source “wrapper” for a different compatible hardware to reduce the low-level development time of the user. Since MBED OS is a different platform you need to start from the scratch and use it’s own API’sto make your driver compatible to it. For more details about MBED OS and its API’s visit this link
Sudeep0497@ said:So how to debug MBED programs? This was a simple blink LED program which directly ran on the board but for othe programs where output is printed on console, where do I get to output for such programs in this case?
- You can use any compatible IDE’s like IAR to debug the code you just need to export the example project from the online compiler and select the appropriate target hardware (eg. EV-COG-4050) and tool-chain (eg. IAR). After that it will give you a project zip file and you can open it with the tool-chain which you’ve selected.
Thanks for your reply. It was helpful !
I wanna know something now after exploring MBED for quite some time now. The WiFi module I am concerned with is ESP8266. So when I was searching for libraries in MBED compiler a found a library that has ESP8266 files which are similar to the bare metal framework wifi driver that I have (by the word similar I mean what functionality do these files implement not the code in them). But on MBED these files are written for some other device. Can I use these files to work with EV-COG-AD4050? I dont see any board specific programming in these files.
I wanted to know about MBED RTOS support by ADI. I had written a I2C read/write program so while debugging it went to a function called SEM_PEND. When I further stepped in into this function it opened in a file named RTOS_MAP_noos. While it should have been in a file where the macros should have got mapped to MBED macros. There are files named RTOS_map_FreeRtos and RTOS_map_ucos_iii. These files are for mapping ADI RTOS macros to FreeRtos and Micrium RTOS respectively.
Where as in case of MBED program it is taking me to NOOS platform. So does not this mean that ultimately the functionality is being implemented on NO OS platform itself?
Where is MBED RTOS playing its role here? This is the recent query I have faced.
Please throw some light on this so that I can figure out what has to be done.