Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rad

Pages: [1] 2
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

2
utFAT / Re: utFat and simulator
« on: August 06, 2010, 11:34:33 AM »
Hi Mark

I changed TXbuffer to 2048 and now it works, but You used 256 bytes long Txbuffer originally, so It seems to be quite big change (1024 bytes buffer didnt work). Now I cannot connect to ftp (terminal says connection was closed by remote host). I use M52233DEMO so I undefined _M5225X in config.h. Did I something wrong? (because ftp works before). It seems to start my problems use kirin2 instead of kirin3..:(

Rad

3
utFAT / utFat and simulator
« on: August 05, 2010, 04:57:06 PM »
Hi Mark,

Now I try to use utFat according to Your document (uTasker-utFAT), but when I use simulator and connect with terminal, it seems to send just a few chars and then it stops. See following listing:

info

SD-card  (1967128576 bytes)
Bytes per sector: 512
Cluster size: 4096
Directory base: 0x00000002
FAT start: 0x0000005f
FAT size: 0x00000ea5
Number of FATs: 2
LBA: 0x00001da9
Total clusters: 0x0007504a
Info sect: 0x00000040
Free clusters: 0x00Connection timed out

Actually it stops at last line and if I left it for a while it add Connection timed out. The same if I type

sect 0

Reading sector 0x00000000
 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
 0x00000000 0x00000000 0x00000000 0x00000000 0x0Connection timed out

I use Xon/Xoff at the terminal (but the same is If I disable it) and the same result if I comment out #define SERIAL_SUPPORT_DMA. I didnt make any changes in project v.1.4, I expect its set up to work properly with utFat without any settings, at least for use with terminal..

Rad

4
µTasker general / Re: UART and simulator
« on: August 05, 2010, 02:49:10 PM »
Hi Mark,

You are right, when I rebuild project, its ok now. And I use Visual Studio 2008;) But when I rebuild whole project I got warning "unary minus operator applied to unsigned type, result still unsigned" file mass_storage.c line 2637.. if (-ulPosition > ptr_utFile->ulFilePosition). Is it ok?

Rad

5
µTasker general / Re: UART and simulator
« on: August 05, 2010, 02:11:40 PM »
Also OPEN_PC_COM0 runs ok, Mode is 32 and ulSpeed is 117187. But sm_hComm0 is all the time INVALID_HANDLE_VALUE. When I stepped into fnConfigureSerialInterface() I found out that char cCom is 11. I suppose It should be 2 (com2), so I changed it manually to 2 and now it returns valid handle and voila it wors now ;D 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?

Rad

6
µTasker general / Re: UART and simulator
« on: August 05, 2010, 01:40:41 PM »
Hi Mark,

Thank You for Your reply- I checked SerialPortID and DebugHandle, and both is assigned 12. It is correct?

Rad

7
µTasker general / UART and simulator
« on: August 05, 2010, 01:01:01 PM »
Hi Mark

I try uTasker v.1.4 and add there my first task according to Your tutorial. I use fnDebugMsg() and fnDebugDec() to send some data out. I din´t modify setting code just check that DEMO_UART     0  and SERIAL_PORT_0     2 are defined. Also  LOG_UART0 is defined, so when I start simulator, I can read data from UART0.txt file (there are all data correct). I connect com2 and com5 (com5 is USB to serial) together via null modem, so when I open two instances of the hyperterminal I can send and receive data from terminal one to terminal two correctly. But when I start simulator (I closed all terminals before, of course ;)), I cannot get any data (I try many settings like 1152kbs, Xon/Xoff, no flow control, etc.). Interesting is, that I can open com2 if simulator is running (it must be impossible, if simulator opened com2 before). Do You have any idea? Or missed I some setting?

8
µTasker general / Re: Placing MAC address in spi flash.
« on: July 03, 2008, 09:21:20 AM »
Hi Neil,

I dont know which board do You use, I use M52233DEMO. There is MAC adress 00-00..-00 from begining (the same in the simulator). If You change it, its stored in memory flash, so when You erase it, You can change it again. You can read uTasker tutorial for M5223xto see how to change MAC adress. If You use demo Web pages (supplied with uTasker project) You can change there MAC adress and IP Adress as You want (Ok, You can change MAC adress just once, till You reflash the board). Now, You dont need develop any utilities for change it, because You can use (or modify) demo as its suplied.

I have to say the system in the demo is quite sophisticated, because You have to verify all changed parameters in 3 mins. after change is made. If You dont do it (according to inaccesibility of the network, or so), board will change setting back in the last working configuration and You can use old setting as before. I think that its a quite lot of work make Your own solution, so why dont use good proven solution? Of course, You can change everything because You have all source files (and web page sources too), but I will basicaly use this solution too.

For Me, the uTasker is quite large project and I dont familliar with it yet, But I really like it and enjoy to learn it. I have to say Mark made looot of work with it (and really support it), so when I will be able to work with uTasker better, I will use it in any project with ethernet I make. Reason is due to support, features and size of code. And The price for it is sooo low...

Regards, Rad

9
..and second pic, because it didnt allow Me send both in one message..;)

Regards, Rad

10
Hi Mark,

