STM32F103VBT6 Flash memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-20 6:27 PM
basically i just want to some simple stuff. write in a variable into the flash memory (permanent) and read it , make sure it is the same .
as i am newbie to micro-controller, and i couldn't get any simple code or example code from the internet or in this forum. so can anyone teach me how to write the code or give me some sample code thx you #stm32-flash- Labels:
-
Flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-21 6:59 AM
Do you ever want to cange the variable in flash from your program or will it always be constant? If always constant then just declre it const e.g.
const int variable_in_flash; printf( ''variable = %d\r\n'', variable_in_flash ); This tells the compiler it will never change which in this case should allow the complier to put it in program memory - flash memory in this case (maybe as part of an instruction etc. but you shouldn't care about that) However if you need to change the variable you will beed to erase a page of flash and then write to flash. Let us know which method you require.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-21 7:51 AM
i couldn't get any simple code or example code from the internet or in this forum
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/flash read and write (urgent)&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=335
There are also manuals for the part, and an application note about programming flash on STM32 parts.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-21 3:13 PM
Cross-post:
http://www.keil.com/forum/19571/
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-21 9:46 PM
error: #147-D: declaration is incompatible with ''void RCC_LSEConfig(u8)'' (declared at line 268 of ''C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_rcc.h'')
i got this error ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-21 11:19 PM
''declaration is
incompatible
with 'void RCC_LSEConfig(u8)''' So use a declaration whichis
compatible with that!!How do you expect anyone to help you resolve that error without seeing the code to which it relates?? Remember that your code is not visible to the forum!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-22 12:43 AM
ops... that one solve it ....
now with something new error.\Release\STM32F10x.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.i am using this exampleC:\Keil\ARM\Examples\ST\STM32F10xFWLib\Examples\FLASH\Program\main.c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-12-31 11:04 PM
Hi Mr K
I have this problem too, could you find any response? Please say me Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-12-31 11:06 PM
my email address : mikebright311@yahoo.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-01 8:52 AM
Be aware that this thread was last tickled around 18 months ago, don't expect a response from the original participants.
State clearly your situation and your problem, and don't assume a METOO kind of problem is exactly the same, or conveys enough detail to be answered by current forum participants.Up vote any posts that you find helpful, it shows what's working..
