Author |
Message |
Topic: Is it possible to use a Bootloader via USB to 2 pics? |
matt1971
Replies: 3
Views: 5230
|
Forum: General CCS C Discussion Posted: Wed Nov 12, 2008 7:03 am Subject: Is it possible to use a Bootloader via USB to 2 pics? |
The communication seems "reasonably" straightforward. But what about timing. For the PIC18F4553 connected to the PC via USB, this is fine. But once this is programmed, this will take a few s ... |
Topic: Is it possible to use a Bootloader via USB to 2 pics? |
matt1971
Replies: 3
Views: 5230
|
Forum: General CCS C Discussion Posted: Wed Nov 12, 2008 4:05 am Subject: Is it possible to use a Bootloader via USB to 2 pics? |
has anyone managed to get a piar of pics programmed via a single USB connection? I have two pics which currently "talk" via i2c, one is an 18F4553 and the other an 18F4650. The 18F4553 can ... |
Topic: PIC18F4685 - which CAN header? |
matt1971
Replies: 1
Views: 4959
|
Forum: General CCS C Discussion Posted: Sat Nov 08, 2008 2:55 pm Subject: PIC18F4685 - which CAN header? |
Which is the best header file to use with a PIC18F4685 for CAN ? I'm using the ECAN module direct, so no use of any MCP* devices. Is the can-18xxx8.h compatible, or is 18F4580.h better ? Or do neither ... |
Topic: SD Card / FAT offset question |
matt1971
Replies: 8
Views: 10720
|
Forum: General CCS C Discussion Posted: Sun Nov 02, 2008 6:46 am Subject: SD Card / FAT offset question |
Having done further tests on this using flexhex, it seems that mmcd.c library looks only at the "Physical" layer (obvious really), and that the "real" boot sector needs to be read ... |
Topic: SD Card / FAT offset question |
matt1971
Replies: 8
Views: 10720
|
Forum: General CCS C Discussion Posted: Sun Nov 02, 2008 6:26 am Subject: SD Card / FAT offset question |
I've tried a number of different #USE_SPI settings and none seem to alter that I dont read the correct values from the SD Card. the "FORCE_HW" isnt supported in 4.057
I'm guessing the onl ... |
Topic: SD Card / FAT offset question |
matt1971
Replies: 8
Views: 10720
|
Forum: General CCS C Discussion Posted: Sat Nov 01, 2008 2:18 pm Subject: SD Card / FAT offset question |
Thanks for both your help! I'll investigate further. I still dont think the mmcsd.c driver is working properly though. |
Topic: SD Card / FAT offset question |
matt1971
Replies: 8
Views: 10720
|
Forum: General CCS C Discussion Posted: Sat Nov 01, 2008 4:49 am Subject: SD Card / FAT offset question |
Well, if I read from the SD card using mmcsd_read_data, my offset is an int32 based value, starting at 0. When I use this function and read the first 5 bytes I get :
EB 58 90 4D 53 44 4F 53 35
W ... |
Topic: SD Card / FAT offset question |
matt1971
Replies: 8
Views: 10720
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 8:40 pm Subject: SD Card / FAT offset question |
I have an SD card, formatted FAT16 on a PC. I'm just doing some tests on read/writes to it and one of the tests is to find the volume name on the card.
When I search for the volume name ('MYDATA') ... |
Topic: Weird MMC/SD FAT error |
matt1971
Replies: 2
Views: 4409
|
Forum: General CCS C Discussion Posted: Thu Oct 30, 2008 3:01 pm Subject: Weird MMC/SD FAT error |
Presumably then, this is a bug in the fat.c library CCS supply. I'm on compiler 4.057 |
Topic: Weird MMC/SD FAT error |
matt1971
Replies: 2
Views: 4409
|
Forum: General CCS C Discussion Posted: Thu Oct 30, 2008 2:49 pm Subject: Weird MMC/SD FAT error |
I'm using the fat.c library supplied with PCH and I appear to be able to write files to an SD Card. But I cannot see those files when I put the SD card in my PC. I can create files from the PC and not ... |
Topic: PCH / MPLAB Linker problems |
matt1971
Replies: 4
Views: 6776
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 11:51 am Subject: PCH / MPLAB Linker problems |
I tend to agree. I used their IDE and really didn't like it at all. MPLAB isn't brilliant, but it certainly better than the CCS one. And infinitely cheaper! |
Topic: PCH / MPLAB Linker problems |
matt1971
Replies: 4
Views: 6776
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 11:36 am Subject: PCH / MPLAB Linker problems |
Great, so don't actually do it in a logical manner, do it in a quirky "CCS" manner.
Maybe that explains why their shipped files often don't compile and why eventually you end up rewriting ... |
Topic: PCH / MPLAB Linker problems |
matt1971
Replies: 4
Views: 6776
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 11:11 am Subject: PCH / MPLAB Linker problems |
I've decided to split my source into separate .c/.h files and before doing this I'm trying to build the MCU project example given by CCS.
Everything compiles, but the linker fails ...
Clean ... |
Topic: MCP2510 warning, when generating timings for CAN? |
matt1971
Replies: 6
Views: 7423
|
Forum: General CCS C Discussion Posted: Sun Oct 26, 2008 4:34 pm Subject: MCP2510 warning, when generating timings for CAN? |
Thanks, I will try that first and see how I get on. I am new to CAN and may I ask another quick question. The PIC I'm using is an 18F4685, which uses ECAN, the display I want to talk to is CAN 2.0B. I ... |
Topic: MCP2510 warning, when generating timings for CAN? |
matt1971
Replies: 6
Views: 7423
|
Forum: General CCS C Discussion Posted: Sun Oct 26, 2008 3:57 pm Subject: MCP2510 warning, when generating timings for CAN? |
I'm currently trying to interface a PIC18 based datalogger to a CAN based automotive display. This requires messages to be sent at 1Mbit. I'm currently using a PIC18F4685 at 20MHz, with an MCP2551, bu ... |
|