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.


Topics - rad

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

2
µ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?

3
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

4
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


5
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

6
NXPTM M522XX, KINETIS and i.MX RT / Debug problem
« on: May 09, 2008, 10:21:08 AM »
Hi All,

I use CW6.4 with 52233DEMO, and When I set a breakpoint in any file and try debug uTasker v.1.3, it stops at the breakpoint correctly for the first time, but when I try to start project again, It will say that project is running, but it doesnt work (wdt LED not blink and I cannot ping at the board) and of course it will not stop at the breakpoint anymore. When I kill debug session, CW says that apps is still running, but as I said de facto it isnt true. If I start the debug session again, it works well for the first time again, but just for the first stop. I tried to change optimize for lower level but it doesnt help.

Also when I add a file myTask with fnMyTask at the project and try to debug it in the simulator, VS says there are missing _fnMyTask. I dont know where I have to add it. If I add some macros or consts, I can manage to correct errors (missing macros or consts), but not with new functions. Maybe I used wrong way to add the file in the proj...I create empty file myTask.c and then add it in the project. Next step I create function and write some code there. Funny is, that in CW and 52335DEMO it works well (but with debug problems I described above). Anyone have a idea or solution?

Rad

Pages: [1]