Pages: [1]   Go Down
Author Topic: Is their a way in the data sheet or some way to add more program memory to due.  (Read 1315 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 117
Arduino rocks but a Arduno bot can roll!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I wanted to program the arduino due to do some linear algebra operations. Linear Discriminant Analysis. The code blocks c++ release code is over 520k already So I wonder is their ways to compile the program smaller and will it be smaller put into the arduino due as shown in the forums? It is on my pc now.
What are ways to add more program memory???
Logged

St. Leonards-on-Sea, E. Sussex, UK.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 301
Ancient developer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The SAM3X chip used in the Due doesn't have an interface for additional program memory.
Logged

Leon Heller
G1HSM

Belgium
Offline Offline
Full Member
***
Karma: 6
Posts: 135
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

depending on your application maybe your better of with a raspberryPi it will give you much stronger math capabilities (speed/Programming language)
Logged

Gear: Arduino- Uno,Due,Ethernet,  OLS, Buspirate, J-Link, TDS1002, Rigol DG1022

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The SAM3 use in the Due can easily use external memory and AFAIK execute programs from there as well.

Unfortunately the Due team did not break out the pins to do this. This thread goes into more details and he got it working.

http://arduino.cc/forum/index.php/topic,152644.0.html

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

St. Leonards-on-Sea, E. Sussex, UK.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 301
Ancient developer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That isn't program memory, though.
Logged

Leon Heller
G1HSM

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not sure but I'll believe you as I'm still learning the chip. I gather it can execute from RAM but that may not mean external memory.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

St. Leonards-on-Sea, E. Sussex, UK.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 301
Ancient developer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I could be wrong, I just found this in an ARM doc. on the Cortex-M3:

"The Cortex-M3 design has an internal bus infrastructure optimized for this memory usage. In addition, the design allows these regions to be used differently. For example, data memory can still be put into the CODE region, and program code can be executed from an external Random Access Memory (RAM) region."
« Last Edit: March 22, 2013, 08:55:33 am by Leon Heller » Logged

Leon Heller
G1HSM

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmm, interesting. Given the linear nature of the memory I guess you would think it's possible. It would be slower but that's better than running out of space smiley

Of course you have to get the code in there at power up but there are a few ways to do that.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Full Member
***
Karma: 9
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you can interface SRAM to SAM3X, then you should be able to interface a NOR Flash and run code direct from Flash (will be slower needing wait states). Other permutations are possible, for example you could read from serial/NAND Flash and copy to RAM etc. You would have to write a small amount of bootstrap code since this type of thing is not directly supported by the toolchain.

I'm not sure how flexible the memory controller on the SAM3X is, but with ARM7 and ARM9 projects I have worked on most RAM and Flash was external, the chips only had a few K of RAM on board.
Logged

Please don't PM me asking for help. Ask questions in the forum.

Pages: [1]   Go Up
Jump to: