Search found 26 matches
- Thu Jan 24, 2013 6:28 pm
- Forum: Development and Feedback
- Topic: USB Mass Storage Device
- Replies: 112
- Views: 66303
Re: USB Mass Storage Device
Hi, I am playing a bit with USB Mass Storage and it works out of the box...but I have some questions :) To be noted that I tried everything on a P407 board tweaked to have the SD card operating in SDIO mode instead of SPI. So, when I read/write some files from the micro-SD card (4GB SDHC, FatFS) thr...
- Thu Jan 24, 2013 10:53 am
- Forum: STM32 Support
- Topic: STM32P407: usbStart() not working
- Replies: 2
- Views: 3357
Re: STM32P407: usbStart() not working
Thank you for the hint, and sorry for the late response
I've finally got some time to work on this and the problem was elsewhere... I just forgot to initialize properly some event sources...
I've finally got some time to work on this and the problem was elsewhere... I just forgot to initialize properly some event sources...
- Tue Jan 22, 2013 11:57 am
- Forum: User Projects
- Topic: STM32F407 flash library
- Replies: 10
- Views: 15211
Re: STM32F407 flash library
Hi, To use this library will I have to alter my linker and startup file? Did you have any example? Thanks, Wagner Sartori Junior Sorry for the delay, I didn't noticed your message... You don't have to modify your linker script to read/write the flash memory, but it could be a good idea though. For ...
- Tue Dec 18, 2012 11:49 am
- Forum: STM32 Support
- Topic: STM32P407: usbStart() not working
- Replies: 2
- Views: 3357
STM32P407: usbStart() not working
Hi, I'm trying to use the USB OTG (HS) of my Olimex STM32P407 board but calling usbStart(&USBD2, &myconf) never returns. In otg_core_reset() (ChibiOS/os/hal/platforms/STM32/OTGv1/usb_lld.c, line 137), the core reset loop never ends: while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0) Any idea? ...
- Mon Dec 10, 2012 6:39 pm
- Forum: User Projects
- Topic: STM32F407 flash library
- Replies: 10
- Views: 15211
Re: STM32F407 flash library
I am glad it could be helpful to someone else :) Storing data into internal flash memory is one of my two goals indeed :) However, a think a slightly higher level API could be use to ease that but it is quite application specific. This is mainly due to the f407 fancy flash memory layout with sectors...
- Mon Dec 10, 2012 2:36 pm
- Forum: General Support
- Topic: Howto saving Data in Flash in Cortex M3/M4
- Replies: 25
- Views: 19654
- Mon Dec 10, 2012 2:34 pm
- Forum: User Projects
- Topic: STM32F407 flash library
- Replies: 10
- Views: 15211
STM32F407 flash library
Hi, I finally had time to "finish" a flash library for the STM32F407. The code is available at: https://github.com/tegesoft/flash-stm32f407 The library allows to erase sectors and read/write data. A helper function allows to flash an IHex file (almost like in the original mabl's work). The...
- Mon Dec 10, 2012 1:38 pm
- Forum: General Support
- Topic: Howto saving Data in Flash in Cortex M3/M4
- Replies: 25
- Views: 19654
Re: Howto saving Data in Flash in Cortex M3/M4
Hi ! I finally had time to "finish" the flash library for the STM32F407. The code is available at: https://github.com/tegesoft/flash-stm32f407 The library allows to erase sectors and read/write data. A helper function allows to flash an IHex file (almost like in the original mabl's work). ...
- Wed Nov 21, 2012 9:28 am
- Forum: General Support
- Topic: Howto saving Data in Flash in Cortex M3/M4
- Replies: 25
- Views: 19654
Re: Howto saving Data in Flash in Cortex M3/M4
I found the flash programming manual yesterday with all the needed info. I've started to port the p107 bootloader to the p407 but it still a work in progress. I'll publish the code when it'll be ready as I will appreciate any comment on the code since I'm not used to embedded programming yet :) More...
- Mon Nov 19, 2012 4:26 pm
- Forum: General Support
- Topic: Howto saving Data in Flash in Cortex M3/M4
- Replies: 25
- Views: 19654
Re: Howto saving Data in Flash in Cortex M3/M4
@mobyfab: thanks for the tips :) Using wear leveling seems to be a good idea even if the user should not change the settings that often! @mabl: I've looked at your code and it seems quite clear indeed. I'm trying to port it to the STM32F407 but some registers are gone (for example the FLASH->AR) and...