Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Build error ATSAM4E

Posted by boble on November 7, 2017

Hi,

I have a ATSAM4E Xplained Pro and wanted to try the http server.

When i try to build the code I get the following error: Severity Code Description Project File Line Error recipe for target 'src/ASF/common/services/delay/sam/cyclecounter.o' failed RTOSDemo \160919FreeRTOSLabsFreeRTOS-PlusDemoFreeRTOSPlusTCPandFATATSAM4EDebugMakefile 792

Error 's' undeclared here (not in a function) RTOSDemo \160919FreeRTOSLabsFreeRTOS-PlusDemoFreeRTOSPlusTCPandFATATSAM4EsrcASFcommonservicesdelaysamcyclecounter.c 53

I'm running the latest version of ASF Atmel Studio 7 (Version: 7.0.1645 - )

Do you have any idea what i can try to fix it?


Build error ATSAM4E

Posted by rtel on November 7, 2017

I just tried and got the same error. It looks like an error in the ASF to me. Just removing the line attribute((optimize(s))) fixed the problem.


Build error ATSAM4E

Posted by boble on November 7, 2017

that fixed the building error but i can't connect i got a ip adres and everything but can't see the webpage or connect to the ftp server

Status: Resolving address of RTOSDemo Status: Connecting to 192.168.1.159:21... Error: Connection timed out after 20 seconds of inactivity Error: Could not connect to server

pinging the server works but http and ftp not


Build error ATSAM4E

Posted by rtel on November 7, 2017

When you say you got an IP address, was that via DHCP? Are you able to ping the device?


Build error ATSAM4E

Posted by boble on November 7, 2017

Yes via DHCP I can also see it in the devices list of my router. Yes when I ping the device I get a response.


Build error ATSAM4E

Posted by boble on November 8, 2017

Yes via DHCP I can also see it in the devices list of my router. Yes when I ping the device I get a response.


Build error ATSAM4E

Posted by rtel on November 8, 2017

Could be a file access problem then. Have you verified the SD card by inserting into a laptop and viewing the files it contains?


Build error ATSAM4E

Posted by boble on November 12, 2017

Ah I thought it was also possible to use the 2GB of flash,shame that is not possible.


Build error ATSAM4E

Posted by heinbali01 on November 13, 2017

Ah I thought it was also possible to use the 2GB of flash,shame that is not possible.

Why would that not be possible? FreeRTOS+FAT should work properly with SD-cards of all sizes up to 16 GB. I have not tried 32 and 64 GB cards yet. Maybe other users have tried th larger cards?

The type of card should either be normal SD (SDSC) or SDHC.

Yes via DHCP I can also see it in the devices list of my router. Yes when I ping the device I get a response.

So the basic communication is there. Have you got further with this?

Have you tried the simpler tests like echo-client or -server?

Is your device sending logging? Either UDP logging ( UDPLoggingPrintf.c ), or serial? I would be curious to see if all socket could be created and bound. And also if the necessary buffers were be created. Is your application calling FreeRTOS_TCPServerWork()?

Have you run WireSharkl while trying to connect to either the FTP or HTTP server?

Regards.


Build error ATSAM4E

Posted by boble on November 13, 2017

I mean in the default code, but the http- and ftp server won't work without a sd-card. ~~~

if ( ( mainHASSDCARD == 0 ) && ( mainCREATEFTP_SERVER == 1 ) )
#error The FTP server can only be created if mainHAS_SDCARD is 1.
endif

~~~


Build error ATSAM4E

Posted by heinbali01 on November 13, 2017

Hi Bob, that is true, the FreeRTOS HTTP- and FTP-servers like to have a storage device ( SD-card or RAM disk ). And this device is being accessed by FreeRTOS+FAT.

Some people though, provide their own set of access routines that emulate the functions in ff_stdio.h.

So if you have a very simple and "fixed" website contents, you could store the contents as const character arrays, and write some access functions to that contents.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS