Mbed bootloader and binary files
Hi guys I've been programming with the mbed for a while now and own another devboard with the identical processor on it. The landtiger board which is also mentioned on this website.
I programmed it with a bootloader in order to copy bin files as fimware. But the ones I download from the mbed bootloader and binary files compiler do not work?
Are there any configurations that I are missing? Does anyone have some expierence and can help me out of my mess? The programm i wrote is a simple hello world one over the serial connection. When I export it as uvision project it works fine after i configure the ide for the lpc in the right way. The USB bootloader approach requires some modification to the addressmap of the compiled code. This is needed since the bootloader itself resides in memory also.
There is more info somewhere on this site. However, I would not bother with that when you have the landtiger board. Just use the serial bootloader with flash magic or even better use the on-board j-link programmer to flash your mbed compiled bin directly into the lpc Check my landtiger page and the link to my landtiger manual.
First thanks for the information but im actually looking for a general solution for selfmade pcbs. I like the plug and play solution of the mbed. I will look up the suggested ways of yours. Id really love to use rather the online compiler then other ides that are not totally free to use.
They are however less plug and play than the regular mbed. This is not a big issue when you rarely need to update the code. Full mbed compatibility can be achieved when you include the mbed sda interface.
The hardware and software has now been open sourced by mbed. Search the site for details. You could do it that way with an mbed in between the online compiler and the targetbut actually the lpc on your targetboard has an internal bootloader that accepts a program that is downloaded through its serial port.
You can save the online compiled binary on your pc, mbed bootloader and binary files the bin file to mbed bootloader and binary files hex file and then run NXPs "flash magic" application on your pc. The free flash magic tool will download the code to the target using a serial port possibly with a USB to serial converter in between.
Since i passed out for a while to some health issues I'm trying now to use the serial. Please tell me how do i convert a downloaded bin file to an hex file? Furthermore Id like to know in what condition my targetboard has to be? Do I have to erase the chip first or do I have to load the nxp bootloader first? What you want is the bin2hex utility. Now there are a ton of them around, and some of them have some issues with code size and stuff.
With that a search here on the site give options, such as: Your target board needs to work, so the basic stuff such as power supply. Then it loaded in serial bootloader mode. Launch flashmagic and you are good to go. Thank you very much it worked. But one last thing Id like you to ask is there a bin2hex converter and flashmagic available for ubuntu?
Access Warning You do not have the mbed bootloader and binary files permissions to perform this operation.