How to import a WICED SDK into an existing WICED Eclipse IDE (2)
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Once you have the WICED IDE installed, you can import other WICED SDK .7z releases easily without reinstalling the IDE, or even changing the workspace. This method comes in handy when you have several releases you want to test and compare. You may keep several projects(SDKs) open in one workspace, but for simplicity we will start with closing the existing project.
**In the case you want to change the workspace in Eclipse and import the new SDK, please refer to the following blog post.
How to bring a WICED SDK into Eclipse
1. Right-click on your current project name in the IDE and select "Close Project". This will not modify or delete your files in anyway. It will, however, close the files you had open in the IDE, and you can choose to either save any changes that had been made. (This step is optional, you may have several projects open at once)
2. Extract the new WICED SDK .7z file to your chosen destination.
3. Click on the arrow next to the blue folder icon and select "Makefile Project with Existing Code"
4. Click on "Browse" and navigate to and then select the WICED SDK folder you created. The "Project Name" will be automatically filled in from the name in the "Existing Code Location" you choose. You may modify the name for clarity.
5. The new SDK will now be showing in the "Project Explorer" view.
6. You will have to create new target names when you import a new project. The make file will be linked to the previous project if you copy and paste existing targets from other projects, so it's best to create new ones.
In the "Make Target" window on the right, the "Hide Empty Folder" will be selected by default. You need to unselect this.
Right click on the project name and select "New".
This will allow you to make new targets. To obtain a complete list of build commands and options, enter the following text in the base WICED SDK directory on a command line:
$> make
For WICED SDK 3.3.1, the usage is as following:
Usage: make <target> [download] [run | debug] [JTAG=xxx] [no_dct]
<target>
One each of the following mandatory [and optional] components separated by '-'
* Application (apps in sub-directories are referenced by subdir.appname)
* Hardware Platform ()
* [RTOS] (ThreadX NoOS wiced_rtos_common.c FreeRTOS)
* [Network Stack] (wiced_network_common.c LwIP wiced_tcpip_common.c NoNS NetX NetX_Duo)
* [MCU-WLAN Interface Bus] (SDIO SPI)
[download]
Download firmware image to target platform
[run]
Reset and run an application on the target hardware (no download)
[debug]
Connect to the target platform and run the debugger
[JTAG=xxx]
JTAG interface configuration file from the tools/OpenOCD dirctory
Default option is BCM9WCD1EVAL1, direct JTAG option is jlink
[no_dct]
DCT downloading is disabled and the DCT remains unmodified.
Only valid when the 'download' option is present
[factory_reset_dct]
Generates a factory reset DCT
[VERBOSE=1]
Shows the commands as they are being executed
[JOBS=x]
Sets the maximum number of parallel build threads (default=4)
Notes
* Component names are case sensitive
* 'WICED', 'SDIO', 'SPI' and 'debug' are reserved component names
* Component names MUST NOT include space or '-' characters
* Building for release is assumed unless '-debug' is appended to the target
* Some platforms may only support a single interface bus option
Example Usage
Build for Release
make snip.scan-BCM943362WCD4
make snip.scan-BCM943362WCD4-ThreadX-NetX_Duo-SDIO
Build, Download and Run using the default USB-JTAG programming interface
make snip.scan-BCM943362WCD4 download run
Build for Debug
make snip.scan-BCM943362WCD4-debug
Build, Download and Debug using command line GDB
make snip.scan-BCM943362WCD4-debug download debug
Reset and run an application on the target hardware
make run
Clean output directory
make clean
Build a Factory Reset image for the SPI serial flash
make snip.ping-BCM943362WCD4 OTA=waf.ota_upgrade SFLASH=app-dct-ota-download
where: [OTA]=<OTA application build string>
Build string options are App name, RTOS and TCP stack ONLY
<SFLASH>=<app>-[dct]-[ota]-[download]
where:
app : Add the application to the image
dct : Add the DCT to the image
ota : Add the OTA application to the image
download : Download the image after creation
That was it! Enjoy using your new SDK
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
After doing this, project appears ok but am not able to "Create Make Target"
(also, a right click on "Make Target" panel in Eclipse IDE shows all actions to be greyed out)
- Any ideas which setting needs to be changed to fix this?
(ideally I'd like to copy some of my make targets from previous SDK version, but "paste" also greyed out)
Thanks
Peter
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I get the unknown host problem while importing 3.3.1 sdk with MFi in eclipse running on OS X Yosemite. Please help.
**** Build of configuration Default for project WicedMFiSDK ****
/Workspaces/mk_bcm_wiced_mfi_3.3.1_ws/WicedMFiSDK/make snip.scan-BCM943341WCD1
Unknown host
Linux32 uname: ""
Linux64 uname: ""
OSX uname: ""
Win32 uname: ""
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
permissions in mac OS for all the files needs to be changed (chmod a+x) and also the path for SDK should not contain (.). this fixed Manish's issue.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have installed the WICED 3.3.1 on my new computer just now, all is new , there is no any old project in the computer. but I need to upgrade to the WICED 3.4.0, I also need to follow up above process to do the upgrade ?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Yes
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi.
You just need to move your old SDK to a different folder and copy everything under your WICED-SDK-3.4.0 to your workspace ...
Change permissions and it should work.
Regards,
Manish