Search found 51 matches

by john.broderick
07 Oct 2021 14:08
Forum: mikroC PRO for PIC32 General
Topic: short FAT32_Dev_Read_Sector();
Replies: 6
Views: 1911

Re: short FAT32_Dev_Read_Sector();

OMG Whilst testing my own initialisation on a 2Gig SD card today, 07/10/21, I thought I would try a 2Gig card formatted to FAT32 since the boot process is the same for small cards. Of course it worked. I then tried the FAT32_Dev_Read_Sector(0,dataBuffer); with zero init. It worked. So the so called ...
by john.broderick
05 Oct 2021 13:30
Forum: mikroC PRO for PIC32 General
Topic: short FAT32_Dev_Read_Sector();
Replies: 6
Views: 1911

Re: short FAT32_Dev_Read_Sector();

Sorry to confuse you radug.


Jump to bottom post of mine.
by john.broderick
04 Oct 2021 15:49
Forum: mikroC PRO for PIC32 General
Topic: short FAT32_Dev_Read_Sector();
Replies: 6
Views: 1911

Re: short FAT32_Dev_Read_Sector();

Thank you for your time radug. I have tried it and all I get is the address of the databuffer. If I look at 512 bytes at that address, I get the address 512 times or get the address + x 512 times. The 512 bytes of the buffer are all zeros. I believe the fat16 was similar except it worked fine. "unsi...
by john.broderick
01 Oct 2021 16:14
Forum: mikroC PRO for PIC32 General
Topic: short FAT32_Dev_Read_Sector();
Replies: 6
Views: 1911

short FAT32_Dev_Read_Sector();

Hi again, Hoping this is an easy question for some. I am trying to use the FAT32 library for the first time. Jump to my last post! SDCARD = FAT32_Init(); returns a 0 which means it must be working. I am trying to read the boot sector using FAT32_Dev_Read_Sector(0,dataBuffer[x]); The system hangs if ...
by john.broderick
07 Dec 2020 20:45
Forum: mikroC PRO for PIC32 General
Topic: EBI Chip Select is on (High) when it should be off (Low)
Replies: 5
Views: 1927

Re: EBI Chip Select is on (High) when it should be off (Low)

I see the M-Class is Microchip's newer core I have found the registers relating to the MMU and TLB on page 62 of the data sheet 3.7 M-Class Core Configuration Typing something like this causes an error but the compiler still compiles. CP0_SET(0,0x80240480); CP0_SET (const char reg/regfield, unsigned...
by john.broderick
07 Dec 2020 13:45
Forum: mikroC PRO for PIC32 General
Topic: EBI Chip Select is on (High) when it should be off (Low)
Replies: 5
Views: 1927

Re: EBI Chip Select is on (High) when it should be off (Low)

Thank you Filip, The DMA example you pointed me to is an odd example, Turn on 3 leds via 1 k resistors with DAM & a Timer and do nothing else. Exactly what voltage is the Pic lol. I mentioned previously, the DMA is the easy bit, it's the EBI that is not so straightforward. The DMA is doing more than...
by john.broderick
04 Dec 2020 13:32
Forum: mikroC PRO for PIC32 General
Topic: EBI Chip Select is on (High) when it should be off (Low)
Replies: 5
Views: 1927

Re: EBI Chip Select is on (High) when it should be off (Low)

Hi Filip, No still not working but thank you for your interest. I have a tonne of issues and not sure if it's due to the IDE. The DMA seems to pull the chip select low but I am still testing. One issue is that the data from the SRAM seems to be just a low byte of PMDIN, not a full 16 bits and that i...
by john.broderick
02 Nov 2020 23:58
Forum: mikroC PRO for PIC32 General
Topic: EBI Chip Select is on (High) when it should be off (Low)
Replies: 5
Views: 1927

EBI Chip Select is on (High) when it should be off (Low)

