From mbed online to mbed-cli via KDS and LPCXpresso

After an exciting few weeks with projects using 11u35/1764 and K64F with lpcXpresso and Kinetis Design Studio I have yet to find a good working IDE for ALL of them. So as the online tools have been slow this week I have resorted to mbed-cli command line tools.

The export as zip option has been removed from the online tools so I have used either export to LPCXpresso or as a GCC project.

So here are  the steps:-

1)download as expresso or gcc export
2)unpack into folder
3)cd into folder
4)mbed new .
5)modify mbed.bld to
http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3

(theres a post about this at https://github.com/ARMmbed/mbed-cli/issues/391#issuecomment-259932373 )
6)mbed deploy

it then complains about libraries references
eg

[mbed] ERROR: Library reference “MPU6050.lib” points to a folder “/junk/jt_mbed_cli/nl_DEV_datalogger_nolib/MPU6050”, which is not a valid repository.
[mbed] ERROR: You can remove the conflicting folder manually and use “mbed deploy” to import the missing libraries
[mbed] ERROR: You can also remove library reference “/junk/jt_mbed_cli/nl_DEV_datalogger_nolib/MPU6050.lib” and use “mbed sync” again.
To work round this is is up to you I just deleted the libs and then doing
step 7 to get them to download again was easiest
7)mbed deploy

8) mbed compile -t GCC_ARM -m LPC1768

In a later post I will explain how I then got mbed-cli to actually export something for KDS and LPCXpresso and the fun it was getting them to compile…

If you have an easier way, please drop me a line

Posted in coding, computing, MBED | Leave a comment

Reminder how to Program an MBED 11u35 from Linux or mac

For a work project I am using an embedded artists 11u35. These notes are reminder of how to download code to it when on mac or linux…

Note below taken from this link on mbed forums by Neil Thiessen

a)remember to start the boat up by keeping left button pressed while pressing reset. (assuming usb is top)
b)will appear as device called CRP_DISABLED

Then…
For Mac or Linux:

delete firmware.bin
unmount device (sudo on MAC)
using Linux umount /dev/sd* (where * is the location of your device)
using Mac OS umount /volumes/CRP DISABLD

copy the file to the disk
Using Linux dd if=mbed_if.bin of=/dev/sd* seek=4
Using Mac dd if=mbed_if.bin of=/dev/disk* seek=4

Posted in coding, computing, MBED | Leave a comment

Kinetis K64 Not Starting after Power Up

A day of misery with various micro-controllers. More to be explained over the coming days, tales of misery and imagination involving LPCExpresso and Kinetis Studio….
But for not the misery was a Kinetis K64F that seemed to not boot reliably. The answer is need pull up R75 or remove a capacitor. It all relates to NMI. Until I write up a better post see here
Short version answer to this is answer here

10K resistor populated in R75 by the tricolour LED or handle NMIs….

The  NMI handler. On a K64F the  interrupt vector resides in bytes 8-9-10-11, also NMI connected to SW3.

And some notes on how to write your own boot loader!

Posted in Uncategorized | Tagged , , , | Leave a comment

Help Designing Matrix Fonts – NineCharGen

For some MBED embedded micro work I needed to explain how to use a dot matrix LED display and how a character generator worked.  Rather than getting students to suffer the old fashioned way, plotting the shapes on paper I put this application together.

You just tap on the LEDs to make the pattern and the hex code for that column is shown at the bottom of the display. NineCharGen is written in JAVA and cross platform.

It can be downloaded here

char_gen

 

Posted in coding, computing, education, JAVA, MBED | Leave a comment

Visualising IP Usage With Highcharts

Whilst looking after a mid sized network (about 25 Subnets) I  wanted a way of visualising IPs that were out of use. Time to use Highcharts and a scatter chart.

ipuse

 

Across the X axis is the ip node, the Z Axis the network and the Y shows how many days since the ip was last seen.

As an IP falls out of use, it “floats” to the top of the chart. This view is a quick way of seeing what is being used, and what isnt.

Also the nodes are clickable and connected to more information about each machine, such as its mac address etc.

