Search found 27 matches
- Fri Jun 05, 2015 9:17 pm
- Forum: Development of MicroPython
- Topic: FSMC support strategy
- Replies: 4
- Views: 7369
FSMC support strategy
I've added a basic FSMC module to micropython for a custom board with external SRAM. I've exposed a very simple FSMC.send and .recv. They are currently blocking calls not taking advantage of the DMA. I was thinking of taking the spi module and model the FSMC after it for consistency - a send and rec...
- Mon Jun 01, 2015 2:32 am
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
The only real difference I could find - I copied the wrong interrupt handler so it read USART5 instead of UART5.
It is working now. Thanks again for your help.
It is working now. Thanks again for your help.
- Sun May 31, 2015 8:34 pm
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
Thanks. Pins.py will be a handy little script. I forgot to mention that I have disabled the SD card as one of the UART5 pins overlaps with it so I have no external filesystem for now. I guess I ran .af() before I initialized the uart before and got fooled into thinking the alternate function wasn't ...
- Sun May 31, 2015 6:32 pm
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
I was assuming from the af() that the pins were not in alternative function mode but it looks like they are. What does the af() function tell me? >>> import pyb >>> pyb.UART(5,115200) UART(5, baudrate=115384, bits=8, parity=None, stop=1, timeout=1000, timeout_char=0, read_buf_len=64) >>> pyb.Pin.boa...
- Sun May 31, 2015 7:09 am
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
1. You need to define both the RX and TX pins in the MICROPY_HW_UART5_PINS macro. 2. You will need to add a UART5 irq handler in stm32f4xx_it.c. 3. You need to create and instance of the UART to set it up: pyb.UART(5, 9600). 1. tx and rx pins for uart5 are on different ports PC12 and PD12. I didnt ...
- Sun May 31, 2015 3:37 am
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
I put the commented out lines back in but the pins still do not get configured for their alternate function. It appears something isn't working in the new code I added to initialize UART5. When I configured the pins manually for their alternate function of uart5 and send bytes to that uart the REPL ...
- Sat May 30, 2015 8:36 pm
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Re: Need some help setting up UART5
It looks like those pins are not getting set to their alternate functions: >>> a=pyb.Pin.board.PD2 >>> b=pyb.Pin.board.PC12 >>> a Pin(Pin.cpu.D2, mode=Pin.IN) >>> b Pin(Pin.cpu.C12, mode=Pin.IN) >>> a.af() 0 >>> b.af() 0 >>> a.af_list() [Pin.AF2_TIM3, Pin.AF8_UART5] >>> b.af_list() [Pin.AF6_SPI3, Pi...
- Sat May 30, 2015 8:02 pm
- Forum: Other Boards
- Topic: Need some help setting up UART5
- Replies: 12
- Views: 10670
Need some help setting up UART5
I am trying to get UART 5 up and running on a custom board. I've made a couple of modifications but when I .read it always returns with no data and when I .write nothing goes out on uart 5. If anyone can point out where I've gone wrong I'd appreciate it. Is there a way to query the pins to see if th...
- Thu May 28, 2015 5:19 pm
- Forum: Other Boards
- Topic: Custom Board Pin Assignment
- Replies: 6
- Views: 6014
Re: Custom Board Pin Assignment
REPL and LEDs are working. I slowed it down to 9600 and everything works. Still can't get it going at 115200 for some reason. Something wrong with my clock setup. Thanks for your help.
- Thu May 28, 2015 1:32 am
- Forum: Other Boards
- Topic: Custom Board Pin Assignment
- Replies: 6
- Views: 6014
Re: Custom Board Pin Assignment
Okay. I understand how you handle the alternative functions now. Not applicable for that led pin.
Code compiled and programmed on the board. I have a UART on pa9 and 10. I enabled the REPL on uart1 with the compile option in main.c. The UART seems to echo back my characters but no REPL.
Code compiled and programmed on the board. I have a UART on pa9 and 10. I enabled the REPL on uart1 with the compile option in main.c. The UART seems to echo back my characters but no REPL.