CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 17 matches
CCS Forum Index
Author Message
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Tue Jul 07, 2020 10:07 am   Subject: I2C Bootloader PIC16
Hello,

I need some explanation about how work the command "write_program_memory" and what is needed to make it fully work for my PIC16LF1829.

I read the ccs manual carefully and i see ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Fri Jul 03, 2020 2:12 am   Subject: I2C Bootloader PIC16
The i2cget isn't the most important problem i have. It is the i2cset because i need to see that the program memory of the PIC is modified to validate that the bootloader is working fine. I will try to ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Fri Jul 03, 2020 1:19 am   Subject: I2C Bootloader PIC16
As you can see on the following picture, i use this command but the result is not as expected.

The window on the right is the read of the program memory that i made after thoose i2c command.

htt ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jul 02, 2020 9:52 am   Subject: I2C Bootloader PIC16
Those command are provided in linux:

//// +---+------+------+-------------+---+ ////
//// | S | ADDY | CMD | Payload | P | ////
//// ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jul 02, 2020 9:22 am   Subject: I2C Bootloader PIC16
To be more exact: after loading a new program with the bootloader i have this :

Picture of what i read after loading a program:
https://engie-my.sharepoint.com/:i:/p/gd5731/ETwUFkpJZBNCr5ZW3TqhBF8 ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jul 02, 2020 7:47 am   Subject: I2C Bootloader PIC16
I don't have any CCSC.INI file so it should use the default config as you said.
About the i2c, I use linux bash command (i2cset / i2cget).
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jul 02, 2020 6:48 am   Subject: I2C Bootloader PIC16
I use this line to compile my program :
"C:\Program Files (x86)\PICC\ccsc" +FM +Y9 +EA +PE build_bootloader.c
"C:\Program Files (x86)\PICC\ccsc" +FM +Y9 +EA +PE build.c

It mak ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jul 02, 2020 5:33 am   Subject: I2C Bootloader PIC16
I made my bootloader able to start the card. It's working well but now i have another problem.
When i try to modify the rom content with the bootloader command i only replace 8bits in the opcode (in ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Mon Jun 22, 2020 11:51 am   Subject: I2C Bootloader PIC16
I think we do not understand each other.

When I use this command the PIC reset but also my card. I need to keep the system working. i/o must stay at the same state defined in the app when launching ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Mon Jun 22, 2020 8:44 am   Subject: I2C Bootloader PIC16
Thank you, I fix the watchdog as you suggest.

The problem is that i can't reset the PIC. The PIC is holding the CPU reset pin, if the PIC reboot the card will reboot. Consequently If the PIC didn't ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Mon Jun 22, 2020 3:32 am   Subject: I2C Bootloader PIC16
Hello,
Thank you very much for your advice, I follow your instruction but i always have the same error.

When i send my command from UART to start the bootloader the PIC stuck after sending me thi ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Fri Jun 19, 2020 4:26 am   Subject: I2C Bootloader PIC16
Thank you for your answer,
I didn't explain how my card is working so here it is :

I have a PMIC which provide alimentation for my PIC but it need configuration to provide alimentation for a CPU w ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Fri Jun 19, 2020 3:01 am   Subject: I2C Bootloader PIC16
Ok i did some modification to my program, but the problem is that i can't go to bootloader from the application. When i use my UART command to launch bootloader my PIC crash. My trigger is the rs232 c ...
  Topic: I2C Bootloader PIC16
bastirn

Replies: 26
Views: 45901

PostForum: General CCS C Discussion   Posted: Thu Jun 18, 2020 10:32 am   Subject: I2C Bootloader PIC16
Hello, I am using a PIC16LF1829 and ccs PCM V5.090.
I have an application which use I2C master mode.
I am trying to add with this app a bootloader which use the same I2C bus but in slave mode.

I ...
  Topic: Problem using a function pointer
bastirn

Replies: 3
Views: 11070

PostForum: General CCS C Discussion   Posted: Thu Jan 09, 2020 8:49 am   Subject: Problem using a function pointer
Hello,

Thank you for you answer, now there is no more compilation error,
unfortunately it doesn't work as i want ...
Here is the code that i used :


#include <16LF1829.h>
//#device PI ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group