thank You for Your info, I tried new (empty) project and it works fine as We expected (actually I make some small changes in it, to send some messages by TCPIP, listen at the 2 ports and so on) but as I said It works fine. More interesting is Why is blocked My previous project. I send screenshoot from CW (registers and PC from adress 0). I cannot recognize what happends (I dont know coldfire architecture  too much- still learn it..:)) 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..

Have a nice day, Rad

11
Hi all,

some strange thing happends to Me with M52233DEMO. During startup procedure it jumps into static __interrupt__ void undef_int(void) routine (undefined interrupt) but I dont know why. if I test it on real target, watchdog led blink once and then it stops (in undef. int). If I comment out while (1) in this routine (and press F11 aprox. 10 times in debug mode), micro continues without problem and work as expected (but reset led blink once or twice during startup, so it resets during this time). Interesting is, that the same sw in simulator works without problem.

I found out it returns to static __interrupt__ void _RealTimeInterrupt(void) from undef. int. So I put breakpoint in this routine, and check it. When RealTimeInterrupt() is called, it jumps into fnRtmkSystemTick() (its ok), than it looks like RealTimeInterrupt() is called immediatelly again (RealTimeInterrupt() run again, and when its called third time, it jumps into undef. int. routine). I say It looks like its called again, but it actually never returns from RealTimeInterrupt(), just it cycle between { and }. Interesting it that all worked properly till yesterday (I just make some small changes in MyFunc which havent any context with startup code).

Another problem in simulator..when I disconnect simulator and re run it again, it doesnt connect (just 2-3 times from 10). The same problem mention Neil in http://www.utasker.com/forum/index.php?topic=25.0 so Id like to know if someone sort it out...but it isnt so serious problem just now. Id like to know whats wrong with undef. interrupt and how to sort it out (or how to diagnostic it more precise).

Regards, Rad

12
NXPTM M522XX, KINETIS and i.MX RT / Re: UART in Simulator
« on: June 03, 2008, 03:20:29 PM »
Hi Mark,

You shortly said what I expected..but I have bad experience with USB to COM devices. Anyway today I start simulator and when it fetching time from time server, It displays strange symbols on bottom line. I red some article about it and how to sort it out, here on the forum, but cannot find it again. Do You know where this article is, please?

Again, thank You for Your support and have a nice day, regards, Rad

13
NXPTM M522XX, KINETIS and i.MX RT / UART in Simulator
« on: June 03, 2008, 11:48:30 AM »
Hi Mark,

I would like to use UART in simulator on PC, but want to send and receive chars on same PC. The same style like telnet (I open telnet terminal on the same PC like simulated device, and send data from terminal to the device or back). But If I try the same in UART mode, simulator open COM1 and I cannot connect it by hyperterminal for example (reason is known, windows not allow share COM ports-just scan it by comlite or similar sw).

Well, question is, If I have to connect two PCs together (one with simulated device and second one with terminal, because I dont have two uarts in PC so I cannot bypass them by cable), or If exist any other solution how to send and receive data to simulated device from the same PC.

Thank You, regards, Rad


14
NXPTM M522XX, KINETIS and i.MX RT / Re: SP7 errors
« on: May 19, 2008, 11:34:36 AM »
Hi Mark,

thank You for Your answer, Its really helpfull, I managed to work SP7 quite quickly. The problem with W2000 wasnt windows problem, but My mistake..I forgott set lan setting in the simulator (I didnt choose proper lan card:-)) so now its working at both PCs.

Anyway According to Me, Your simulator will save much more than 50 percent of develop time..From begining I didnt belive, it can be usefull but now I use My M52233DEMO just for connecting PC to the net (I havent any other lan connection at home) and for final testing. Your simulator is incredible comfortable and realistic, Its really good work!

Regards, Rad

15
NXPTM M522XX, KINETIS and i.MX RT / SP7 errors
« on: May 16, 2008, 12:54:38 PM »
Hi Mark,

I tried create new connection in CW and I got some errors, like expression syntax error. I try  create socket in the applications.c so I hope there is everything already inicialized. fnTestSocket() I put at the end of application.c, what is wrong? Probably I put it in the wrong location? I also forgott declare USOCKET Test_socket..

next I found out that I use sp4, so I dowload sp7 and install it, but VS2005 profesional says 12 errors and or warnings(for example DynamicCnt : is not a member of ´stHTTP´). I try install it on 2 pcs (one with XP and second one with W2000) and both gave the same result. Note I install uTaskerV1.3.0_M5223X_sp7 and uTaskerV1.3.0_M5223X. I also checked precompiller setting in VS, project, properties, and all seems to be ok (its defined for M5223X). When I use sp4 I get no error.

Another interesting thing..I couldnt get any connection (or ping) at the W2000 pc, if I use simulator (sp4, fresh installed- the same situation with XP is without problem)..Its different network (my pc has IP 192.168.70.187) and there is used DHCP server. I dont know why but I have many problems with network settings in W2000 enviroments..for example I cannot print at the network printer from W2000 but form other systems with no problem (no matter if its W98, XP or so), so I expect I make some big mistake with W2000:)

And last question- Freescale relased new slower M52232 and M52236 micros. Can I use this ones with uTasker? It seems to be good alternative, because they are about half price of others.

Thank You, Regards, Rad

Pages: [1] 2