|
Hi Tim,
I'm working with a stamp-sized SAM7s256 board I developed originally
to use with our projects at Autosport Labs, now being released on
it's own for a new venture we're launching called MakerBug.
Here's an image of the module plugged into a test board festooned
with potentiometers and LEDs :)
http://i.imgur.com/nPzPO.jpg
The goal is to make Lua - preferrably eLua - the centerpiece
firmware for this hardware. We have a limited number of modules+test boards
available- If anyone wants one to test / dev with let me know
offline!
Thanks,
-------- Original Message --------
Brent,
Yes, I have an old AT91SAM7x-EK board, is that the board you
have? Yes, the source is released...
If that is the board you have aI can port over some of the
stuff I did for a LPC board...
From:
Brent Picasso [hidden email]
To:
[hidden email]
Sent: Sunday,
December 11, 2011 12:12 PM
Subject: Re:
[eLua-dev] SAM7x/SAM7s USB
Hi Tim,
Thanks. So backing up for a little bit more context: is
the SAM7x port indeed currently using UART for the shell?
Is any of that USB framework you mentioned in the released
code?
Thanks for the Atmel link- I'll dig into that. In my
current project I'm using a different USB implementation
designed to work with FreeRTOS- I have that working with
my own port of Lua.
On 12/11/2011 06:48 AM, Tim michals wrote:
I was working on a simple framework for USB but
got pulled off due to number of work related
projects. One project is using Lua and libev.
libev, goal is to use events for I/O using epoll,
select or kqueue. So it is possible to have several
100 or 1000 of sockets, file handles, timers etc.
using a simple event loop. There are several Lua
wrappers for libev or libevent. One wrapper for
libevent and uses co-routines/continuations for
threading. i.e http://repo.or.cz/w/luaevent.git
So, the original goal was to use a libevent type
of framework to be able to process USB events and
possible other IO.
From:
Brent Picasso [hidden email]
To:
[hidden email]
Sent:
Sunday, December 11, 2011 12:28 AM
Subject:
Re: [eLua-dev] New user introduction!
Hi Thiago,
Taking a look at your sam7s branch this
weekend.
looking at the platform code for the sam7s
(and sam7x) it seem there's no USB device code
present- I was specifically looking for code
implementing a USB CDC and couldn't find
anything.
Is that sam7x/7s port making the shell
available over UART?
if so, would we want to instead expose it over
USB, as with the LPC1768?
Thanks,
On 12/04/2011 02:32 PM, Thiago Naves wrote:
One more thing, I put both linker scripts on the
src/platform/at91sam7s/at91sam7s256 folder.
The flash_sam7x.lds is the one being used. The other 2 are for the sam7s.
You can change this in conf.py ( src/platform/at91sam7s/conf.py )
Also, I've only changed the scons build. The Lua build system will not work.
Thiago
On Sun, Dec 4, 2011 at 5:54 PM, Thiago Naves [hidden email] wrote:
On Sun, Dec 4, 2011 at 5:39 PM, Brent Picasso [hidden email] wrote:
Hi Thiago,
Hi Brent,
The sam7s accepted the image, but as suspected, the USB pullup line was not
enabled via PA16, so the host did not enumerate the device.
Hmm...
Why Atmel chose to waste a PIO for activating the USB pullup instead of
providing an internal one is still a mystery to me - it's one item of many
questions I'd like to ask their design engineers!
Yeah, go figure...
if you could push the code you have to a branch I'd be happy to take a look
at it and move it forward!
I just did =)
I was working on this right now...
I uploaded this to my fork on github (
https://github.com/naves-thiago/elua/tree/sam7s ) as I would rather
not do this on the official repo at this point.
A fiew things I would like to note here:
This is using the sam7x linker script ( as the image I sent you was )
because I can't make it link with the sam7s script I got from atmel...
I have changed the lib files ( pio.c pwm.c pwmc.c trace.h etc ) to the
ones from atmel ( instead of using the ones from the sam7x port as
before ).
I had to make a fiew changes to these files ( mostly changing include
paths and removing trace stuff ).
Best,
Thiago
Thanks,
Brent Picasso
Autosport Labs
Technology for Race and Street
autosportlabs.com | twitter.com/AutosportLabs
On 12/03/2011 11:04 PM, Thiago Naves wrote:
On Sun, Dec 4, 2011 at 2:53 AM, Brent Picasso [hidden email]
wrote:
Thanks for the binary! I will give it a try when I get back to ny workbench.
If you can push your tweaks to a branch I could pull them down and make
further fixes as necessary - perhaps we can get another port on the list!
yeah, sure. I'll do some cleanup and try to make this a new platform
instead of overwriting the sam7x256 as I did for generating this for a
test ;)
Then I'll upload it to my fork and send you the link.
I dug into the differences between the Sam7s and the sam7x and one
prominent thing that came up was with the USB pullup. The sam7s commonly
uses PA16 for enabling the USB pullup to match the SAM-BA bootloader. Is
this the same on the 7x?
I don't know... I haven't used any of these platforms before...
Otherwise it's exciting to hear how compatible the two devices are!
Yeah! this was rather trivial... I just replaced the atmel's files for
the sam7x with the ones for sam7s and edited platform.c to remove PIO
port B and PWM 3 and changed 2 includes in board.h and added 2 missing
defines and it built =)
I will be surprised if this run on the first try !
Regards,
Brent
Connected by DROID on Verizon Wireless
-----Original message-----
From: Thiago Naves [hidden email]
To: "eLua Users and Development List (www.eluaproject.net)"
[hidden email]
Sent: Sun, Dec 4, 2011 04:00:43 GMT+00:00
Subject: Re: [eLua-dev] New user introduction!
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
|