Search found 19 matches

by mrk89
23 Apr 2022 11:31
Forum: mikroC PRO for PIC General
Topic: PIC and project info programmatically
Replies: 1
Views: 530

PIC and project info programmatically

Hi Guys, is there the possibility to read programmatically the MCU family, the MCU type, the MCU ID and so on, with some functions inside the firmware? I'm writing a "standard" firmware that will works with PIC18F2550 and PIC18F4550, so I would like to know how to automatic recognize the pic used. S...
by mrk89
23 Apr 2022 00:08
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1032

Re: 18F BOOTLOADER AND FW INFO

Can someone explain me why the first code is not working (variable[] Absolute 0xnnnn;), but it will works adding a pointer in the main? Yes, me! :roll: The problem here is that if I declare a constant that's not used in the firmware, the compiler automatically remove it... :shock: So I need to use ...
by mrk89
19 Apr 2022 06:47
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1032

Re: 18F BOOTLOADER AND FW INFO

Hi Guys, thank you for your very precious help. I think I'm done, but didn't test it on a phisical device yet. This is how I fill the information I need to transmit to the PC along with the BootInfo (BOOTLOADER CODE): static void SendBootInfo() { int num=0; typedef struct { char fArray[sizeof(TBootI...
by mrk89
14 Apr 2022 20:18
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1032

Re: 18F BOOTLOADER AND FW INFO

Hi Filip, What happens if you replace NO NAME with your custom name ? it works, so my name is showed. But that's not the problem, I'm going to explain it better... What I'm trying to do is something like this: In the bootloader //I upload the bootloader with blank DEVICE_NAME char DEVICE_NAME[40]={0...
by mrk89
11 Apr 2022 21:58
Forum: mikroC PRO for PIC General
Topic: 18F BOOTLOADER AND FW INFO
Replies: 6
Views: 1032

18F BOOTLOADER AND FW INFO

Hi guys, I loaded the bootloader into my PIC18F2458 and it works well! Now I would like to add the information of the firmware loaded into the PIC to the Bootloader info record in the config.c file. I would like to replace the "DEVICE_NAME" everytime I upload a new firmware using the bootloader. Can...
by mrk89
30 Aug 2021 12:10
Forum: mikroC PRO for PIC General
Topic: Make my own HID Bootloader (PC and PIC side)
Replies: 2
Views: 665

Re: Make my own HID Bootloader (PC and PIC side)

Thank you,
it is a good hint from where to start my application.

If anyone else have something it would be very appreciated.

Now I'm modifing the PIC FW to implement an encription/decription process.

Marco
by mrk89
26 Aug 2021 12:20
Forum: mikroC PRO for PIC General
Topic: Make my own HID Bootloader (PC and PIC side)
Replies: 2
Views: 665

Make my own HID Bootloader (PC and PIC side)

Hi Guys, I'm trying to figure out how to make my own USB HID bootloader. I've no problems making any HID device, but it's the first time I'm working with Bootloaders. My goal is to make it on PIC side and on PC side using visual studio. Is there anything out there from where to start for? Can you pl...
by mrk89
25 Jan 2021 12:59
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: HID USB DEVICE WITH PIC24F
Replies: 2
Views: 1325

Re: HID USB DEVICE WITH PIC24F

Hello Filip,
have you tried it?
I'm asking because in the past some examples weren't working.

Thank you, I'll give it a try

Marco
by mrk89
24 Jan 2021 19:20
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: HID USB DEVICE WITH PIC24F
Replies: 2
Views: 1325

HID USB DEVICE WITH PIC24F

Hi guys, I made a lot of USB HID Devices like joystick, mouse ecc.ecc... using PIC18F. Now, I need a bigger uC with many I/O, and I'm trying to use a PIC24FJ64GA108. I know it's possible, but could someone explain me how to do that? Could you share some code with me if you have already done that? Th...
by mrk89
22 Dec 2020 09:06
Forum: mikroC PRO for PIC General
Topic: Encryption/Decryption on PIC 18F
Replies: 1
Views: 666

Re: Encryption/Decryption on PIC 18F

Hi guys,
I succed in doing what I was trying to do.

There were different settings between PC side encryption and PIC side decryption.

Thank you
by mrk89
18 Dec 2020 17:35
Forum: mikroC PRO for PIC General
Topic: Encryption/Decryption on PIC 18F
Replies: 1
Views: 666

Encryption/Decryption on PIC 18F

Hi guys, I hope someone will be able to help me. I made a lot of HID devices connected to my own programmed .NET softwares, so I've any problem doing this. Now I would like to encrypt a 16 byte string using AES256(ECB), send it to the PIC through the USB and decrypt the string inside the PIC. I foun...
by mrk89
20 May 2020 12:11
Forum: mikroC PRO for PIC General
Topic: Two (or more) HID devices in one only PIC18F
Replies: 0
Views: 621

Two (or more) HID devices in one only PIC18F

Hi guys, I have done an HID Joystick with analog and digital input and works well with windows. I'm able to read the buffer that the PIC sends to the PC using a VB.net software I made, so I'm able to read the values of the ADC and the state of the buttons. Is it possible to write some value to the j...
by mrk89
17 Nov 2017 01:59
Forum: mikroC PRO for PIC General
Topic: log(double) is not working
Replies: 2
Views: 987

Re: log(double) is not working

Hello, thank you for your fast reply. The code I posted is a little piece of a bigger project that has an arduino and a PIC. They shares data each other using half duplex RS422 while the PIC communicates with three LTC6802 and an MCP3202 using SPI. I tried almost everything to undestand the problem,...
by mrk89
14 Nov 2017 22:27
Forum: mikroC PRO for PIC General
Topic: log(double) is not working
Replies: 2
Views: 987

log(double) is not working

Hi all, I have a problem, I don't know why, and I don't know how to solve it. I'm trying to read an NTC resistor, but I get an error when I use the log function. The uP is a PIC18F4550 and library C_Math is selected, and I'm using MikroC Pro for PIC 6.6.3 This is the code: V_int=((temp[0] | (temp[1]...
by mrk89
26 May 2015 08:32
Forum: User Projects
Topic: Is the compiler not working properly? Strange .hex file
Replies: 2
Views: 2288

Is the compiler not working properly? Strange .hex file

Hi all, I've downloaded a project from LibStock of an HID keyboard. I'm using uC PRO 6.0.0 as compiler with PICkit 2 and nothing is working... :( The project (zip file) I've downloaded has already a .hex file ready to be wrote on PIC. When I try to modify the project (only the clock frequency), the ...

Go to advanced search