Search found 25 matches

by Guenther78
Mon Apr 29, 2019 1:44 pm
Forum: ESP8266 boards
Topic: ESP-01, where are boot.py and main.py?
Replies: 5
Views: 4861

Re: ESP-01, where are boot.py and main.py?

If I understoot it right, it is not possible to write files to a device flashed with the 512 kB version of micropython. But I need to do this, because I would like to have code that runs at Power on. I flashed the ESP-01 with nodelua: https://nodelua.org/ Maybe this could be an option if somebody ha...
by Guenther78
Tue Apr 23, 2019 8:13 am
Forum: ESP8266 boards
Topic: ESP-01, where are boot.py and main.py?
Replies: 5
Views: 4861

Re: ESP-01, where are boot.py and main.py?

Yes, You are right. The flash is not big enough. Just a few minutes ago I read this also in the README.md file: https://github.com/micropython/micropython/tree/master/ports/esp8266 There's a special configuration for 512KB modules, which can be built with make 512k. This configuration is highly limi...
by Guenther78
Mon Apr 22, 2019 9:20 am
Forum: ESP8266 boards
Topic: ESP-01, where are boot.py and main.py?
Replies: 5
Views: 4861

Re: ESP-01, where are boot.py and main.py?

Hello forum, boot.py and main.py can be created by the user (3.3. Start up scripts): http://docs.micropython.org/en/latest/esp8266/tutorial/filesystem.html?highlight=webrepl It is possible to create a file with: f = open('data.txt', 'w') But it is not possible to read it or to write to it. An Attrib...
by Guenther78
Fri Apr 19, 2019 3:31 pm
Forum: ESP8266 boards
Topic: ESP-01, where are boot.py and main.py?
Replies: 5
Views: 4861

ESP-01, where are boot.py and main.py?

Hello forum, I am new to the ESP8266. I have little experience with micropython, some years ago I made some tests with a Nucleo board. I have a ESP-01 with 512 kByte flash. There is a version of micropython for ESP's with only 512 kBytes of flash memory, I downloaded and installed it via esptool. I ...
by Guenther78
Thu Sep 07, 2017 3:25 pm
Forum: Other Boards
Topic: [STM32L496] Building firmware for a new board
Replies: 10
Views: 11299

Re: [STM32L496] Building firmware for a new board

Great, now I have fixed this and similar problems. But then I got messages like this: build-STM32L496DISC/genhdr/pins_af_const.h:22:66: error: 'GPIO_AF3_SPI2' undeclared here (not in a function) First time that the origin of the error was not in the micropython source code, it was in the created fil...
by Guenther78
Mon Sep 04, 2017 2:38 pm
Forum: Other Boards
Topic: [STM32L496] Building firmware for a new board
Replies: 10
Views: 11299

Re: [STM32L496] Building firmware for a new board

HAL_PCD_MODULE_ENABLED is already uncommented. I tested the building with the STM32L4 7 6DISC board and that worked! In the folder stmhal/hal/l4/inc I found a file named stm32l4xx_hal_pcd.h. There I added || defined(STM32L496xx) in line 46. The next error I solved in a similar way, I added the same ...
by Guenther78
Wed Aug 30, 2017 4:06 pm
Forum: Other Boards
Topic: [STM32L496] Building firmware for a new board
Replies: 10
Views: 11299

Re: [STM32L496] Building firmware for a new board

I built the file stm32l496_af.csv. Then I tried to make the firmware again. But it failed with this error message: adc.c:101:2: error: #error Unsupported processor Then I added the processor in stmhal/adc.c: #elif defined(STM32L476xx) || defined(STM32L496xx) #define VBAT_DIV (3) #else #error Unsuppo...
by Guenther78
Thu Aug 24, 2017 2:21 pm
Forum: Other Boards
Topic: [STM32L496] Building firmware for a new board
Replies: 10
Views: 11299

Re: [STM32L496] Building firmware for a new board

I wasn't very successful till yet... But I found a few seconds ago this topic: https://forum.micropython.org/viewtopic.php?f=3&t=258&p=1180&hilit=make+pins.py#p1180 It is about the file "make-pins.py". To recap the content: The input files: stmhal/boards/stm32F4xx_af.csv stmhal/boards/stm32f4xx_pref...
by Guenther78
Thu Aug 17, 2017 2:40 pm
Forum: Other Boards
Topic: [STM32L496] Building firmware for a new board
Replies: 10
Views: 11299

[STM32L496] Building firmware for a new board

Hello forum, I have a STM32L496 discovery board and I want to build the firmware. First I copied the content of the folder "STM32L476DISC" to a new folder named "STM32L496". Then I made changes to the files (adding pins to pins.csv and adapting pin names in mpconfigboard.h and board_init.c). First t...
by Guenther78
Thu Aug 17, 2017 1:52 pm
Forum: Other Boards
Topic: RTC.wakeup() doesn't work at STM32L476
Replies: 2
Views: 2996

Re: RTC.wakeup() doesn't work at STM32L476

I have a STM32L496, i will test RTC.wakeup() there. But first I had to build the firmware...