AVR32 port

classic Classic list List threaded Threaded
10 messages Options
Euripedes Rocha Euripedes Rocha
Reply | Threaded
Open this post in threaded view
|

AVR32 port

Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

Hello,
   We're all working on this and other ports too :). Could you share your work to see if it is ready to go to the main repo ?

Thanks
Dado



On Mon, Feb 22, 2010 at 19:40, Euripedes Rocha <[hidden email]> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
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
Euripedes Rocha Euripedes Rocha
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

Of course Dado. Like I said I just made some minor fixes. The diff are below.

_________________________________________________________________
diff --git a/SConstruct b/SConstruct
index 1dc5f7c..4886ff7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -47,7 +47,7 @@ toolchain_list = {
     'cross_lualong' : 'int 32'
   },
   'avr32-gcc' : {
-    'compile' : 'avr32-gcc',
+    'compile' : 'avr32-g++',
     'link' : 'avr32-ld',
     'asm' : 'avr32-as',
     'bin' : 'avr32-objcopy',
_______________________________________________________________

diff --git a/src/platform/avr32/platform_conf.h b/src/platform/avr32/platform_conf.h
index d74c1c9..7db9b4f 100644
--- a/src/platform/avr32/platform_conf.h
+++ b/src/platform/avr32/platform_conf.h
@@ -97,7 +97,7 @@
 // Allocator data: define your free memory zones here in two arrays
 // (start address and end address)
 #define MEM_START_ADDRESS     { ( void* )end, ( void* )SDRAM }
-#define MEM_END_ADDRESS       { ( void* )( 0x10000 - STACK_SIZE_TOTAL - 1 ), ( void* )( SDRAM + SDRAM_SIZE - 1 ) }
+#define MEM_END_ADDRESS       { ( void* )( 0x10000 - STACK_SIZE_TOTAL - 1 ), ( void* )( (int)SDRAM + SDRAM_SIZE - 1 ) }
 
 // *****************************************************************************
 // CPU constants that should be exposed to the eLua "cpu" module
__________________________________________________________________________
diff --git a/src/shell.c b/src/shell.c
index 5819730..28ae11f 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -116,7 +116,7 @@ static void shell_recv( char* args )
   long actsize;
   lua_State* L;
 
-  if( ( shell_prog = malloc( XMODEM_INITIAL_BUFFER_SIZE ) ) == NULL )
+  if( ( shell_prog = (char*)malloc( XMODEM_INITIAL_BUFFER_SIZE ) ) == NULL )
   {
     printf( "Unable to allocate memory\n" );
     return;
_________________________________________________________________________

Like I said until now it's just some minor fixes.

I needed to change the compiler because of the Bool type that appears in commom.c. And this is the reason of the other changes until now. We can use a struct to define the type but I prefered to change the compiler.

Best

Euripedes

--- Em seg, 22/2/10, Dado Sutter <[hidden email]> escreveu:

De: Dado Sutter <[hidden email]>
Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Segunda-feira, 22 de Fevereiro de 2010, 22:46

Hello,
   We're all working on this and other ports too :). Could you share your work to see if it is ready to go to the main repo ?

Thanks
Dado



On Mon, Feb 22, 2010 at 19:40, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port


Like I said until now it's just some minor fixes.

I needed to change the compiler because of the Bool type that appears in commom.c.

Sorry, I don't understand. Where exactly does "Bool" appear in common.c? I just searched that latest SVN revision of common.c and couldn't find any "Bool".
In any case, please don't change the default compiler to C++ from C, I really don't want to change the eLua compilation mode to C++. If you really need a "bool" type, typedef it in your platform's type.h file (in your case src/platform/avr32/type.h)
 
And this is the reason of the other changes until now. We can use a struct to define the type but I prefered to change the compiler.

I don't, sorry :) Although I'm not sure what you mean by "we can use a struct to define the type". Maybe I don't fully understand the problem, could you please post more details?

Best,
Bogdan
 

Best

Euripedes

--- Em seg, 22/2/10, Dado Sutter <[hidden email]> escreveu:

De: Dado Sutter <[hidden email]>
Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Segunda-feira, 22 de Fevereiro de 2010, 22:46


Hello,
   We're all working on this and other ports too :). Could you share your work to see if it is ready to go to the main repo ?

Thanks
Dado



On Mon, Feb 22, 2010 at 19:40, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----


_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

_______________________________________________
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
Euripedes Rocha Euripedes Rocha
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port



Sorry, I don't understand. Where exactly does "Bool" appear in common.c? I just searched that latest SVN revision of common.c and couldn't find any "Bool".
In any case, please don't change the default compiler to C++ from C, I really don't want to change the eLua compilation mode to C++. If you really need a "bool" type, typedef it in your platform's type.h file (in your case src/platform/avr32/type.h)

Sorry, my mistake. It appears in src/fatfs/ff.c.  Anyway I'll go back to gcc.

 
And this is the reason of the other changes until now. We can use a struct to define the type but I prefered to change the compiler.

I don't, sorry :) Although I'm not sure what you mean by "we can use a struct to define the type". Maybe I don't fully understand the problem, could you please post more details?


We said the same in other words :). I'll do the typedef. Just to make it clear, I'm using the last review.

Euripedes
Best,
Bogdan
 

Best

Euripedes

--- Em seg, 22/2/10, Dado Sutter <dadosutter@...> escreveu:

De: Dado Sutter <dadosutter@...>
Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <elua-dev@...>
Data: Segunda-feira, 22 de Fevereiro de 2010, 22:46


Hello,
   We're all working on this and other ports too :). Could you share your work to see if it is ready to go to the main repo ?

Thanks
Dado



On Mon, Feb 22, 2010 at 19:40, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----


_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

In reply to this post by Euripedes Rocha
Hi,

I took some time yesterday to update the AVR32 library inside eLua with the latest version from Atmel. It compiles now, but I didn't have a chance to test it yet. I'll do it today, and if it works I'll check in my changes.

Best,
Bogdan

On Tue, Feb 23, 2010 at 12:40 AM, Euripedes Rocha <[hidden email]> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
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
Euripedes Rocha Euripedes Rocha
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

This are great news to me Bogdan! I'll back to my at32uc3a1512 addition to elua.

Thanks!

--- Em qua, 24/2/10, Bogdan Marinescu <[hidden email]> escreveu:

De: Bogdan Marinescu <[hidden email]>
Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Quarta-feira, 24 de Fevereiro de 2010, 8:51

Hi,

I took some time yesterday to update the AVR32 library inside eLua with the latest version from Atmel. It compiles now, but I didn't have a chance to test it yet. I'll do it today, and if it works I'll check in my changes.

Best,
Bogdan

On Tue, Feb 23, 2010 at 12:40 AM, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

Rejoice! :) The AVR32 port was updated to support the latest Atmel toolchain (2.4.2). Just update from trunk and you should be ready to go.

