1
utFAT / Re: utFat and simulator
« on: August 07, 2010, 08:52:26 AM »
Hi Mark,
Thank You for Your professional reply to My sily questions;) I played a bit with My configuration, and with fresh uTasker V1.4. In My configuration I use M5223x demo and in original is used M5225x (both I test in simulator). If I use SD card and try to execute command sect 0, both configurations behave the same (as in My previous post- probably due to the same tx buffer size- 256 bytes), but when I try for example print 0menu.htm, it prints much more characters correctly. It means, that You use different routines for print and sect or info?
Also, I couldnt get working ftp in My configuration, even if I increase heap size and use original tx buffer. I looked at the original heap size and M5225x has defined 23.5 kb heap and M5223x 21 kb. I also check heap size in statistic page and heap seems to be big enougth. Stack is always 0x0 but I read somewhere that it is normal in simulation (I hope I remember it well;)) Actually I dont need FTP now, just ethernet, Http, utFat and UART is enought for Me. But I dont know how to copy and verify files into simulated sdcard in other way (before I start to write some routines). I also couldnt start web server from sd card. If I copy some http file into sd card (in root or directory dir1), it still displays error 404 (I use original config. with kirin 3). I also rename some file "index.htm" but it doesnt help. Do You have any idea?
I know, problem is probably between keyboard and chair, so I appologize for My sily questions
Regards, Rad
Thank You for Your professional reply to My sily questions;) I played a bit with My configuration, and with fresh uTasker V1.4. In My configuration I use M5223x demo and in original is used M5225x (both I test in simulator). If I use SD card and try to execute command sect 0, both configurations behave the same (as in My previous post- probably due to the same tx buffer size- 256 bytes), but when I try for example print 0menu.htm, it prints much more characters correctly. It means, that You use different routines for print and sect or info?
Also, I couldnt get working ftp in My configuration, even if I increase heap size and use original tx buffer. I looked at the original heap size and M5225x has defined 23.5 kb heap and M5223x 21 kb. I also check heap size in statistic page and heap seems to be big enougth. Stack is always 0x0 but I read somewhere that it is normal in simulation (I hope I remember it well;)) Actually I dont need FTP now, just ethernet, Http, utFat and UART is enought for Me. But I dont know how to copy and verify files into simulated sdcard in other way (before I start to write some routines). I also couldnt start web server from sd card. If I copy some http file into sd card (in root or directory dir1), it still displays error 404 (I use original config. with kirin 3). I also rename some file "index.htm" but it doesnt help. Do You have any idea?
I know, problem is probably between keyboard and chair, so I appologize for My sily questionsRegards, Rad

So I have to find where it is SERIAL_PORT_0 changed
I looked at definition again and its correct value (2). Do You have any idea?
but in the memory, It looks a bit strange to Me. Anyway I checked SR register during start up, and sequence looks following: first jump into RealTimeInterrupt() is SR 0x2204, when routine ends, it looks like dont leave interrupt, just jump at the first bracket in the interrupt and SR changes to 0x2200, after routine ends, it jumps into unhandled interrupt (as You see at the pic Regs1) with SR 0x2000. This state You see at the pic Regs1 and return adress is set to 0x0004, so I add there screenshoot PC0x0000 for Your reference, but It looks like normal startup code (I dont know motorolas assembler- do You know any good ref. manual where are explained motorola assembly language commands?). If Im right, at adress 0x0000 and 0x0004 are PC and stack, so they are loaded in appropriety regs from this adress after reset..