
findAUsername
-
Content Count
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Gallery
Posts posted by findAUsername
-
-
Hi jpeyron,
Thank you for your answer. So I added this code and also in function bool MtdsHalSpiReady() I copy paste the code for AVR and change the defined with SAM3X8E. Same in function uint8_t MtdsHalPutSpiByte(uint8_t bSnd) .
Now it goes in else if (SAM3X8E), however nothing is declared in the scope. I got this type of error:
C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp: In function 'void MtdsHalInitSpi(uint32_t, uint32_t)': C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:339:2: error: 'SPCR' was not declared in this scope SPCR = _BV(SPE) | _BV(MSTR); ^ C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:339:13: error: 'SPE' was not declared in this scope SPCR = _BV(SPE) | _BV(MSTR); ^ C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:339:16: error: '_BV' was not declared in this scope SPCR = _BV(SPE) | _BV(MSTR); ^ C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:339:24: error: 'MSTR' was not declared in this scope SPCR = _BV(SPE) | _BV(MSTR); ^ C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:340:2: error: 'SPSR' was not declared in this scope SPSR = _BV(SPI2X); ^ C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:340:13: error: 'SPI2X' was not declared in this scope SPSR = _BV(SPI2X); ^
Do you have an idea, how to declared those things ?
Thank you
-
Hi everyone,
I just bought a MTDS (https://reference.digilentinc.com/reference/add-ons/mtdshield/start)
I tried to use on an arduino Duo (arm cortex M3) and I got this error :
C:\Program Files (x86)\Arduino\libraries\mtds\MtdsHal.cpp:326:2: error: #error "No supported processor defined"
#error "No supported processor defined"
So I have checked MtdsHal.cpp at line 326 and I saw that the SPI is set for PIC or AVR processor.
Is there a solution for arm processor ?
Thanks
Use MTDS with arduino ARM processor
in Add-on Boards
Posted
Hi jpeyron,
Yes in fact it is compiling without error. I try to run one of the script give with the lib (MyDispDemo1) but mydisp.begin(); return all the time false so I am stuck in the first while (line 96).
And the pins are the same between Duo and Uno for this type of shield, so I think that I should good connected.
Thank you