Search found 71 matches

by lnsri22
Sat Feb 09, 2019 1:04 pm
Forum: General Discussion and Questions
Topic: understanding read_buf_len in pyb.UART
Replies: 2
Views: 349

understanding read_buf_len in pyb.UART

Hello Everyone!!

I have a question with respect to UART in pyb class.

Referring to the following picture, where from the buffer size is allocated for the parameter read_buf_len.

Is it from RAM?


I'm so sorry if my question doesn't make sense.
by lnsri22
Sat Feb 09, 2019 11:46 am
Forum: General Discussion and Questions
Topic: Understanding Fatal Error with respect to STM32
Replies: 9
Views: 959

Re: Understanding Fatal Error with respect to STM32

Hi Maksym!! Thought of giving it a try and finally got the output It is MemoryError: memory allocation failed, allocating 31655 bytes MicroPython 8dc4982-dirty on 2019-02-09; MySTM with STM32F405VG Type "help()" for more information. This happens at random time intervals after restart. What am I mis...
by lnsri22
Thu Feb 07, 2019 3:02 pm
Forum: General Discussion and Questions
Topic: OSError EINVAL when trying to open a file in pyboard like hw
Replies: 0
Views: 261

OSError EINVAL when trying to open a file in pyboard like hw

Hello Everyone!! I have done a custom bootloader for stm32f405vg using IAR workbench. Inside the bootloader, I do the following. 1. Mount a SD card 2. Check for a file named "KTT.bin" in that using fr = f_open(&SDFile, CONF_FILENAME, FA_READ); which returns FatFs Error 4 (FR_NO_FILE) in the absence ...
by lnsri22
Sat Feb 02, 2019 7:12 am
Forum: MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 598

Re: frozen module not imported in PyBoard like hw

In order to execute a frozen main.py or boot.py then you need to modify main.c to do something like this: https://github.com/micropython/micropython/blob/67689bfd7e28df8d4fa23c8f25065aeb0b9d9658/ports/teensy/main.c#L315 The current main.c will only execute main.py from a filesystem, not as a frozen...
by lnsri22
Sat Feb 02, 2019 6:20 am
Forum: MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 598

Re: frozen module not imported in PyBoard like hw

In order to execute a frozen main.py or boot.py then you need to modify main.c to do something like this: https://github.com/micropython/micropython/blob/67689bfd7e28df8d4fa23c8f25065aeb0b9d9658/ports/teensy/main.c#L315 The current main.c will only execute main.py from a filesystem, not as a frozen...
by lnsri22
Fri Feb 01, 2019 5:21 pm
Forum: MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 598

Re: frozen module not imported in PyBoard like hw

Dave I have a question here. This seem to run when I make reset_mode=1 manually as discussed in my above thread.


Is there any specific reason for this behavior?


Thanks again!!
by lnsri22
Fri Feb 01, 2019 5:18 pm
Forum: MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 598

Re: frozen module not imported in PyBoard like hw

Thanks 🙏🙇 Dave!!

Let me give it a try and update you. But this was somehow running earlier when firmware0 and firmware1 were put in their default spaces. I mean (0*08000000) and (0*08020000) respectively.
by lnsri22
Fri Feb 01, 2019 9:47 am
Forum: General Discussion and Questions
Topic: understanding reset_modes in ports/stm32/main.c
Replies: 1
Views: 287

understanding reset_modes in ports/stm32/main.c

Hello Everyone!!

I am just trying to understand what "reset_mode" is and what are the impacts of this on boot (flow of main.c) specifically for stm32 port.

It would be of a great help, if someone could point me out the right direction in understanding the flow of main.c



Many thanks!!
by lnsri22
Fri Feb 01, 2019 8:36 am
Forum: MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 598

frozen module not imported in PyBoard like hw

Hello Everyone!! I have made my main.py a frozen module and my frozen module directory is "modules" I have put up main.py in drivers directory and have created a symbolic link to that file in modules I have modified main.c like this // Run the main script from the current directory. if ((reset_mode ...
by lnsri22
Fri Feb 01, 2019 7:48 am
Forum: General Discussion and Questions
Topic: filesystem not mounted on custom hw using stm32f405vg
Replies: 2
Views: 327

Re: filesystem not mounted on custom hw using stm32f405vg

Thanks Dave for the quick reply !! I took a look into it and changed the file accordingly. But it didn't help either. My modifications to the file : #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) #define CACHE_MEM_START_ADDR (0x10000000) // CCM data RAM, 64k #define FLASH_S...