Search found 195 matches

by liak
Thu Apr 02, 2009 2:58 pm
Forum: Compiler
Topic: Bootloader, code protection and config fuses
Replies: 9
Views: 5578

Dear dman, That's right. I think the bootloader somehow ignores all the config fuses. I am using the bootloader (MC loader) found which comes with SF. You built your own. And I have heard a few members did theirs. Can you direct me where to get the info ( on how to build one ) or what are the necesa...
by liak
Thu Apr 02, 2009 2:24 am
Forum: Compiler
Topic: Bootloader, code protection and config fuses
Replies: 9
Views: 5578

Dear dman776,

The segment you have quoted I have read before. But this doesn't help me in setting up the code protection. The code protection can be set up easily in ICSP but not in bootloader. That's why I suspect it is not possible with bootloader.

Regards,
Liak
by liak
Wed Apr 01, 2009 2:35 pm
Forum: Compiler
Topic: Bootloader, code protection and config fuses
Replies: 9
Views: 5578

Dear dman776, Thanks for the reply, which is contrary to my believe. Then I must let you examine my settings. I programmed these lines but still I could read and verify the codes from PIC, implying that the code protection is not enabled. Either I have chosen the wrong settings. Please correct: conf...
by liak
Tue Mar 31, 2009 4:34 pm
Forum: Compiler
Topic: Bootloader, code protection and config fuses
Replies: 9
Views: 5578

Bootloader, code protection and config fuses

Dear all,

Just want to clarify one issue. I have been programming my PICs via bootloader. I just want to confirm my suspicious. All config fuses and code protection will not be programmed if I programmed via bootloader. Am I right?

Regards,
Liak
by liak
Fri Mar 13, 2009 4:45 pm
Forum: Compiler
Topic: help with #option and defining bits
Replies: 1
Views: 2048

dear Jerry, I couldn't find reference to the use of @ in this sense either. In the SF manual, @ is the unary operator and points to the address of the particular variable coming after it. But using it at the end of the variable is something not documented at all. I couldn't find it in the help file ...
by liak
Fri Mar 13, 2009 4:24 pm
Forum: Compiler
Topic: Bugs in me or Swordfish?
Replies: 1
Views: 1990

Hi. It looks strange to me. I have never worked with float in SF yet. But let me test it and come back again. The code looks okay.

Regards,
Liak
by liak
Wed Mar 04, 2009 7:22 am
Forum: Compiler
Topic: USB Service questions
Replies: 2
Views: 2297

Dear Toley, Hi. Unfortunately I have not worked with the USB on PIC before. So I cannot offer any help on that. Maybe I can help look up in the datasheet. Regarding your second post. From the Help file in SF: #option BUFFER_SIZE = 64 #option BUFFER_SIZE = 16 In this example, BUFFER_SIZE will become ...
by liak
Wed Mar 04, 2009 7:06 am
Forum: Modules
Topic: SDFilesystem ReadSector()
Replies: 2
Views: 2867

Dear norm,

Thanks. I have checked the standard for SDCard by SanDisk. It would generate error. :oops: wishful thinking and didn't checked the datasheet.

Thanks for the suggestion. I would just skip or dump whatever that is read after the 200bytes.


Regards,
Liak
by liak
Mon Mar 02, 2009 10:39 am
Forum: User Modules
Topic: Maximizing speed and efficiency of MCU
Replies: 14
Views: 9116

Dear Tom,

Nice to hear from you too. :)
This will put David work even harder on his SF version PIC24 as expectation is much, much higher for it then.

Regards,
Liak
by liak
Mon Mar 02, 2009 10:33 am
Forum: Modules
Topic: SDFilesystem ReadSector()
Replies: 2
Views: 2867

SDFilesystem ReadSector()

Dear all, esp Steven, I am trying to modify the ReadSector subroutine in SDFilesystem. I understand that standard read procedure of reading SD card will have to be done in sector of 512bytes. I am wondering if it is possible to read only, say 200 bytes rather than a full 512bytes. Will the SD card c...
by liak
Fri Feb 27, 2009 4:33 pm
Forum: Compiler
Topic: 18f4550 Bootloader and USBCDC String data
Replies: 1
Views: 1879

Dear Drew,

I can only help in question 1. I have no working knowledge on your 2nd question. You can find the SF bootloader for many PIC18s in the subfolder:
>Program Files>Mecanique>Swordfish>MCLoader>LoaderHEX

Regards,
Liak
by liak
Fri Feb 27, 2009 4:16 am
Forum: General
Topic: Hello! Is everyone alright?
Replies: 7
Views: 4890

Dear Steven and David,

Nice to hear from you! :D :D :D

Things have gone too slow that people would have thought the forum is dead. Good to hear that you are all still busy. :lol:

Regards,
Liak
by liak
Thu Feb 26, 2009 11:44 pm
Forum: User Modules
Topic: Maximizing speed and efficiency of MCU
Replies: 14
Views: 9116

Dear Doj and John, Finally completed making all modifications in my variable type handling. I have changed all variables to type byte wherever I can. And you were right, the algorithm is much much more robust now. It is running nearly 40% faster!!! Nothing else is changed except the way data is repr...
by liak
Thu Feb 26, 2009 2:07 pm
Forum: General
Topic: Hello! Is everyone alright?
Replies: 7
Views: 4890

Hello! Is everyone alright?

Dear all, Sorry to put this up. I have regularly visited this forum. Never before has it been so quiet. It makes me worried. Where is everyone? Long vacation or holiday season? Is everyone alright? Maybe the global financial crisis has hit everyone in this business very hard. I hope all my pals are ...
by liak
Fri Feb 20, 2009 1:42 am
Forum: User Modules
Topic: 18F26K20 SD Testing
Replies: 55
Views: 38499

Dear Moki, Welcome to the forum. Yes, you can connect the SD card socket directly to the PIC as shown in the diagram in http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.SDMMCWavPlayer . But care to take note of: 1. the SD card runs on 3.3V as the PIC runs on 5V, 2. you will need to set pu...