Can anyone help with my problem. I have implemented the EBI on a Pic32MZ2048efh144, of course it doesn't work so I am checking the basics first. If I try and read or write to the SRAM, the EBI CS0 goes High, the SRAM CS is active low as are all the SRAM chips I have looked at. Trying to invert the p...
by john.broderick
15 Oct 2020 13:02
Forum: mikroC PRO for PIC32 General
Topic: TYPO / Spelling Mistake in Pic32MZ2048 defs
Replies: 0
Views: 728

TYPO / Spelling Mistake in Pic32MZ2048 defs

There is a typo in the 'defs' for the Pic32MZ2048ecm100, just on the Pic I was using, not the others lol. There is a register one can use when implementing the internal temperature sensor, which is how I found it. The register const register unsigned short int RQCONVRT = 29; it should read const reg...
by john.broderick
15 Oct 2020 12:16
Forum: mikroC PRO for PIC32 General
Topic: PMDIN (PMP PORT WITH DMA) DMA
Replies: 0
Views: 708

PMDIN (PMP PORT WITH DMA) DMA

Hi, I'm looking for some support or help or a pointer if I'm doing something wrong. I'm on the verge of understanding DMA on a Pic32. I got the DMA to transfer a jpeg of 45000 bytes to an empty buffer, it worked. If I transfer say 2 bytes from Port C to another physical address, I get all the correc...
by john.broderick
20 Mar 2018 10:22
Forum: mikroC PRO for PIC32 General
Topic: PIC32 MZ 2048 EFH 144 Secondary Oscillator Not Working- Fix
Replies: 1
Views: 1399

PIC32 MZ 2048 EFH 144 Secondary Oscillator Not Working- Fix

How long should it take for a secondary oscillator to become stable? I have the new MCU card with the Pic32 MZ 2048 EFH 144 The chip would hang when turning on from cold. I put some bits on a TFT to check the secondary oscillator. Mine seems to take 3 minutes or more to start, sometimes it doesn't. ...
by john.broderick
19 Mar 2018 23:40
Forum: mikroC PRO for PIC32 General
Topic: PIC32MZ1024 System PLL
Replies: 3
Views: 1773

Re: PIC32MZ1024 System PLL

Hi all, I can also confirm the following- If you turn on the secondary oscillator to use with the RTCC (as an example) the secondary clock can take over 1 minute to warm up. Yes over one minute. I'll be asking is this correct. So in my case, I had to stop my GPS from updating the RTCC until the seco...
by john.broderick
19 Mar 2018 13:22
Forum: mikroC PRO for PIC32 General
Topic: New Pic32MZ_2048_EFH_144 is a step in the wrong direction
Replies: 10
Views: 3707

Re: New Pic32MZ_2048_EFH_144 is a step in the wrong directio

Thank you Filip

You have been most helpful.

PS, I could not check for exceptions because my debugger does not work with this chip.
My IDE can't find the device.
Thank you again.
by john.broderick
18 Mar 2018 23:26
Forum: mikroC PRO for PIC32 General
Topic: New Pic32MZ_2048_EFH_144 is a step in the wrong direction
Replies: 10
Views: 3707

New Pic32MZ_2048_EFH_144 is a step in the wrong direction

Hi Again, More bugs to report. Try this in a new project float value = 0.1047 void InitTimer2_3(){ T2CON = 0x8008; T3CON = 0x0; TMR2 = 0; TMR3 = 0; T3IP0_bit = 1; T3IP1_bit = 1; T3IP2_bit = 1; T3IF_bit = 0; T3IE_bit = 1; PR2 = 57600; PR3 = 1525; } void Timer2_3Interrupt() iv IVT_TIMER_3 ilevel 7 ics...
by john.broderick
15 Feb 2018 12:56
Forum: mikroProg™ programmer and debugger
Topic: Cannot link to my MikroProg
Replies: 1
Views: 1415

Re: Cannot link to my MikroProg

I had the same problem years ago.

Reinstall the Mikroprog software (latest 2.6.0) and reinstall the correct driver when prompted.
The driver can be a bugger to get right (sometimes)

Go to advanced search