We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear Sir/Madam,
I'm using At89C51Ed2 controller based controller board. In that board has the following interfaces
1. External Flash of 64Kb 2. External SRAM of 64Kb 3. Digital I/O 4. ADC 6. Display (LCD display)
Platform: Windows Xp3. Tools: Keil and Flash Programmer Flip.
My question is, Is there any potability to flash external Flash memory by using Flip software?
Can i execute code from external flash? is there any setting as per data sheet EA have to configure.
Regards , Thiru N
Note that FLIP is an Atmel product - so you need to direct questions about it to Atmel:
www.atmel.com/.../FLIP.aspx
They give a list of supported devices:
"
The microcontroller behaves as described in the datasheet - so, yes, you do have to do as the datasheet says!
You also need to study the documentation (in particular, the schematic) for your specific "controller board" to see what support (if any) it offers, and and what settings (if any) it requires...
Dear Sir,
I dont know, whether is possible to flash program to external flash using FLIP already i asked the question, still i didn't get reply.
But, i did by my own method. i written a firmware driver to write code to external flash.
Means, initially i will run this driver in internal memory. the application code executable .bin file (means .hex file converted to .bin by using hex2bin.exe which is provided by keil) will be write to external flash at 0x0000h by receiving through serial port by putting EA pin to high(as per data sheet). and next power on i will make EA pin low (its jumper setting).
its not working..
Is this correct method...?
If not, please suggest me.
Regards Thiru N
That's the kind of idea.
Remember that an 8051 cannot write to its CODE memory space - so you you will need some other way to access your flash to be able to write to it...
You will have to study the Flash datasheet to find the programming algorithm for it...
Dear sir,
Yes i followed flash (SST39SF010A-32TSOP) command sequence while writing to flash.
the same method is working for AT89S52(8kb internal memory) in the same board, but customer requirement is, they need 64kb internal memory, so i need to prove on this controller.
The reply on topic "external Vs internal memory" on this forum says, need to set BLJB bit . In data sheet i didn't find the address for this bit or congaing register(Hardware Security Byte (HSB)) address. how to set this bit through software?
Regards Thiru n
the ED2 has 64k of internal flash, why the external flash?
Erik
Its customer requirement, they need both memories and has to execute program from both memories...
Shouldn't the customer require a functionality, and not a specific means to implement that functionality? Isn't it the developers role to be the expert when selecting good ways to implement the requested functionality?
Its need to be implemented, so i'm trying to implement and stuck at this point, i need help to resolve this issue and also i'm new to controllers.
How to set BLJB bit or HSB through software?
Please suggest me if you have any good method to resolve this issue...
Its need to be implemented does not answer why?
if we know why, we might have an idea how to help you, just "I meed external as well as internal flash can mean anything"
Your question is correct, but we cannot refuse the customers needs right? what ever they need we suppose to give. i hope you are understood.
"... and not a specific means to implement that functionality? Isn't it the developers role to be the expert when selecting good ways to implement the requested functionality?"
I guess it depends whether the customer is actually seeking a designer, or simply outsourcing coding...?
Whatever it may be, now have to implement this feature. we are not out sourcing the software. have any idea?
the problem you have is that !CE is only checked at reset.
to switch between internal and external memory, you will need an external flip-flop.
PS your customer is crazy, EDUCATE HIM. (s)he evidently does not have any idea that todays '51 derivatives have plenty internal code storage
I meant your customer is outsourcing the coding to you.
Thank you,
>>to switch between internal and external memory, you will need an external flip-flop
its already taken care.
I need to convert .hex file to .bin?, to execute from external flash ? or is there any other method to do....?
Have any example codes which are running from external flash? if so please provide me.
>>PS your customer is crazy, EDUCATE HIM
I tried to convince him, but he is not accepting. unfortunately have to implement it.
No, we have prove our board, its working with external flash also.
Thiru N