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 support@ccsinfo.com

SD Card Bootloader

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

SD Card Bootloader
PostPosted: Thu May 31, 2018 8:49 am     Reply with quote

I have gotten the SD card bootloader from Brush Electronics. As a side note he is an awesome guy willing to help out with hiccups along the way.

I am using a 24EP256GP206 chip running at 140MHz. I am trying to get the SD card bootloader working on this chip but running into difficulties. The EP chips have different paging and writing compared to other 24 series chips.

The issue is that it seems to be erasing the reset vectors and not replacing them properly when writing with the boot loader. We have worked through some issues where we were overwriting a lot of stuff and not ending up with anything that resembles what its supposed to . Right now the bootloader is staying in tact and it is placing the PGM code into the correct places that it should.

It is placing the bootloader from 0x800 to 0x3FFF.
The PGM is being placed above that i have an #org in my code that is 0x400,0x47FF to make room for the bootloader.

If Brush is around he may be able to better explain than I have. But has anyone had experience with bootloader on 24EP devices? I think its something simple at this point but Brush has been able to help me so far but we are stuck right now. So just looking to see if there is any tidbits we may be missing. I know there is probably not enough info here to go on but I really need to put this to bed. Thank you as always for all your guys help.
temtronic



Joined: 01 Jul 2010
Posts: 9093
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu May 31, 2018 8:59 am     Reply with quote

hmm.. maybe cause it's hot and muggy
but...
The PGM is being placed above that i have an #org in my code that is 0x400,0x47FF to make room for the bootloader.

shouldn't it be 0x4000, and not 0x400 ?
hopefully just a type here and not in the code....
asmallri



Joined: 12 Aug 2004
Posts: 1630
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu May 31, 2018 9:09 am     Reply with quote

temtronic wrote:
hmm.. maybe cause it's hot and muggy
but...
The PGM is being placed above that i have an #org in my code that is 0x400,0x47FF to make room for the bootloader.

shouldn't it be 0x4000, and not 0x400 ?
hopefully just a type here and not in the code....


Curt2go actually means he has an excluded region from 0x0400 to 0x47FF, using the org statement, to prevent the CCS compiler from putting the user application code in the space.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
temtronic



Joined: 01 Jul 2010
Posts: 9093
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu May 31, 2018 10:24 am     Reply with quote

OK, I re-read the OPost...and NOW it makes sense. It just looked to me like he'd had the PGM loaded into the same area as the bootloader.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Thu May 31, 2018 1:49 pm     Reply with quote

what #build is being used on the code to load?.
This is what defines it's reset vectors etc..
asmallri



Joined: 12 Aug 2004
Posts: 1630
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

solved
PostPosted: Sat Jun 02, 2018 11:24 am     Reply with quote

Ttelmah wrote:
what #build is being used on the code to load?.
This is what defines it's reset vectors etc..


The issue has been fixed, it was a datasheet error.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group