- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have XMC4800 AWS IoT kit. BUTTON2 is not defined and not usable under DAVE. What is the fix?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A Happy New Year to you!
Thank you very much for the information. I needed a bit more information to put it together and came across a similar thread for XMC4300: https://community.infineon.com/t5/XMC/XMC4300-relax-kit-HIB-Button/td-p/337717
I created a brand new project for my board and copied the content of main.c. I didn't have to change anything and it worked. Now, I can use BUTTON2.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @mkasahara ,
I think that you can refer to the example below and define the BUTTON2 through DAVE APP, and if you have defined the BUTTON2 but it didn't work, then you can share your project with us. Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for your reply. Actually, I was talking about how to assign the physical pin for BUTTON2 under Manual Pin Allocator. I can do that for BUTTON1 (See below). However, there is no corresponding definition for BUTTON2, which should be HIB_IO_1. I tried to find where all the pins were defined, but could not find the definition file. If you could tell me where it is, I could probably fix the problem. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @mkasahara ,
You can rename the APP to 'Button2', then you can do the pin allocate manually.
And for all the definition of the pin, you can find in the file: Libraries-XMCLib-inc-xmc4_gpio_map.h. Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for your reply. This AWS board uses XMC4800 in 100pin package. The BUTTON1 is GPIO pin, but the BUTTON2 is HIB_IO_1, i.e. hibernation related pin. I don't think it can be assigned like GPIO pins. I found out that "board_pin_label.bpl" in the main directory controls pin assignment. I cannot add BUTTON2 in this file, but I can change other definitions. I checked all the _map.h files, but I could not locate anything related HIB_IO. That's all I can tell at this moment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @mkasahara ,
I've checked with my colleague that for the board 'KIT_XMC48_IOT_AWS_WIFI', the pin 'HIB_IO_1'is used for hibernation of the chip, this pin is dedicated and does not need to be configured like GPIO.
And for all the definition of HIB_IO, you can refer to 'xmc4_scu.c' and 'xmc4_scu.h'. Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A Happy New Year to you!
Thank you very much for the information. I needed a bit more information to put it together and came across a similar thread for XMC4300: https://community.infineon.com/t5/XMC/XMC4300-relax-kit-HIB-Button/td-p/337717
I created a brand new project for my board and copied the content of main.c. I didn't have to change anything and it worked. Now, I can use BUTTON2.
Thank you!