Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN
Hi Anthony,
I am facing an issue on LaunchPadxl2 TMS570LC4357.
First, I wanted to send Ethernet packets via the LaunchPad EMAC. To do this, I have followed the settings detailed in the project demo lwIP found on the wiki page mentioned above. This has worked fine, I have been able to send Ethernet packets from the LaunchPad to a computer.
But now, I would like to send these packets when a gpio interruption is detected. I have tried to use the different gpio pins available on the LaunchPadxl2. The documentation delivered with the LaunchPadxl2 shows that the GIOA[0], GIOA[1], GIOA[2], GIOA[5], GIOA[6], GIOA[7] are available on the 2x20 pins female on the bottom side of the LaunchPad. These 6 pins are respectively named on the LaunchPad: PA0, PA1, PA2, PA5, PA6 and PA7.
Therefore, I have tried to use these 6 different pins to generate interruptions. On HalCoGen, I have enabled GIO driver in the driver Table, I have checked GIOA in the Pinmux table (this had already been done because GIOA[3] and GIO[4] must be driven high to release the phy from reset and power down).
Then, in GIO/Port A Tab I have selected the following settings for GIOA[0], GIOA[1], GIOA[2], GIOA[5], GIOA[6], GIOA[7]:
-interruption enabled
-rising edge
-high priority
However, the interruptions on these different pins don’t seem to work for the moment. I have tried to send 3.3V pulses on the pins PA0, PA1, PA2, PA5, PA6 and PA7 but it didn’t generate any interruption. I know the interruptions don’t work because I don’t have the notifications expected.
Concerning the gio initialization and the notifications, here is what I do in the “main.c”:
gioInit();
_enable_IRQ();
_enable_interrupt_();
gioEnableNotification(gioPORTA,0U);
gioEnableNotification(gioPORTA,1U);
gioEnableNotification(gioPORTA,2U);
gioEnableNotification(gioPORTA,5U);
gioEnableNotification(gioPORTA,6U);
gioEnableNotification(gioPORTA,7U);
Actually, I have run previously the same kind of test on the TMS570LC4357 HDK and it worked just fine. So I think there is something wrong in my GIO configuration on HalCoGen, but I can’t find out the solution.
I hope that you will have some idea about the reasons why the interruptions don’t work on my LaunchPadxl2.
Thanks in advance
Best Regards,
Adrien