Program in assembly language?
#1
Posted 28 October 2012 - 03:59 PM
#2
Posted 28 October 2012 - 04:19 PM
I think the whole point of the Netduino is that you use a high level language such as C# or VB to give you the abstraction form the hardware in order to make prototyping and development a more rapid and smoother process. I think you will need to look at alternative platforms in order to use assembly language on a hardware platform.I want to learn assembly and I was wondering if it would be possible to program for the netduino in assembly.
I searched on the forum and on the internet but couldn't find anything.
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#3
Posted 28 October 2012 - 04:45 PM
#4
Posted 28 October 2012 - 04:46 PM
I know the whole point of the netduino is the ability to use higher level languages for a microcontroller, but I just wanted to try assembly and since I already had the netduino, I thought i might use it for that.
If its not possible, which cheap microcontroller would you recommend?
Hi, you can erase the board and program it using ARM or Thumb instruction sets, but of course you have no access to NETMF. To be honest you should start with a simpler 8-bit microcontroller or use an emulator software for educational purposes...
Thanks for the reply, but I was asking for which assembler to use and how to upload the code. Which 8bit microcontroller would you recommend?
#5
Posted 28 October 2012 - 04:57 PM
- HerrBag likes this
#6
Posted 28 October 2012 - 05:48 PM
It is possible to program Netduino in C/C++ or assembly, you'd just need to use an ARM toolchain (such as Keil MDK, ARM RVDS, IAR EWARM, Rowley CrossWorks for ARM, Yagarto, Sourcery etc.), and flash the executable via Atmel SAM-BA. The existing Netduino/Plus/Mini boards do not have any debugging connector (JTAG), which makes development a little bit more challenging.
Thanks, I will try that
#7
Posted 28 October 2012 - 06:03 PM
#8
Posted 28 October 2012 - 09:04 PM
If I was to be looking at assembler and hardware I'd be thinking seriously about the STM32 Discovery boards. They offer you the ability to have a go at ARM development and you can pick them up for a few pounds.If its not possible, which cheap microcontroller would you recommend?
Bear in mind that there are people here with a lot more experience in this field than myself, but that's where I'd be looking.
Hope this helps,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#9
Posted 29 October 2012 - 02:59 PM
#10
Posted 29 October 2012 - 05:15 PM
I've managed to assemble some code and upload it with sam-ba. Now only if I had some code to test it. Perhaps one of you guys could provide assembly code to blink the onboard led?
Thanks
I've programmed in assembly way back when. Many controllers and other products. I'm not sure why anyone would use it with structured languages available for controllers.
Also, isn't part of learning trying to figure it out. Not asking someone to do it for you. Just saying...
#11
Posted 29 October 2012 - 06:00 PM
How about compiling a trivial C/C++ application (you can simply modify one of the getting-started projects from AT91SAM7X-EK Software Package) and inspect its assembly output? While the blinking itself is trivial (toggling a bit of a GPIO register), there is a few things that must be set up first - interrupt vector table, system clock configuration, GPIO mode settings etc., which require a little bit of work to get it right, especially on a board that does not support interactive debugging/code steppingPerhaps one of you guys could provide assembly code to blink the onboard led?
- JerseyTechGuy likes this
#12
Posted 29 October 2012 - 08:17 PM
How about compiling a trivial C/C++ application (you can simply modify one of the getting-started projects from AT91SAM7X-EK Software Package) and inspect its assembly output? While the blinking itself is trivial (toggling a bit of a GPIO register), there is a few things that must be set up first - interrupt vector table, system clock configuration, GPIO mode settings etc., which require a little bit of work to get it right, especially on a board that does not support interactive debugging/code stepping
Thanks for the link. That library is great.
I've managed to get the led blinking and will continue to port the header files for use with Netduino.
Thanks, everyone
#13
Posted 30 October 2012 - 12:07 AM
- Mattster likes this
#14
Posted 31 October 2012 - 08:23 AM
#15
Posted 03 November 2012 - 12:53 PM
#16
Posted 06 November 2012 - 08:33 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users