I have been working on porting micropython to run on the STM32F429 Discovery board. I have read about others attempting to do so with some limited success:
* http://forum.micropython.org/viewtopic. ... STM32F429i
* http://forum.micropython.org/viewtopic. ... =STM32F429
However, I have gotten past the USB issues by simply making a custom USB cable and connecting it to the header pins PA10, PA11, PA9, 5V, and GND. To enter DFU mode I simply place jumpers across the header pins (VDD and BOOT0) and (PB2 and GND). This works and I am able to program the device with dfu-utils without any issue. The REPL then comes up on my custom USB cable even using either the PYBV10 or STM32F4DISC projects.
My main goal is to try and prove that micropython can utilize the extra 1MB of flash space (vs. the pyboard's STM32F05's flash space) because our current micropython project is running into code space limitations. No matter what I try, the board comes up with the "standard" 96KB of code space (looking like a flash drive in Windows). I have tried modifying the following files:
1. Created a new file "stm32f429.ld" based on "stm32f405.ld" but changed the following lines:
Code: Select all
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x200000 /* entire flash, 2 MiB */
Code: Select all
FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 0x100000 /* sectors 5,6,7,8, 4*128KiB = 512 KiB (could increase it more) */
Code: Select all
#define STM32F405xx
to
Code: Select all
#define STM32F429xx
In this code I also increased the number of blocks (to try and see any sort of increase in code availability of code space).
Code: Select all
...
#elif defined(STM32F429xx)
#define CACHE_MEM_START_ADDR (0x10000000) // CCM data RAM, 64k
#define FLASH_PART1_START_BLOCK (0x100)
#define FLASH_PART1_NUM_BLOCKS (300) // 16k+16k+16k+64k=112k
#define FLASH_MEM_START_ADDR (0x08004000) // sector 1, 16k
#define FLASH_SECTOR_SIZE_MAX (0x10000) // 64k max, size of CCM
Thanks,
- Kyle
P.S. I will attempt to post a reply to this with a photo of my test setup (in case that helps anyone else in the future).