What is wrong with the files I posted in the AeroQuad forum http://aeroquad.com/showthread.php?2800-Porting-AeroQuad-code-from-AVR-to-STM32-CPUs&p=41482&viewfull=1#post41482 for you ?
May be add any EEPROM to next Maple platform ?
(24 posts) (9 voices)-
Posted 4 years ago #
-
hmm, not sure why code that compiled fine for Maple/RET6 would not compile for Mini. Did ala's code work for you?
Posted 4 years ago # -
The eeprom code had to be modified due to incompatibilities introduced with libmaple 0.0.12 (removed defines, e.g. __get_bits and several more, some new defines needed to be removed like FLASH_BASE). Also the eeprom code checks the CPU type and did not know about MCU_STM32F103CB.
Posted 4 years ago # -
You can try EEPROM lib for 0.12 from http://akb77.com/g/stm32/maple-eeprom-emulation-library/
Posted 4 years ago # -
ala42 thank you very much!!
" Also the eeprom code checks the CPU type and did not know about MCU_STM32F103CB."That was the problem.. added the MCU_STM32F103CB to the eeprom.h and now its working!! =D
the thing that i dont know now is what page size should i put with the MCU_STM32F103CB. For now i have (uint16)0x400 but i dont know if its right.thank you again!
Posted 4 years ago # -
http://akb77.com/g/stm32/maple-eeprom-emulation-library/
appears to be a dead link now?
any help is appreciated...also i'd love to find a memory map definition such that i can be sure i'm not writing over my codespace/bootspace. Search memory map comes up with nothing in the forums.Thanks!
Posted 3 years ago # -
May be offline somtimes
Posted 3 years ago # -
The the F1 CPUs I moved the two flash pages (1KB or 2KB size depending on the CPU type) needed for the emulation to the $8004000-$8004FFF address range, as the boot loader fits into the 16KB from $8000000 to $8003FFF. The main program start is $8005000.
For the F2/F4 CPUs the 16KB flash pages are at $8008000 and $800C000, main program start at $80010000.Posted 3 years ago # -
You can move EEPROM emulation as you want. Set defines in .h file or initialization. Also you can change codes for your own. Library not a standard so you can modify as needed.
Posted 3 years ago #
Reply
You must log in to post.