How we collect the usage data is another story 🙂

 

Posted in computing | Tagged , , , | Leave a comment

NinePOI Update

n4_listninepoi_icon

The application NinePOI has been updated so that it is now possible to send “collections” of POIs. This makes it easy to backup (and restore) your POIs from the cloud and to transfer collections of POIs to another device or user. This can be very useful when changing to a new Android device so you can take your POIs with you.

The options are to transfer:

  • ALL your POIs
  • A selected category of POI
  • Just the selection of POIs you choose

Access to this is via a share menu option that appears when you are in the POI list view.

The POIs that are shared are the ones that are displayed in the list view, so if you dont have a filter selected they are all shared.

If you have a category filter selected, then those are shared.

If you have clicked and selected multiple records (the same you you pick records for deletion), then those are shared.

The collection can be emailed (subject to any limiations your email provider has for attachment sizes) or saved to the cloud, for example to your Google Drive or Dropbox.

You could also share your collection, for example on a web page or shared cloud storage.

 

 

 

 

Posted in android, coding, NinePOI | Tagged , , | Leave a comment

Nine Points of Interest aka NinePOI

ninepoi_icon Often when out cycling or walking I find places of interest, good places to take photos, potholes,the location of unusual wildlife, places to shelter from the rain, good places to go tea/cakes/beer etc. What I wanted was an application that I could use to collect this information and share it with others. There are of course services and applications that can assist with this, but I wanted to build my own to do _precisely_ what I wanted. Hence NinePOI, its name due to it being a Ninelocks.com project. So what can NinePOI do?

N4PEntry

The POI is first captured with up to two photos. One photo is to identify the Point of Interest, the other to give some context about how to find it. The images can also have GeoLocation information embedded in them. If you have data access you can also bring up a Google map and put a pin in your location to show where it is and add some comments about the item and the location and give it a an importance rating of 1-3 stars. Now tap save.

Thats it, POI captured! What can you do with it now? Send it as an email to someone.

The images are automatically attached and the email body contains the notes you took, the geo location of where each photo was taken and  a URL of a Googlemap showing the location.

In addition a CSV file containing additional information can be attached as well. Sending an email with photos caters for your friends who dont have an Android phone and NinePOI but for those that do you can send you POI to them as a special POIRecord.

The POIRecord contains the images and all the location information. When a contact receives your POIRecord (by email or downloaded from a website or dropbox) the POI will show in their list of POIs as shown in this screenshot.

n4_list

The screenshot above shows a collection of a few POIs. Now Now lets take a closer look at that location with that strange wooden structure on it. Hmm looks interesting and its only 12km away from where I am now…. (yeh sorry, cyclists seem to like kilometres) Lets take a closer look at the record.

In this view you can see where the POI is on the Map and the comments about the location. If you want a closer look at the photos just tap on them and they will be opened in your phones photo viewer. If your phone does not have a photo viewer (some dont), then the photo will be shown in NinePOIs own viewer. From here the images can also be “shared”, to do that long tap on them and share with suitable applications. (eg some twitter clients). Now how do we get to that location.

n4_vor

NinePOI can tell me that as well, tap on the navigation icon and NinePOI will open Googlemaps in navigation mode.

poi_nav_view N

NinePOI allows me to collect place of interest, find my way back to them and also to share them with other people. If you download the beta to play with there are some test POIs you can download and install here NinePOI has many applications, some ideas below

  • Report and note where potholes or other problems are
  • Note good locations for photo taking
  • Record good places to shelter from bad weather when out walking or cycling
  • Note where rare or unusual plants, trees or wildlife is located
  • Keep list of favourite food and beverage suppliers on your cycle and walking trips

And yes it is designed for tablets with suitable changes to screen layouts. No doubt there are many others that you can think of. NinePOI will continue to evolve, if it does not have a function you would like, or you  find problems with it, let us know via the support email address within the application.

NinePOI is available from the Google Play store, but update and test versions will be here shortly.

If you would like to try NinePOI get in touch!

Posted in android, coding, computing, cycling | Tagged , , , , | Comments Off on Nine Points of Interest aka NinePOI