CAN SPI with USB-Bootloader

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
Pluto
Posts: 8
Joined: 10 Jan 2019 11:49

CAN SPI with USB-Bootloader

#1 Post by Pluto » 24 Jul 2020 21:30

I am using MIKROE-647 card with USB Bootloader.
I connected to the PIC 18F2550, the CAN-SPI module
MCP-2515.
When I upload my HEX file via Bootloader, a warning message "hex file contains code over device bootloader area" appears.
Is it necessary to redirect CAN buffers?
I hope I explained myself, but don't hesitate to ask me for more details.
Excuse me.

Pluto
Posts: 8
Joined: 10 Jan 2019 11:49

Re: CAN SPI with USB-Bootloader

#2 Post by Pluto » 25 Jul 2020 17:07

I add an element.
The problem is isolated to the addressing of:
CANSPIInitialize
CANSPIWrite
CANSPIRead

I currently have the following offsets for the USB communication:
unsigned char readbuff [64] absolute 0x500; // Buffers should be in USB RAM, please consult datasheet
unsigned char writebuff [64] absolute 0x540;

Pluto
Posts: 8
Joined: 10 Jan 2019 11:49

Re: CAN SPI with USB-Bootloader

#3 Post by Pluto » 26 Jul 2020 16:24

Hi everyone, finally solved the problem.
The warning message "hex file contains code over device bootloader area" was caused by insufficient space in ROM.
I only had more than 9.8% of free space.
Tip: when the message in question appears, remember to check the space available in ROM. Never go down too much. Currently doing some optimizations, there is 49.8% of free space.
Regards :D

Post Reply

Return to “User Projects”