Search found 98 matches

by king2
Sun Feb 07, 2016 9:46 pm
Forum: STM32 Support
Topic: STM32 errata and port_switch
Replies: 4
Views: 907

STM32 errata and port_switch

Text from STM32F429 errata, 1.1: An interrupt occurring during the data-phase of a single word load to the stack pointer (SP/R13) can cause an erroneous behavior of the device. In addition, returning from the interrupt results in the load instruction being executed an additional time. For all the in...
by king2
Sun Feb 07, 2016 9:43 pm
Forum: STM32 Support
Topic: USB Host stack and driver for STM32
Replies: 45
Views: 12947

Re: USB Host stack and driver for STM32

I have reduced quantity of repetitions in for statement down to 256, and increased buffer size when calling f_write to 4096, so it is still 1M of size. In default test, with 2048 times of 512 blocks, I got 230Kb/s only.
by king2
Sun Feb 07, 2016 9:34 pm
Forum: STM32 Support
Topic: I2S problems - CPU stops, halts and other strange things
Replies: 8
Views: 1101

Re: I2S problems - CPU stops, halts and other strange things

At finish all of this, I cutted link on PCB from CPU to JTAG NJRST, and now nothing halts.
I think it was problem with Segger's J-Link Pro, or its firmware.
by king2
Sun Feb 07, 2016 6:34 pm
Forum: STM32 Support
Topic: I2S problems - CPU stops, halts and other strange things
Replies: 8
Views: 1101

Re: I2S problems - CPU stops, halts and other strange things

I have tested it again and compared to previous version when it worked. I have found that even if I use I2S3 CPU halts where I have not set I2S2 pins in board.h. If I set I2S pins (PB12, PB13 and PB15) as alternate with AF=5 - everything works ok (no actual signal on I2S2 pins, but I can see transfe...
by king2
Sun Feb 07, 2016 2:02 pm
Forum: STM32 Support
Topic: I2S problems - CPU stops, halts and other strange things
Replies: 8
Views: 1101

Re: I2S problems - CPU stops, halts and other strange things

I have tried to check when it halts, and found. This breakpoint runs fine till I2S starts DMA transfer. Next task switching just before it will crash: http://king2.net/files/screen-before-halt.png As I understand, next asm instruction should store register SP into memory at address 0x20000C8F+12 = 0...
by king2
Sun Feb 07, 2016 1:19 pm
Forum: STM32 Support
Topic: I2S problems - CPU stops, halts and other strange things
Replies: 8
Views: 1101

Re: I2S problems - CPU stops, halts and other strange things

I have checked variables that placed after the buffer, and found right values, so it is not DMA overflow.
I have CH_DBG_ENABLE_STACK_CHECK set to TRUE, so I think it is not stack overflow?

How to check this?
by king2
Sun Feb 07, 2016 4:26 am
Forum: STM32 Support
Topic: I2S problems - CPU stops, halts and other strange things
Replies: 8
Views: 1101

I2S problems - CPU stops, halts and other strange things

I use I2S driver in my app (STM32F429), RX master, SPI3, (IAR compiler, J-Link Pro probe with SWD). When I start DMA transfer, strange things happens. IAR stops CPU as it was breakpoint, but with no real breakpoint, at random address (sometimes 0, sometimes 0x8xxxxxxx or 0x4xxxxxxx...), with stack p...
by king2
Sat Feb 06, 2016 12:00 am
Forum: STM32 Support
Topic: USB Host stack and driver for STM32
Replies: 45
Views: 12947

Re: USB Host stack and driver for STM32

Finally, I got it compiled with IAR. I changed list.h and some sources due to absence of typeof in IAR, and changed format of packed and align . With 512 byte block it gives me ~500Kb/s read speed and 230Kb/s write speed, but with blocks of 4096 bytes I got: BLK: Raw read test (1MB, 10240B blocks) B...
by king2
Fri Feb 05, 2016 1:20 pm
Forum: STM32 Support
Topic: USB Host stack and driver for STM32
Replies: 45
Views: 12947

Re: USB Host stack and driver for STM32

There is a problem with list.h, doubly linked list.
It uses typeof(), compound statements, which is accessible in GCC only :(

Is there any chance to use more compatible code that will compile in other compilers as well?
by king2
Thu Feb 04, 2016 9:17 pm
Forum: STM32 Support
Topic: USB Host stack and driver for STM32
Replies: 45
Views: 12947

Re: USB Host stack and driver for STM32

I cannot compile it with IAR :( USB stack was written for GCC, as I see, so several places with ((packed)) I just changed to __packed before struct definition, same with alignment (was changed to #pragma). But almost all macros from list.h cannot be compiled :( For example, one of functions after pr...

Go to advanced search