Oct 04, 2019
07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 04, 2019
07:23 AM
I've been trying out some DAVE example projects on the XMC4800 Relax because I want to develop a product on it. I've got the HTTP server with RTOS example working and
I've got the FATFS example working, so I'm trying to merge them but without luck. In particular if I select the RTOS checkbox on the FATFS APP it wont compile. The first error is:
.../DAVEworkspace/FATFS_EXAMPLE_XMC47/Dave/Generated/CMSIS_RTOS_RTX/INC/cmsis_os.h:663:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
because no #define of __NO_RETURN is included.
My question is, "what do I need to do to make APP instances RTOS compatible" and where do I find the documentation on this aspect of DAVE?
I've got the FATFS example working, so I'm trying to merge them but without luck. In particular if I select the RTOS checkbox on the FATFS APP it wont compile. The first error is:
.../DAVEworkspace/FATFS_EXAMPLE_XMC47/Dave/Generated/CMSIS_RTOS_RTX/INC/cmsis_os.h:663:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
because no #define of __NO_RETURN is included.
My question is, "what do I need to do to make APP instances RTOS compatible" and where do I find the documentation on this aspect of DAVE?
Solved! Go to Solution.
- Tags:
- dave rtos fatfs
- IFX
1 Solution
Oct 09, 2019
02:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 09, 2019
02:30 AM
Jesus, thanks for the response. I'm using Dave 4.4.2 and I've had a look at your link but there's no sdmmc_block_private_spi.c file in my project. The nearest I've got is sdmmc_block_private_sd_rtos.c so I'll look in there.
Edit - I've got it to compile. DAVE uses two different versions of the file cmsis_os.h and the one in the FATFS example project lacks the following lines:
#if defined(__CC_ARM)
#define __NO_RETURN __declspec(noreturn)
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__GNUC__)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__ICCARM__)
#define __NO_RETURN __noreturn
#else
#define __NO_RETURN
#endif
Adding these lines fixes the compile problem but the program hangs when I run it because it waits forever for a mutex.
Edit - I've got it to compile. DAVE uses two different versions of the file cmsis_os.h and the one in the FATFS example project lacks the following lines:
#if defined(__CC_ARM)
#define __NO_RETURN __declspec(noreturn)
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__GNUC__)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__ICCARM__)
#define __NO_RETURN __noreturn
#else
#define __NO_RETURN
#endif
Adding these lines fixes the compile problem but the program hangs when I run it because it waits forever for a mutex.
2 Replies
Oct 07, 2019
12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 07, 2019
12:34 AM
Hi,
Which version of the APPs are you using?
We are aware of the following issue, https://www.infineonforums.com/threads/6544-SDMMC_BLOCK-error?p=19006&viewfull=1#post19006, which is going to be fixed in the next up comming release of the DAVE4 APPs.
Regards,
Jesus
Which version of the APPs are you using?
We are aware of the following issue, https://www.infineonforums.com/threads/6544-SDMMC_BLOCK-error?p=19006&viewfull=1#post19006, which is going to be fixed in the next up comming release of the DAVE4 APPs.
Regards,
Jesus
Oct 09, 2019
02:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 09, 2019
02:30 AM
Jesus, thanks for the response. I'm using Dave 4.4.2 and I've had a look at your link but there's no sdmmc_block_private_spi.c file in my project. The nearest I've got is sdmmc_block_private_sd_rtos.c so I'll look in there.
Edit - I've got it to compile. DAVE uses two different versions of the file cmsis_os.h and the one in the FATFS example project lacks the following lines:
#if defined(__CC_ARM)
#define __NO_RETURN __declspec(noreturn)
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__GNUC__)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__ICCARM__)
#define __NO_RETURN __noreturn
#else
#define __NO_RETURN
#endif
Adding these lines fixes the compile problem but the program hangs when I run it because it waits forever for a mutex.
Edit - I've got it to compile. DAVE uses two different versions of the file cmsis_os.h and the one in the FATFS example project lacks the following lines:
#if defined(__CC_ARM)
#define __NO_RETURN __declspec(noreturn)
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__GNUC__)
#define __NO_RETURN __attribute__((noreturn))
#elif defined(__ICCARM__)
#define __NO_RETURN __noreturn
#else
#define __NO_RETURN
#endif
Adding these lines fixes the compile problem but the program hangs when I run it because it waits forever for a mutex.