Search found 10 matches

by Edogaldo
Tue Mar 02, 2021 1:28 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: micros() Resolution
Replies: 4
Views: 4687

Re: micros() Resolution

@Ali I think here is your answer: https://www.arduino.cc/reference/en/lan ... me/micros/
[...]
On the boards from the Arduino Portenta family this function has a resolution of one microsecond on all cores.
[...]
by Edogaldo
Mon Feb 22, 2021 1:30 pm
Forum: General discussion
Topic: Jump to bootloader STM32F103
Replies: 10
Views: 12942

Re: Jump to bootloader STM32F103

Code: Select all

#if defined(USE_HAL_DRIVER)
HAL_RCC_DeInit();
#endif /* defined(USE_HAL_DRIVER) */
#if defined(USE_STDPERIPH_DRIVER)
RCC_DeInit();
#endif /* defined(USE_STDPERIPH_DRIVER) */
Can it be that neither USE_HAL_DRIVER nor USE_STDPERIPH_DRIVER are defined and thus the micro does not deinit the RCC?
by Edogaldo
Sun Jan 10, 2021 2:32 pm
Forum: General discussion
Topic: memory protection detecting stack overwriting heap
Replies: 5
Views: 3123

Re: memory protection detecting stack overwriting heap

Hi ag123, even if you could protect the heap, this would not solve the real problem. The real problem in these cases is not just that the stack invades the heap memory but rather that the application makes the stack growing too much respect to the available memory and this is due to the application ...
by Edogaldo
Sun Jan 10, 2021 9:59 am
Forum: General discussion
Topic: increase the serial1 buffer size
Replies: 7
Views: 5389

Re: increase the serial1 buffer size

Conflicts between heap and stack could happen, it's to be checked case by case. Also, if I'm not wrong, the buffers are created for each available serial and not only for the used ones, so this means that the buffer allocated is multiplied by the number of available serials. This can make more proba...
by Edogaldo
Sat Jan 09, 2021 11:05 pm
Forum: General discussion
Topic: increase the serial1 buffer size
Replies: 7
Views: 5389

Re: increase the serial1 buffer size

mrburnette wrote: Sat Jan 09, 2021 10:48 pmMy (untried) thinking is to create a new boards.txt entry and set the environmental variable there, using something like
-DUSART_RX_BUF_SIZE nnn

https://github.com/rogerclarkmelbourne/ ... boards.txt
Yes, correct.
by Edogaldo
Sat Jan 09, 2021 6:24 pm
Forum: General discussion
Topic: increase the serial1 buffer size
Replies: 7
Views: 5389

Re: increase the serial1 buffer size

Hi, if I can recall correctly you can pass USART_RX_BUF_SIZE and USART_TX_BUF_SIZE as compiler options via the -D parameter.
by Edogaldo
Tue Nov 17, 2020 7:28 am
Forum: Projects
Topic: loop too slow
Replies: 8
Views: 4765

Re: the loop is stuck

Hi, what's the purpose of this code?

Code: Select all

  if ( millis() < lastT )
    return;
  lastT += T_REFRESH;
 
It would prevent the subsequent code to run if lastT becomes big enough.

Cheers, E.
by Edogaldo
Mon Jul 27, 2020 3:41 pm
Forum: Maple & Maple mini etc
Topic: Maple mini bricked
Replies: 4
Views: 7037

Re: Maple mini bricked

Hi warner , if you just tried to install "a bootloader" from the web (which?! from where?!), you should not have bricked the chip: it's quite robust and cannot be bricked so easily! ;) You can install another sw bootloader by leveraging the standard ST system USART bootloader (on USART1), ...
by Edogaldo
Fri Jul 10, 2020 10:24 pm
Forum: Let us know a bit about you and your projects
Topic: encryption
Replies: 3
Views: 6603

Re: encryption

Hello Rtelles , you can take a look at these libraries: https://github.com/Ko-/aes-armcortexm: AES (symmetric) https://github.com/kmackay/micro-ecc: Elliptic Crypto (asymmetric) http://utter.chaos.org.uk:/~markt/AES-library.zip: small AES library for Arduino (referenced here ) Hope this helps. Cheer...

Go to advanced search