Best,
Bogdan

On Wed, Feb 24, 2010 at 11:14 AM, Euripedes Rocha <[hidden email]> wrote:
This are great news to me Bogdan! I'll back to my at32uc3a1512 addition to elua.

Thanks!

--- Em qua, 24/2/10, Bogdan Marinescu <[hidden email]> escreveu:

De: Bogdan Marinescu <[hidden email]>

Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Quarta-feira, 24 de Fevereiro de 2010, 8:51


Hi,

I took some time yesterday to update the AVR32 library inside eLua with the latest version from Atmel. It compiles now, but I didn't have a chance to test it yet. I'll do it today, and if it works I'll check in my changes.

Best,
Bogdan

On Tue, Feb 23, 2010 at 12:40 AM, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----


_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

_______________________________________________
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
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

In reply to this post by Euripedes Rocha
On Wed, Feb 24, 2010 at 11:14 AM, Euripedes Rocha <[hidden email]> wrote:
This are great news to me Bogdan! I'll back to my at32uc3a1512 addition to elua.

Now eLua compiles fine for AVR32, so good luck with your port. Remember to read this link:

http://www.eluaproject.net/en_arch_newport.html

to get some useful guidelines about how to port eLua to a new CPU/board.

Best,
Bogdan
 


--- Em qua, 24/2/10, Bogdan Marinescu <[hidden email]> escreveu:

De: Bogdan Marinescu <[hidden email]>

Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Quarta-feira, 24 de Fevereiro de 2010, 8:51


Hi,

I took some time yesterday to update the AVR32 library inside eLua with the latest version from Atmel. It compiles now, but I didn't have a chance to test it yet. I'll do it today, and if it works I'll check in my changes.

Best,
Bogdan

On Tue, Feb 23, 2010 at 12:40 AM, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----


_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

_______________________________________________
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
Euripedes Rocha Euripedes Rocha
Reply | Threaded
Open this post in threaded view
|

Re: AVR32 port

I know that, and I already read.

Thanks again

Best

Euripedes
--- Em qua, 24/2/10, Bogdan Marinescu <[hidden email]> escreveu:

De: Bogdan Marinescu <[hidden email]>
Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]>
Data: Quarta-feira, 24 de Fevereiro de 2010, 19:52

On Wed, Feb 24, 2010 at 11:14 AM, Euripedes Rocha <euripedesrocha@...> wrote:
This are great news to me Bogdan! I'll back to my at32uc3a1512 addition to elua.

Now eLua compiles fine for AVR32, so good luck with your port. Remember to read this link:

http://www.eluaproject.net/en_arch_newport.html

to get some useful guidelines about how to port eLua to a new CPU/board.

Best,
Bogdan
 


--- Em qua, 24/2/10, Bogdan Marinescu <bogdan.marinescu@...> escreveu:

De: Bogdan Marinescu <bogdan.marinescu@...>

Assunto: Re: [eLua-dev] AVR32 port
Para: "eLua Users and Development List (www.eluaproject.net)" <elua-dev@...>
Data: Quarta-feira, 24 de Fevereiro de 2010, 8:51


Hi,

I took some time yesterday to update the AVR32 library inside eLua with the latest version from Atmel. It compiles now, but I didn't have a chance to test it yet. I'll do it today, and if it works I'll check in my changes.

Best,
Bogdan

On Tue, Feb 23, 2010 at 12:40 AM, Euripedes Rocha <euripedesrocha@...> wrote:
Hi,
I'm now working on the AVR32 port of elua and I fix some minor errors. This email is just to tell it. If someone is working on it to, let me know so we can work together.

best

Euripedes


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----


_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev



-----Anexo incorporado-----

_______________________________________________
eLua-dev mailing list
eLua-dev@...
https://lists.berlios.de/mailman/listinfo/elua-dev


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev