New Ports and SPI2, and SPI3 - Crashing
Posted: 18 Aug 2015 21:28
First of all, I made a program to test the digital ports of my LM4F232H5QD on my EasyMx PRO v7 for Stellaris ARM.
I was careful to:
Leave out the doors PC0, PC1, PC2 and PC3, used by JTAG;
Unlock, by software, the locked doors PD7 and PF0;
Took care of the adaptations of PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, and PD3-PK5 doors;
The test was a success, all the LEDs blink.
Now, for a second test, I used a clickboard (ETH click).
I declared it in _GPIO_MODULE_SPI0_A245. I tested the Ethernet module in parallel with the other ports (digital) with the blinking LED.
Everything working again.
However, when I repeated the second test, changing the click board to _GPIO_MODULE_SPI2_H467 and to _GPIO_MODULE_SPI3_H023, the processor crashed.
Some tests revealed that if I have something declared in SPI2 and SPI3, with led blinking, the processor crashes.
The crashes happend in the moment that I changed the status of any of the adapted ports (PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, PD3- PK5).
If I comment the change of status of those doors, everything works again.
Why canĀ“t I use the PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, PK5-PD3 doors as digital in parallel with SPI2 or SPI3?
Thanks. Att,
I was careful to:
Leave out the doors PC0, PC1, PC2 and PC3, used by JTAG;
Unlock, by software, the locked doors PD7 and PF0;
Took care of the adaptations of PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, and PD3-PK5 doors;
The test was a success, all the LEDs blink.
Now, for a second test, I used a clickboard (ETH click).
I declared it in _GPIO_MODULE_SPI0_A245. I tested the Ethernet module in parallel with the other ports (digital) with the blinking LED.
Everything working again.
However, when I repeated the second test, changing the click board to _GPIO_MODULE_SPI2_H467 and to _GPIO_MODULE_SPI3_H023, the processor crashed.
Some tests revealed that if I have something declared in SPI2 and SPI3, with led blinking, the processor crashes.
The crashes happend in the moment that I changed the status of any of the adapted ports (PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, PD3- PK5).
If I comment the change of status of those doors, everything works again.
Why canĀ“t I use the PB6-PK6, PB7-PK7, PD0-PN0, PN1-PD1, PD2-PK4, PK5-PD3 doors as digital in parallel with SPI2 or SPI3?
Thanks. Att,