Search found 22 matches

by Patrick
Thu Jun 09, 2022 6:36 pm
Forum: General discussion
Topic: Je n'arrive pas à démarrer !!!
Replies: 6
Views: 1615

Re: Je n'arrive pas à démarrer !!!

Pour une vingtaine d'euros, la carte Nucleo-L432KC permet de débuter facilement, le STLINK est intégré.
Pas besoin de bidouiller les cavaliers.
La gamme des Nucleo est suffisamment étendue pour trouver la carte idéale.
Problème, pas trop de stock en ce moment, comme pour les MCUs.
by Patrick
Tue Nov 23, 2021 4:09 pm
Forum: General discussion
Topic: NTP, RTC and timezone
Replies: 7
Views: 3835

Re: NTP, RTC and timezone

Third episod! I am now displaying the current local datetime live but the card is always freezing. I found out that the problem is that setenv causes memory leak. It is a well known behavior, perfectly documented. As I call it twice each time I want to get the local datetime, I quickly run out memor...
by Patrick
Wed Nov 17, 2021 2:14 pm
Forum: General discussion
Topic: NTP, RTC and timezone
Replies: 7
Views: 3835

Re: NTP, RTC and timezone

There is a follow up to this topic. I need to monitor things for a long time (12 hours). So I wanted to setup the RTC, set an alarm and wait for alarm match. First part is achieved with NTP and RTC, but with localtime. The problem is if there is overlap between the alarm boundaries and the timezone ...
by Patrick
Tue Nov 16, 2021 1:47 pm
Forum: General discussion
Topic: NTP, RTC and timezone
Replies: 7
Views: 3835

Re: NTP, RTC and timezone

I found a way to have right UTC and local datetime. Basically, I set the RTC with functions setTime and setDate and I don't use setEpoch anymore. This is the code: ////////// // Time // ////////// void time_init() { // Time zone Europa/Paris setenv("TZ", "CET-1CEST,M3.5.0,M10.5.0/3&qu...
by Patrick
Mon Nov 15, 2021 4:12 pm
Forum: General discussion
Topic: NTP, RTC and timezone
Replies: 7
Views: 3835

NTP, RTC and timezone

I am trying to use the RTC of my STM32F746G-Discovery with standard NTPCLient and STM32Duino RTC libraries. I use NTP to retrieve the current UTC datetime and to set epoch of the RTC. The problem is when I want to get the RTC value. If I set RTC epoch with NTP as local time: localtime from RTC epoch...
by Patrick
Tue Nov 10, 2020 11:09 am
Forum: General discussion
Topic: SDRAM use
Replies: 6
Views: 4204

Re: SDRAM use

I forgot one point:
HAL_SDRAM_MODULE_ENABLED needs to be defined in variant.h.
by Patrick
Fri Nov 06, 2020 9:23 am
Forum: General discussion
Topic: SDRAM use
Replies: 6
Views: 4204

SDRAM as display buffer for STM32F746 Discovery

It is working now. I was missing to program the SDRAM chip. I found a working example with STM32CubeIDE in folder STM32Cube\Repository\STM32Cube_FW_F7_V1.16.0\Projects\STM32746G-Discovery\Examples\FMC\FMC_SDRAM\SW4STM32. I just had to copy the relevant functions and constants: void HAL_SDRAM_MspInit...
by Patrick
Thu Nov 05, 2020 2:28 pm
Forum: General discussion
Topic: SDRAM use
Replies: 6
Views: 4204

Re: SDRAM use

Hello mrburnette , mlundin , Thank you for your answers. I tried to use SDRAM as a special memory section. I modified the ldscript.ld. Then I added function to initialize SDRAM: #include "stm32f7xx_hal_sdram.h" void HAL_SDRAM_MspInit(SDRAM_HandleTypeDef *hsdram) { GPIO_InitTypeDef gpio_ini...
by Patrick
Wed Nov 04, 2020 7:10 pm
Forum: General discussion
Topic: SDRAM use
Replies: 6
Views: 4204

SDRAM use

I am using a STM32F746 Discovery board. I am slowly adding fonctionnalities. First, LTDC, touch and LVGL. Working fine. Then SD, still OK. And finally, Ethernet. Et là, c'est le drame... Blank screen. The problem is that i am running out of memory: when I try to allocate buffer for LTDC, malloc fail...
by Patrick
Wed Nov 04, 2020 10:40 am
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Libraries for the STM32F746G Discovery screen?
Replies: 14
Views: 12892

Re: Libraries for the STM32F746G Discovery screen?

Hi fpiSTM , Sorry, but it seems that apart the buffer fix, D_CACHE_DISABLED is still needed in normal use. I have done some tests today; With D_CACHE_DISABLED display is perfect with Adafruit_GFX standard tests. Without D_CACHE_DISABLED there is display glitch with same tests. Yesterday, I have done...

Go to advanced search