is there any external tool that could access EEPROM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-04 7:37 PM
Hi all,
I'm using stm32l152rtc6 with built-in eeprom (8k). I wonder if there's any tool at the host side that allows me to read/write the eeprom other than using ST library code for the mcu? (STM32L1xx_StdPeriph_Lib_V1.2.0\Project\STM32L1xx_StdPeriph_Examples\FLASH\Data_Program) In this way, the administrator could write data to eeprom, while the MCU user could not write but only read.I did some search online, but haven't found a good tool for my purpose. :( Hopefully it could be something like dfu-util. Thanks,Shan- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 7:46 PM
I found that for Atmel user they could use avrdude terminal to dump the EEPROM message. Any ideas for STM32L? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 8:04 PM
Well one could presumably use the System Loader, either via the protocol directly, or with a simple applet to access the EEPROM, or other external memories.
Keil offers the ''STM32L1xx Data EEPROM'' as one of the core appletsUp 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
‎2014-05-05 8:58 PM
Thanks clive,
I'll download Keil and give it a try. Could you also point me to any applets for linux users as well if possible? Really appreciated.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-06 6:05 AM
I don't know if this is useful for you, but for my STM32F103 dev board I use USB-to-RS232/UART communication on the USART1 pins. I have to set a switch (Boot0) and reset the board so that the firmware is in bootloader mode and doesn't start the user code. Then I can flash my code with
https://code.google.com/p/stm32flash/Works on Mac OS X, should work as well on Linux.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-06 2:13 PM
There is an STM32 ST-link Utility available. It also supports the command line interface (easy to integrate with makefile)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-06 7:47 PM
Thanks a lot, Brutte!
Didn't notice that stlink has such functionality. I tried their software on Windows and am able to read/write EEPROM data. I'll test it on Linux as well. Really appreciated. :)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-06 11:10 PM
Hi all,
With ST-LINK Utility, I can read/write EEPROM using ST_LINK_CLI.exe on Windows.- ST_LINK_CLI.exe -w32 0x08080000 0x77FF
- ST_LINK_CLI.exe -r8 0x08080000 10
https://github.com/texane/stlink
on Linux and was able to read EEPROM using st-flash.- st-flash read eeprom.hex 0x08080000 10
However, when I try to write the EEPROM with st-flash, there was an error:
[root@localhost stlink]$ st-flash write eeprom.hex 0x080800002014-05-07T14:03:24 INFO src/stlink-common.c: Loading device parameters....2014-05-07T14:03:24 INFO src/stlink-common.c: Device connected is: L1 Medium-Plus-density device, id 0x100864272014-05-07T14:03:24 INFO src/stlink-common.c: SRAM size: 0x8000 bytes (32 KiB), Flash: 0x40000 bytes (256 KiB) in pages of 256 bytesstlink_sram_flash() == -1It seemed like address 0x08080000 (EEPROM starting address) is not accessible by st-flash.I wonder if there is similar stlink tool like ST_LINK_CLI.exe in Linux? Or did I do anything wrong?Thanks.