How to port zephyr for new socs? - arm

I am new to zephyr and I would like to port it for other socs that it currently does not support, like many in the stm32 series.
I could not find any guide in the zephyr documentation to port it to new socs.
While there is a guide for architecture porting. There seems to be no official document to port it for a new soc.
I would be glad to receive any pointers that would help me.

A little late, but zephyr supports stm32 now:
https://www.zephyrproject.org/doc/boards/boards.html

Related

USB driver for STM32l100rc using HAL library

Is there anyone who has worked on STM32L1 series. I'm working on STM32L1xx series and wanted to write USB driver for it. Is there any example for USB driver for STM32L series or anyone worked on STM32L1xx series? Any help will be appreciated.
Thanks in advance.
You need these works to do:
1.USB client driver on STM32. There are lots of available codes in github or other website;
2.SDcard driver. Normally SDCard has two modes, include SPI mode and SD mode, the operation will be simplified a lot in SPI mode, however, in SD mode the speed will more faster than SPI mode. you can refer to datasheet for more information.
Download STM32CubeMX
Download STM32CubeL1
Start new project for your device, choose peripheral, choose device class for MSC
Setup clock for USB
Export project
Configure SPI for your SDCARD (SDIO is not available) for interface between USB device stack and SDCARD sector read on PC demand.
This are key steps to do, as I don't know what you know so far (looks like nothing) and what you have learn yourself so far (looks like nothing) I'm unable to give you comprehensive answer.

Regarding Vcom on LPC1769

I am using the ARM-based microcontroller LPC1769 and the LPCXpresso IDE. I am using an example project for Vcom using USB Device controller in 1769. By default it works at 9600 baud. But I don't understand how to change the baud rate - I want to use it at higher baud rate.
Please define every thing well for better answer, I am providing the computer side answer,
If you are connection with Computer, Its using generic Com port which will be assigned to the device,
now, again if you are using computer, the com port have configuration. go to device manager, and see properties>> Configuration>> there you will see baud rate.
go and change that,
that will do. :)
Edit: Updated with links of support in Driver Side,
I have few link for the same VCP(Virtual Comp Port) Drivers you can use
http://www.ftdichip.com/Drivers/VCP.htm
and Documentation for the same in different different case, please refer documentation first :)
http://www.ftdichip.com/Support/Documents/DataSheets.htm
this is all from my side :)

Setting up i2c on Raspberry Pi for C?

I'm setting up i2c for an Application written in C, but I've not been able to find any how-to's for it. I'm running a model-b Raspberry Pi on Debian 6 with LXDE. Can anybody show me how to set up i2c so I can use it in a C Application?
Thanks for any help in advance
I've been looking for similar information and I found a couple of i2c tutorials, one in adafruit tutorials and the other in Guy Carpenter's Gaugette blog. I'm not yet at the stage of actually using it so I can't vouch for their completeness but they seem to be a good start.
Configuring Your Pi for I2C
Analog Gauges Using I²C on the Raspberry Pi
I2C Installation for Raspberry Pi. I think this is only necessary if not using AdaFruit's Occidentalis release which has it included.
try this :
C GPIO Interface library for the Raspberry Pi
It offers API for handling GPIO port on Raspberry, including dedicated functions for I2C interface. I've been using this to read measurements from temperature sensor and it works perfect (STCN75 connected to RPi rev. B).
You can find examples and instructions on author's website. Project is maintained and updated frequently on public Git repo.

Arduino wireless options

I am currently working on a wireless solution for my Arduino and computer. I am trying to connect a transmitter to my computer and a receiver to my Arduino. I have seen a lot of examples with Arduino to Arduino communication but none for computer to Arduino. What would I need to interface the transmitter with my computer, PIC?
Any insight or any links it would be greatly appreciated.
The jeenode is a good low-cost solution. It really depends on your needs, though.
Sparkfun has a Wireless Buyers guide. It's a couple of years old though. There's also this blog post, which seems to be a pretty comprehensive survey of the available options. It certainly listed every option I've ever heard of and several I'd never heard of before.
This Freakduino board looks interesting. It's an Arduino clone with a built in IEEE 802.15.4 radio (the same radio in the Xbee's). It's also priced very nicely. I wish I'd known about it before I ordered my Arduino Uno earlier this week!
You can use XBee from SparkFun.com. I think they sell a kit for $70 or so. I think they also have wifi solutions too.
Or you could easily connect the two using a Bluetooth module.
Sparkfun has a really good selection and tutorials on how to achieve what you want.
Worth a look in my opinion.
http://www.sparkfun.com/categories/115
There is another interesting low power RF protocol called Ant+. You can find more information at http://thisisant.com.

OMAP SPI controller

Does anyone ever develop some application to control the spi device on OMAP3? I can load the spi driver "mcspi", but I don't know how to use it.
As of at least PSP 3.00.00.04, the mcspi driver is integrated with the Linux spi stack.
Turn on
CONFIG_SPI and CONFIG_SPI_OMAP24XX
in your kernel.
Here's how to use spi devices, in general.
There is also the spidev driver, which presents a char device to userspace, but it's experimental.
Ok So first I need to apologize for my previous shoot from the hip answer.
I too have now started looking into trying to get the McSPI's working and it has been some what painful. TI does not have lot of documentation, and I still haven;t been successful in getting any of the McSPI's to actually work, yet. But I thought I would post a link to the beagle board google discussion on the subject, as it appears they have been successful at getting at least McSPI3 working on the OMAP3530.
http://groups.google.com/group/beagleboard/browse_thread/thread/15d9488c1ec314ef/5ca06c67ff438106?q=mcspi3#5ca06c67ff438106

Resources