EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Assembler Course projects (ARM architecture)

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Electronics Design - Assembler Course projects (ARM architecture)

ARM
Guest

Sun Jan 08, 2017 12:43 am   



Hi folks, great group, wondering recomendations for projects for a
Assembler course.
Students from System engeneering.
Backgorunds microcontroller Arduino, chsarp, labview, java and python.


And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but
really just basics, not list of projects ...

I view a good project in RaspberryPi bare-metal in a video:
Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ

But I can't pretend to do all projects dedicated one RPI ignoring the OS, so ..

Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)

Thanks for you valuable time. All coments welcome. Thanks

bitrex
Guest

Sun Jan 08, 2017 1:16 am   



On 01/07/2017 12:43 PM, ARM wrote:
Quote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but really
just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring the
OS, so ..


Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks


Well, I do know writing ARM assembly is about as pleasant as punching
yourself in the kidneys repeatedly. So there's that.

Don Kuenz
Guest

Sun Jan 08, 2017 2:11 am   



ARM <ye2s_at_o.co> wrote:
Quote:
[-- text/plain, encoding 8bit, charset: iso-8859-1, 22 lines --]

Hi folks, great group, wondering recomendations for projects for a
Assembler course.
Students from System engeneering.
Backgorunds microcontroller Arduino, chsarp, labview, java and python.


And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but
really just basics, not list of projects ...

I view a good project in RaspberryPi bare-metal in a video:
Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ

But I can't pretend to do all projects dedicated one RPI ignoring the OS, so ..

Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)

Thanks for you valuable time. All coments welcome. Thanks


Allow me to cross post this to a nearby friendly pi group.

Thank you,

--
Don Kuenz KB7RPU

I ate umble pie with an appetite. - Dickens

Don Kuenz
Guest

Sun Jan 08, 2017 2:14 am   



It always helps, of course, to actually include the pi group in the
header. :0) (See my sig.)

ARM <ye2s_at_o.co> wrote:
Quote:
[-- text/plain, encoding 8bit, charset: iso-8859-1, 22 lines --]

Hi folks, great group, wondering recomendations for projects for a
Assembler course.
Students from System engeneering.
Backgorunds microcontroller Arduino, chsarp, labview, java and python.


And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but
really just basics, not list of projects ...

I view a good project in RaspberryPi bare-metal in a video:
Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ

But I can't pretend to do all projects dedicated one RPI ignoring the OS, so ..

Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)

Thanks for you valuable time. All coments welcome. Thanks


Allow me to cross post this to a nearby friendly pi group.

Thank you,

--
Don Kuenz KB7RPU

I ate umble pie with an appetite. - Dickens

John Larkin
Guest

Sun Jan 08, 2017 2:55 am   



On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
<bitrex_at_de.lete.earthlink.net> wrote:

Quote:
On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but really
just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring the
OS, so ..


Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as punching
yourself in the kidneys repeatedly. So there's that.


Kamakaze pilots and ARM compiler writers have a lot in common.


--

John Larkin Highland Technology, Inc

lunatic fringe electronics

bitrex
Guest

Sun Jan 08, 2017 3:57 am   



On 01/07/2017 02:55 PM, John Larkin wrote:
Quote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have the
basic 12 programs https://raspberrypiassembly.wordpress.com/ but really
just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring the
OS, so ..


Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as punching
yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for embedded
processors, and maybe use it on some 8 bit architectures, but as even
the lowliest ARM Cortex is like 50MHz and 64k of RAM it seems like a
very self-punishing exercise to write an entire project in assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of very
heavyweight STL containers or a lot of runtime polymorphism/virtual
methods (runtime polymorphism is bad) it works fine. std::vector is nice
to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.

Tim Wescott
Guest

Sun Jan 08, 2017 4:55 am   



On Sat, 07 Jan 2017 15:57:57 -0500, bitrex wrote:

Quote:
On 01/07/2017 02:55 PM, John Larkin wrote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and
python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have
the basic 12 programs https://raspberrypiassembly.wordpress.com/ but
really just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring the
OS, so ..


Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as punching
yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for embedded
processors, and maybe use it on some 8 bit architectures, but as even
the lowliest ARM Cortex is like 50MHz and 64k of RAM it seems like a
very self-punishing exercise to write an entire project in assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of very
heavyweight STL containers or a lot of runtime polymorphism/virtual
methods (runtime polymorphism is bad) it works fine. std::vector is nice
to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.


Except in the cases of very small processors (like, less than 1K of ROM)
or very C-unfriendly processors, I think it's better to just stick to C.

Even for a sub 1K-ROM processor that's C-friendly it may be better to use
C that's carefully written to avoid pulling in any library code.

--
Tim Wescott
Control systems, embedded software and circuit design
I'm looking for work! See my website if you're interested
http://www.wescottdesign.com

bitrex
Guest

Sun Jan 08, 2017 7:26 am   



