configuring SAMA5D2 without OS

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could anyone please let me know, how you could configure the SAMA5D2 MPU without OS? Recently I bought a SAMA5D2-XULT board and downloaded its software package from Atmel's website. After taking a look at the source code, I wonder if there exist a code generator for the SAMA5 series. Atmel Start doesn't seem to support MPUs. Then how do you configure the clock and pins?

 

I know that it's recommended to use linux for such MPUs. But I'm afraid that I shouldn't use any OS. In the future I need to make a customized board with the SAMA5D2 and write a firmware without any OS, because controlling timing and reducing power consumption are so important for my application. It would be very appreciated, if you could give me idea. 

Last Edited: Sat. Sep 10, 2016 - 12:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nownuri wrote:
I know that it's recommended to use linux for such MPUs. But I'm afraid that I shouldn't use any OS.
Could consider an RTOS instead of an OS.

http://www.nuttx.org/Documentation/NuttX.html#at91sama5d2

P.S.

An almost is Micrium µC/OS-III (it's for SAMA5D3).

Might inquire there as a port from SAMA5D3 to SAMA5D2 might be of interest.

Micrium has a zero price version for startups.

https://www.micrium.com/downloadcenter/download-results/?searchterm=hm-atmel&supported=true

https://www.micrium.com/makers/about/

via

https://www.iar.com/iar-embedded-workbench/#!?architecture=ARM&device=ATSAMA5D27&currentTab=features

on

http://www.atmel.com/tools/ATSAMA5D2-XULT.aspx

 

Edit : P.S.

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Sat. Sep 10, 2016 - 10:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nownuri wrote:
write a firmware without any OS, because controlling timing and reducing power consumption are so important for my application.

In that case, are you sure that the SAMA5D2 is really the right choice for your application?

 

I know that it's recommended to use linux for such MPUs

There's a reason for that!

 

Applications that really need a microprocessor (MPU) like the SAMA5D2 are likely to be more appropriately written under something like Linux;

 

Or, to put it another way, if your application requires bare-metal coding, it's more likely to be suited to a microcontroller - MCU.

 

So - what is it that you're actually trying to achieve?

 

http://www.catb.org/esr/faqs/sma...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Sat. Sep 10, 2016 - 02:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nownuri wrote:
After taking a look at the source code, I wonder if there exist a code generator for the SAMA5 series. Atmel Start doesn't seem to support MPUs. Then how do you configure the clock and pins?
Some toolchains have run-time startup code that initializes the clock; pins may be in startup or would invoke from main.

SAMA5 code generator - IAR EW has SAMA5 run-time and an optional code generator :

IAR

visualSTATE

FAQ

https://www.iar.com/iar-embedded-workbench/add-ons-and-integrations/visualstate/faq/

...

What kind of code is generated by the visualSTATE code generator?

...

How can I use visualSTATE with my interrupts?

...

How can I use visualSTATE with my RTOS?

...

How can I handle asynchronous events?

...

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

please ignore this reply. It was supposed to be Quote. I have no idea how to delete it..

 

 

 

Thank you for the answer! I want to use the SAMA5D2 in order to interface an image sensor. The pixel clock of the image sensor is 74.25Mhz, which exceeds the capability of Cortex-M7 series from Atmel and STMicronics. But the SAMA5D2 is capable of receiving the pixel clock up to 96Mhz and consumes so small amount of power.  I'm sorry that I can't use full OS. It's also for decreasing power consumption. My application has an extreme requirement on power usage..

 

 

 

Last Edited: Mon. Sep 12, 2016 - 12:48 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

awneil wrote:

Nownuri wrote:

write a firmware without any OS, because controlling timing and reducing power consumption are so important for my application.

 

In that case, are you sure that the SAMA5D2 is really the right choice for your application?

 

I know that it's recommended to use linux for such MPUs

There's a reason for that!

 

Applications that really need a microprocessor (MPU) like the SAMA5D2 are likely to be more appropriately written under something like Linux;

 

Or, to put it another way, if your application requires bare-metal coding, it's more likely to be suited to a microcontroller - MCU.

 

So - what is it that you're actually trying to achieve?

 

http://www.catb.org/esr/faqs/sma...

Thank you for the answer! I want to use the SAMA5D2 in order to interface an image sensor. The pixel clock of the image sensor is 74.25Mhz, which exceeds the capability of Cortex-M7 series from Atmel and STMicronics. But the SAMA5D2 is capable of receiving the pixel clock up to 96Mhz and consumes so small amount of power.  I'm sorry that I can't use full OS. It's also for decreasing power consumption. My application has an extreme requirement on power usage..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

Nownuri wrote:
After taking a look at the source code, I wonder if there exist a code generator for the SAMA5 series. Atmel Start doesn't seem to support MPUs. Then how do you configure the clock and pins?
Some toolchains have run-time startup code that initializes the clock; pins may be in startup or would invoke from main.

SAMA5 code generator - IAR EW has SAMA5 run-time and an optional code generator :

IAR

visualSTATE

FAQ

https://www.iar.com/iar-embedded-workbench/add-ons-and-integrations/visualstate/faq/

...

What kind of code is generated by the visualSTATE code generator?

...

How can I use visualSTATE with my interrupts?

...

How can I use visualSTATE with my RTOS?

...

How can I handle asynchronous events?

...

Thank you very much! It's great that there exist a code generator for the MPU. I would install the IAR and try.