Search This Blog

Showing posts with label uMon. Show all posts
Showing posts with label uMon. Show all posts

Saturday, 29 September 2007

Getting there...

So the i.MX21 is working fine. Next up is the Multimedia COG...

First thing I tried was the 'touch' example. I used uMon, via Hyperterm, to download the elf and set it up to be executable from the flash memory. Ran it and hay-presto the touchscreen sprang into life :)

Next up I thought I'd try the 'lcd' example. Trouble is I can't get the entire elf transfered via xmodem. The Hyperterm file transfer dialog looks like it sends all of the elf, but the 'tfs ls' only showed ~4kB transfered. Of course trying to run the truncated elf throws up a simple error :(

After removing the lcd file from the flash ('tfs rm lcd') the same thing is happening with the xmodem transfer. I even tried deleting the elf and cleaning the flash 'tfs clean'. Still no joy. Even 'tfs check' says that the files in the flash are OK. Which is strange in that the 4k lcd elf should have at least check sum failed??

So next... I downloaded the HAB Toolkit from the Freescale web site (the i.MX21 variant linked from the wiki, albeit a page hidden in the wiki history). Annoyingly this only allows for setting COM 1-4. The laptop has the Silabs USB to UART mapped to COM5!!! :S And the Device Manager says that COM1-4 are in use.

Gonna take a break and see if the sub-conscious kicks in and throws up something else to try.

UPDATE:
As this blog entry comments show, Tarun from VC made a valuable suggestion. I need to have a look further, and see if this could become a common problem or not, but the lcd elf contents was terminating the xmodem transfer :( Adding some additional code to alter the final elf sorted out the transfer problems, and I am able to upload images to the LCD :) Thank you Tarun.

I can't get VC's Booter to work. It's possible that that is suffering from the flow control problem I faced when first getting started?? I'll get in touch with the author and see if problems I face with it can be sorted, and help advance the tool. Although probably after the trip to Egypt next week.

It's Alive!!!

Took a while to get Hyperterm setup, but really pleased that the i.MX21 is working :)

VC have a mistake in their VCMX212.1.pdf document. They say that the baud rate (bps) to use in Hyperterm is 460800:8N1 but this is wrong. The Wiki is correct with the 230400:8N1 They also don't mention turning off flow control. When the baud rate is set right you can see the device starting up, feeding back the uMon start up text, but then with 'Hardware' flow control set (default setting in Hyperterm) you cannot seem to send ASCII characters back to the device.

uMon is working fine, Linux starts up, ready to rock'n'roll :)