On 01/07/2017 04:55 PM, Tim Wescott wrote:
Quote:
On Sat, 07 Jan 2017 15:57:57 -0500, bitrex wrote:

On 01/07/2017 02:55 PM, John Larkin wrote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and
python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have
the basic 12 programs https://raspberrypiassembly.wordpress.com/ but
really just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring the
OS, so ..


Finally I thinking of using Assembler inside an Android program. (for
optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as punching
yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for embedded
processors, and maybe use it on some 8 bit architectures, but as even
the lowliest ARM Cortex is like 50MHz and 64k of RAM it seems like a
very self-punishing exercise to write an entire project in assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of very
heavyweight STL containers or a lot of runtime polymorphism/virtual
methods (runtime polymorphism is bad) it works fine. std::vector is nice
to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.

Except in the cases of very small processors (like, less than 1K of ROM)
or very C-unfriendly processors, I think it's better to just stick to C.

Even for a sub 1K-ROM processor that's C-friendly it may be better to use
C that's carefully written to avoid pulling in any library code.


I'm fortunate enough to have never had to do a serious project using one
of those itty bitty ones.

The AVR Mega series usually has like 32 or 64k of program memory and a
couple K of SRAM. It's pretty luxurious, even for C/C++! You can fit a
lot in there...

Tim Wescott
Guest

Sun Jan 08, 2017 8:05 am   



On Sat, 07 Jan 2017 19:26:21 -0500, bitrex wrote:

Quote:
On 01/07/2017 04:55 PM, Tim Wescott wrote:
On Sat, 07 Jan 2017 15:57:57 -0500, bitrex wrote:

On 01/07/2017 02:55 PM, John Larkin wrote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and
python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have
the basic 12 programs https://raspberrypiassembly.wordpress.com/
but really just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring
the OS, so ..


Finally I thinking of using Assembler inside an Android program.
(for optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as
punching yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for
embedded processors, and maybe use it on some 8 bit architectures, but
as even the lowliest ARM Cortex is like 50MHz and 64k of RAM it seems
like a very self-punishing exercise to write an entire project in
assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of
very heavyweight STL containers or a lot of runtime
polymorphism/virtual methods (runtime polymorphism is bad) it works
fine. std::vector is nice to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.

Except in the cases of very small processors (like, less than 1K of
ROM) or very C-unfriendly processors, I think it's better to just stick
to C.

Even for a sub 1K-ROM processor that's C-friendly it may be better to
use C that's carefully written to avoid pulling in any library code.


I'm fortunate enough to have never had to do a serious project using one
of those itty bitty ones.


I've done a tiny bit with a PIC12. But what was needed could have been
done just as well with a PAL -- it's just that I had a PIC12 development
kit in my junkbox.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

I'm looking for work -- see my website!

bitrex
Guest

Sun Jan 08, 2017 8:25 am   



On 01/07/2017 08:05 PM, Tim Wescott wrote:
Quote:
On Sat, 07 Jan 2017 19:26:21 -0500, bitrex wrote:

On 01/07/2017 04:55 PM, Tim Wescott wrote:
On Sat, 07 Jan 2017 15:57:57 -0500, bitrex wrote:

On 01/07/2017 02:55 PM, John Larkin wrote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for a
Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and
python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash) have
the basic 12 programs https://raspberrypiassembly.wordpress.com/
but really just basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring
the OS, so ..


Finally I thinking of using Assembler inside an Android program.
(for optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as
punching yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for
embedded processors, and maybe use it on some 8 bit architectures, but
as even the lowliest ARM Cortex is like 50MHz and 64k of RAM it seems
like a very self-punishing exercise to write an entire project in
assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of
very heavyweight STL containers or a lot of runtime
polymorphism/virtual methods (runtime polymorphism is bad) it works
fine. std::vector is nice to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.

Except in the cases of very small processors (like, less than 1K of
ROM) or very C-unfriendly processors, I think it's better to just stick
to C.

Even for a sub 1K-ROM processor that's C-friendly it may be better to
use C that's carefully written to avoid pulling in any library code.


I'm fortunate enough to have never had to do a serious project using one
of those itty bitty ones.

I've done a tiny bit with a PIC12. But what was needed could have been
done just as well with a PAL -- it's just that I had a PIC12 development
kit in my junkbox.


Is there even a C compiler available for the PIC12 series? Using ASM for
those devices is probably sensible as IIRC the ISA for that line isn't
really optimized for C, while all the AVR devices share a common core
architecture which was intended from the outset to lend itself to
compilers generating optimal ASM from C for it. But the PIC will usually
beat AVR on price/product longevity last I checked. (the old debate)

Some of the abstractions that C++ provide are really nice to have in the
embedded world. For example "policy based design":

https://en.wikipedia.org/wiki/Policy-based_design

lets you do things like the thing I did with a display driver I wrote a
while ago: you have a common "core" class for the particular
architecture you're targeting that handles all the generic "low level"
stuff for driving any kind of display (essentially, timing and
bit-banging the pins/sending data over a I2C/SPI bus), and then you can
write "plug ins" at a higher level of abstraction for different types of
displays.

So if on one project you need to use a 7 segment display, and on another
a 2 line LCD, etc. you only need to rewrite the higher level policy, and
plug it in to the base class. The base class functions as an
"abstraction" of any type of display that you can stream characters to
the same way you would a terminal console, and the policy handles the
specifics.

Tim Wescott
Guest

Sun Jan 08, 2017 8:30 am   



On Sat, 07 Jan 2017 20:25:34 -0500, bitrex wrote:

Quote:
On 01/07/2017 08:05 PM, Tim Wescott wrote:
On Sat, 07 Jan 2017 19:26:21 -0500, bitrex wrote:

On 01/07/2017 04:55 PM, Tim Wescott wrote:
On Sat, 07 Jan 2017 15:57:57 -0500, bitrex wrote:

On 01/07/2017 02:55 PM, John Larkin wrote:
On Sat, 7 Jan 2017 13:16:53 -0500, bitrex
bitrex_at_de.lete.earthlink.net> wrote:

On 01/07/2017 12:43 PM, ARM wrote:
Hi folks, great group, wondering recomendations for projects for
a Assembler course.

Students from System engeneering.

Backgorunds microcontroller Arduino, chsarp, labview, java and
python.



And will like to implement in RaspberryPI (GNU AS,LD and Bash)
have the basic 12 programs
https://raspberrypiassembly.wordpress.com/ but really just
basics, not list of projects ...


I view a good project in RaspberryPi bare-metal in a video:

Assembly Chess on Raspberry Pi (without any OS)
https://www.youtube.com/watch?v=-03bouPsfEQ


But I can't pretend to do all projects dedicated one RPI ignoring
the OS, so ..


Finally I thinking of using Assembler inside an Android program.
(for optimization or do some interfacing)


Thanks for you valuable time. All coments welcome. Thanks

Well, I do know writing ARM assembly is about as pleasant as
punching yourself in the kidneys repeatedly. So there's that.

Kamakaze pilots and ARM compiler writers have a lot in common.



I can understand wanting to _understand_ assembly language for
embedded processors, and maybe use it on some 8 bit architectures,
but as even the lowliest ARM Cortex is like 50MHz and 64k of RAM it
seems like a very self-punishing exercise to write an entire project
in assembly.

I even use C++ on some 8 bit AVR projects. So long as you're
careful/clever about your memory management and don't use a ton of
very heavyweight STL containers or a lot of runtime
polymorphism/virtual methods (runtime polymorphism is bad) it works
fine. std::vector is nice to have and works fine.

Even modern 8 bit processors are not yer dad's 8 bit processors.

Except in the cases of very small processors (like, less than 1K of
ROM) or very C-unfriendly processors, I think it's better to just
stick to C.

Even for a sub 1K-ROM processor that's C-friendly it may be better to
use C that's carefully written to avoid pulling in any library code.


I'm fortunate enough to have never had to do a serious project using
one of those itty bitty ones.

I've done a tiny bit with a PIC12. But what was needed could have been
done just as well with a PAL -- it's just that I had a PIC12
development kit in my junkbox.


Is there even a C compiler available for the PIC12 series? Using ASM for
those devices is probably sensible as IIRC the ISA for that line isn't
really optimized for C, while all the AVR devices share a common core
architecture which was intended from the outset to lend itself to
compilers generating optimal ASM from C for it. But the PIC will usually
beat AVR on price/product longevity last I checked. (the old debate)

Some of the abstractions that C++ provide are really nice to have in the
embedded world. For example "policy based design":

https://en.wikipedia.org/wiki/Policy-based_design

lets you do things like the thing I did with a display driver I wrote a
while ago: you have a common "core" class for the particular
architecture you're targeting that handles all the generic "low level"
stuff for driving any kind of display (essentially, timing and
bit-banging the pins/sending data over a I2C/SPI bus), and then you can
write "plug ins" at a higher level of abstraction for different types of
displays.

So if on one project you need to use a 7 segment display, and on another
a 2 line LCD, etc. you only need to rewrite the higher level policy, and
plug it in to the base class. The base class functions as an
"abstraction" of any type of display that you can stream characters to
the same way you would a terminal console, and the policy handles the
specifics.


Yes to all of that. In addition, at least the last time that I went
shopping for parts, the PIC parts could drive about five times more
current on each pin than an AVR.

--
Tim Wescott
Control systems, embedded software and circuit design
I'm looking for work! See my website if you're interested
http://www.wescottdesign.com

ARM
Guest

Wed Jan 11, 2017 8:30 am   



Thank you every one of you folks. Pace !

elektroda.net NewsGroups Forum Index - Electronics Design - Assembler Course projects (ARM architecture)

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map