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
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?
Dear Sir,
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...
Regards Thiru N
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
.hex and .bin are purely to do with files on the host system (PC, or whatever).
It's entirely up to you how you transfer the data from the PC to the target...
Yes i'm transferring .bin file from PC to target through serial port (file transfer)
Thiru