SAM4E webserver problem

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

supermax
Posts: 4
Joined: Thu Aug 13, 2015 10:47 am

SAM4E webserver problem

Tue Sep 01, 2015 8:17 am

Hello

I'm playing with the SAM4E and trying to understand how webservers work on it. I have loaded the standard example where i can browse to a default webpage if typing the ip for the board.

But i cannot find out how to convert the images and html files to hex data. I have tried many converter programs but none of them seems working.

It looks like this:

const struct fsdata_file file_index_html[] = {{file_404_html, "index.html", indexhtml, sizeof(indexhtml)}};
const struct fsdata_file file_atmel_png[] = {{NULL, "etc/img/atmel.png", atmel, sizeof(atmel)}};

and in headerfiles:

const unsigned char indexhtml[] = {
0x3c,0x21,0x44,0x4f,0x43,0x54,0x59,0x50,0x45,0x20,0x48,0x54,0x4d,0x4c,0x20,
0x50....
}

Does anyone know a program to convert it correctly?
supermax
Posts: 4
Joined: Thu Aug 13, 2015 10:47 am

Re: SAM4E webserver problem

Tue Sep 01, 2015 8:42 am

Nevermind found out it was the script makefsdata

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 4 guests