Search found 98 matches

by king2
Mon Apr 17, 2017 4:19 am
Forum: STM32 Support
Topic: Stacks and heap, and other memory areas
Replies: 4
Views: 1040

Re: Stacks and heap, and other memory areas

I ended up with following ICF file: // define addresses //define symbol __ICFEDIT_region_FLASH_start__ = 0x08004000; define symbol __ICFEDIT_region_FLASH_start__ = 0x08000000; define symbol __ICFEDIT_region_FLASH_end__ = 0x080FFFFF; define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000; define ...
by king2
Mon Apr 17, 2017 1:20 am
Forum: STM32 Support
Topic: Stacks and heap, and other memory areas
Replies: 4
Views: 1040

Stacks and heap, and other memory areas

Hi! Sorry for newbie question, but today I met strange situation, which gave me a big kick to know more about STM32 stacks, heaps and how ChibiOS deals with all this. I had irqstack with size of 0x400, placed at start of RAM and everything was fine. But when I have moved it from start of memory, it ...
by king2
Tue Mar 28, 2017 1:06 pm
Forum: STM32 Support
Topic: STM32 I2Cv1 driver with interrupts
Replies: 4
Views: 798

Re: STM32 I2Cv1 driver with interrupts

I have applied the patch and it works as expected (with little cosmetic modifications due to new version of ChibiOS). Driver works like I2Cv2 version, with DMA or IRQ depending on same STM32_I2C_USE_DMA define. I do not know how to add something to community right way, so I will attach patched drive...
by king2
Tue Mar 28, 2017 1:41 am
Forum: STM32 Support
Topic: STM32 I2Cv1 driver with interrupts
Replies: 4
Views: 798

STM32 I2Cv1 driver with interrupts

Hi, @Giovanni! I met a problem in my design with STM32F437, I did not looked on DMA streams allocation, so I have now all my alwayw-needed peripherals connected to same DMA channel (UART4, I2S2 and I2C3). I2S2 used to make some type of PWM on external DAC (to increase its accuracy and linearity), so...
by king2
Sat Mar 25, 2017 7:44 pm
Forum: STM32 Support
Topic: FSMC NAND flash problem with community driver
Replies: 1
Views: 437

Re: FSMC NAND flash problem with community driver

I have found the error.
Error was in PCB routing, TE connected NCE3 and INT2 to NAND flash in their module, so it fired interrupt, but it was not respected by FSMC module as it belongs to another bank. :)
by king2
Sat Mar 25, 2017 6:08 pm
Forum: STM32 Support
Topic: FSMC NAND flash problem with community driver
Replies: 1
Views: 437

FSMC NAND flash problem with community driver

Hi! First, big thanks to @barthess for great driver! I'm using TE-STM32F437 board (https://www.terraelectronica.ru/catalog_info.php?CODE=1327703, sorry only russian there), but its schematic can be found at http://king2.net/files/TE-STM32F437/TE-STM32Fx17MCU_sheet.pdf, example project at http://king...
by king2
Fri Feb 12, 2016 8:26 am
Forum: STM32 Support
Topic: USB Host stack and driver for STM32
Replies: 45
Views: 12905

Re: USB Host stack and driver for STM32

Sorry, I have no GCC to test :(
by king2
Wed Feb 10, 2016 9:00 pm
Forum: Development and Feedback
Topic: Some compiler warnings
Replies: 11
Views: 1866

Re: Some compiler warnings

I have edited my post above. My default settings for MISRA-2004 generates warnings like 'Error[Pm154]: in the definition of a function-like macro, each instance of a parameter shall be enclosed in parenthesis (MISRA C 2004 rule 19.10) \ChibiOS\os\rt\ports\ARMCMx\compilers\IAR\chtypes.h 89' and many ...
by king2
Wed Feb 10, 2016 8:55 pm
Forum: Development and Feedback
Topic: Some compiler warnings
Replies: 11
Views: 1866

Re: Some compiler warnings

Not now. If I will enable MISRA, it generates too many errors. :) It does not know what it should read first - PR or IMR. In my patch it is clear, we will read PR first, then IMR. If we will combine them into one string, it is unclear to compiler, which volatile it should read first to not break any...
by king2
Wed Feb 10, 2016 6:23 pm
Forum: Development and Feedback
Topic: Some compiler warnings
Replies: 11
Views: 1866

Re: Some compiler warnings

Yes, it still generates warning.. in IAR :(

Go to advanced search