Configuration on the field

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 PSoC is able to self program its flash memory.This provides ability to emulate EEPROM within Flash and upgrade the system when it is on the field.How it can be achieved?

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The magic words are "Bootloader" and "Bootloadable Project".

   

The first is a short program that scans after reset a communication interface for having a new program version ready and if so, it stores/programs the new application in flash and starts it.

   

What you additionally need compared to a "normal" project:

   

A mass-storage device (PC, SD-Card for instance)

   

A communication Interface (USBUART, UART, I2C or something alike) to connect the mass-storage to the PSoC

   

Some special precautions to initially program the Bootloader (together with the application) into the PSoC.

   

 

   

Get your kicks here http://www.cypress.com/?rID=51139 

   

 

   

Happy coding

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Some help -

   

 

   

http://www.cypress.com/?rID=41002     I2C Bootlaoder

   

http://www.cypress.com/?rID=56014    Intro

   

http://www.cypress.com/?rID=57561    USB

   

http://www.cypress.com/?rID=50230    Customizing

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

For what is the mass storage device used in a bootloader project?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The mass storage device is needed to store the data to be programmed into the PSoC. There are two kind of data you need:

   

the configuration data that defines the hardware, properties of the hardware and the interconnections. The amount of memory needes is about 5KB.

   

The application program which will be different since the hardware is different.

   

 

   

Have a look at the size of the hex-files to get a feeling what size for the mass-storage-device is needed.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 What if I want to previously store 3 programs in the flash (each for a different sensor)  and choose any one on the fly?Can then the need of mass storage device be eliminated?

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This sounds more like a simple coding problem.

   

 

   

How do you know what sensor is active/connected/being used ? If

   

its a user input, or sensor has a "signature", thats easily solved by

   

simple codeing methods.

   

 

   

Regards, Dana.

0 Likes