flash offset programming (orgall)

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
nicocuc@outlook.fr
Posts: 3
Joined: 23 Nov 2023 09:20

flash offset programming (orgall)

#1 Post by nicocuc@outlook.fr » 23 Nov 2023 09:27

Hi, in order to use a bootloader from brushelectronics, i have to reserve 0 to F and F0 to 1BFF, so i put an orgall at main in order to offset all to 0x1C00, but when i see the hex file, i notice that there are bytes from 0 to 70. And after uploading program with bootloader, the program don't work (it resets when set interrupt bits). What i want to do is to reserve from 0x00008 to 0x0000F.

How can i do this ?

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: flash offset programming (orgall)

#2 Post by IvanJeremic » 23 Nov 2023 11:18

Hi,

Can you tell me what compiler and what hardware you are using?

Regards,

Ivan.

nicocuc@outlook.fr
Posts: 3
Joined: 23 Nov 2023 09:20

Re: flash offset programming (orgall)

#3 Post by nicocuc@outlook.fr » 23 Nov 2023 11:25

It is on pic18f67k22 and mikroc or mikrobasic compiler

nicocuc@outlook.fr
Posts: 3
Joined: 23 Nov 2023 09:20

Re: flash offset programming (orgall)

#4 Post by nicocuc@outlook.fr » 23 Nov 2023 14:22

i use pic 18f67k22 and mikroc and mikrobasic

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: flash offset programming (orgall)

#5 Post by IvanJeremic » 29 Nov 2023 08:32

Hi,

Sorry for the delay, you can take a look at our bootloader example for pic18f87k22 (it shares the datasheet with pic18f67k22) i have attached the example and the datasheet below.
https://ww1.microchip.com/downloads/aem ... 09960F.pdf
bootloader.rar
(2.33 KiB) Downloaded 14 times
Regards,

Ivan.

Post Reply

Return to “mikroC PRO for PIC General”