0
Offline
Full Member
Karma: 0
Posts: 112
Arduino rocks but a Arduno bot can roll!
|
 |
« on: February 27, 2013, 10:17:52 am » |
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
Sr. Member
Karma: 2
Posts: 288
Ancient developer
|
 |
« Reply #1 on: February 27, 2013, 11:40:57 am » |
The SAM3X chip used in the Due doesn't have an interface for additional program memory.
|
|
|
|
|
Logged
|
Leon Heller G1HSM
|
|
|
|
Belgium
Offline
Full Member
Karma: 4
Posts: 135
|
 |
« Reply #2 on: February 27, 2013, 12:38:33 pm » |
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
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #3 on: March 21, 2013, 07:54:39 pm » |
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
|
|
|
|
|
St. Leonards-on-Sea, E. Sussex, UK.
Offline
Sr. Member
Karma: 2
Posts: 288
Ancient developer
|
 |
« Reply #4 on: March 22, 2013, 04:23:01 am » |
That isn't program memory, though.
|
|
|
|
|
Logged
|
Leon Heller G1HSM
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #5 on: March 22, 2013, 06:01:18 am » |
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
|
|
|
|
|
St. Leonards-on-Sea, E. Sussex, UK.
Offline
Sr. Member
Karma: 2
Posts: 288
Ancient developer
|
 |
« Reply #6 on: March 22, 2013, 08:49:42 am » |
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
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #7 on: March 22, 2013, 11:22:20 am » |
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  Of course you have to get the code in there at power up but there are a few ways to do that. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 2
Posts: 43
|
 |
« Reply #8 on: March 22, 2013, 07:15:27 pm » |
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
|
|
|
|
|
|