Search found 466 matches

by jumper
11 May 2023 12:33
Forum: mikroC PRO for PIC General
Topic: Comparing UART received text with a pre-defined string
Replies: 10
Views: 1061

Re: Comparing UART received text with a pre-defined string

No no nooooooo If you use more than one character as delimiter then how to you send the OFF command? Can you send M1_ON$ from the pc and get your firmware to send back the received string to the PC with only having $ as delimiter character? If yes then we can move on with trying to compare strings. ...
by jumper
10 May 2023 15:57
Forum: mikroC PRO for PIC General
Topic: Comparing UART received text with a pre-defined string
Replies: 10
Views: 1061

Re: Comparing UART received text with a pre-defined string

Short answer is no. For uart_read_text to work you need these things 1: a string variable to store received data into 2: the message you want to receive MUST have a delimiter. That is a character or characters that will tell the function that the end of message has arrived. In the below example i us...
by jumper
09 May 2023 15:36
Forum: mikroC PRO for PIC General
Topic: Comparing UART received text with a pre-defined string
Replies: 10
Views: 1061

Re: Comparing UART received text with a pre-defined string

LCD_OUT(1,1,"Hello"); //This is displayed correctly indicating the LCD connections are OK. LCD_OUT(2,2,Result); //This is simply ignored without any error or warning, I Don't know why? The reason you think it is a compiler problem is because you did a mistake. Result from strcmp is a numerical valu...
by jumper
09 May 2023 03:22
Forum: mikroC PRO for PIC General
Topic: Comparing UART received text with a pre-defined string
Replies: 10
Views: 1061

Re: Comparing UART received text with a pre-defined string

Hi, I think you have several problems with your code. 1: char uart_rd; This is a byte variable and can not be used to store an entire string consisting of several characters. 2: if (UART1_Data_Ready()) { uart_rd = UART1_Read(); // read the received data, UART1_Write(uart_rd); // and send data via UA...
by jumper
04 May 2023 06:30
Forum: mikroC PRO for PIC General
Topic: How to save 16 bit integer value in 8 bit register
Replies: 2
Views: 642

Re: How to save 16 bit integer value in 8 bit register

Hi, One 16 bit integer value consist of a HIGHBYTE and a LOWBYTE. so one way is to use a 8 Bit variable and store each part of the 16 bit integer at 2 different addresses in the EEPROM for example.. unsigned int REGISTER = 0xABCD; unsigned char DUMMY=0; DUMMY=REGISTER; (this will actually put 0xCD i...
by jumper
17 Apr 2022 09:30
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1030

Re: 18F BOOTLOADER AND FW INFO

and have you tried to add a null character 0x00 in the end of your firmware string to make sure it is zero terminated?

and be aware that strncpy does NOT add a zero termination to the destination string so if you use that in your code.
by jumper
15 Apr 2022 10:18
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1030

Re: 18F BOOTLOADER AND FW INFO

Hi, if you first erase the entire pic, then use a programmer to load the bootloader and make sure the configuration bits are not set for code protection. then read back the entire FLASH and view the hex data and see what is stored at 0x0580. now let the bootloader load the firmware and now read the ...
by jumper
09 Apr 2022 04:56
Forum: mikroC PRO for PIC General
Topic: Programming PIC12LF1552
Replies: 5
Views: 933

Re: Programming PIC12LF1552

Filip, is there any plans to release an upgrade for the mikroprog suit and programmer so we finally get support for all pics that the compilers support with full debugging features or is mikroprog a dead horse and we should all stop beating it to get it to move?
by jumper
26 Jan 2022 07:39
Forum: mikroProg™ programmer and debugger
Topic: slow to start debug
Replies: 3
Views: 1230

Re: slow to start debug

Hi,

Yes with my bigger project entering debugging takes several minutes. If you think it is useful I can email you the zip of the project and you maybe can try? If you think it is useful please give me your email address.
by jumper
21 Jan 2022 06:22
Forum: mikroProg™ programmer and debugger
Topic: slow to start debug
Replies: 3
Views: 1230

Re: slow to start debug

by the way the PIC is running on internal 8 Mhz with x4 PLL =32 MHz and that FQ is also set in the project settings.

and flashing a LED shows that the board is running at the expected FQ
by jumper
20 Jan 2022 14:44
Forum: mikroProg™ programmer and debugger
Topic: slow to start debug
Replies: 3
Views: 1230

slow to start debug

Hi, I.am.using a mikroprog together with mikroc pro for pic and 16f1824 and when i started my project the hardware debug sessions would start up fast. but now when the project is just slightly bigger it takes several minutes to enter the debug session and during that time the mikroprog leds flashes ...
by jumper
22 Dec 2021 02:28
Forum: CODEGRIP programmer and debugger
Topic: CODEGRIP on WIFI
Replies: 1
Views: 949

CODEGRIP on WIFI

Hi, Is the hexfile stored internally in the CODEGRIP or is it received via WIFI each time it should program a PIC? How secure is the transfer protocol for the WIFI connection, is the hexfile sent in plain text or is there any secure protocol that ensures that the hexfile can not be extracted from th...
by jumper
17 Dec 2021 04:21
Forum: mikroC PRO for PIC General
Topic: MikroC Pro falling behind
Replies: 24
Views: 3999

Re: MikroC Pro falling behind

thank you janni for giving this clear answer.

Now I understand!

my code would still not run and I still can not debug using mikroProg but it would have failed in a more modern and colourful IDE.

Merry christmas!
by jumper
16 Dec 2021 12:07
Forum: mikroC PRO for PIC General
Topic: MikroC Pro falling behind
Replies: 24
Views: 3999

Re: MikroC Pro falling behind

Yes, you can do that also if you want @Filip So you mean that the pic57k42 have full support of all built in libraries in PIC AI and mikroProg can debug this pic if I move to NECTO? TFT, FLASH, HW I2C, HW SPI so any code i can run on a PIC18F46K20 will run on the 57K42 with no or minor changes? NEC...
by jumper
15 Dec 2021 07:35
Forum: mikroC PRO for PIC General
Topic: MikroC Pro falling behind
Replies: 24
Views: 3999

Re: MikroC Pro falling behind

I am still waiting for PIC18F57K42 to be supported with all libraries and MikroProg debugging in mikroC PRO for PIC but seems it might not be happening. This PIC a quantum leap in RAM memory compared to what was available before in 8-bit MCU. This device was released a long time ago and is supported...

Go to advanced search