Search found 661 matches

by stevestrong
Fri Feb 24, 2017 10:00 am
Forum: General discussion
Topic: Remap PB2
Replies: 20
Views: 218

Re: Remap PB2

Which upload method are u using? I remember, there are some pins (including PB4) which only work if some define is active, dependent on some upload method (it is related to debug port, if you search the forum for "PB4" you will have something to read about). I think the solution is to remo...
by stevestrong
Fri Feb 24, 2017 9:26 am
Forum: General discussion
Topic: Remap PB2
Replies: 20
Views: 218

Re: Remap PB2

Well, I can see that violet (PA0) and grey (PA1) should be swapped on the display module - violet from PA0 is now connected with LCD_D1, which is wrong.
by stevestrong
Fri Feb 24, 2017 8:13 am
Forum: General discussion
Topic: Remap PB2
Replies: 20
Views: 218

Re: Remap PB2

It is obvious that your connection from F103 board to display module is wrong, I can see it from the attached picture. Be aware, that the data pins on the display board are not consecutively numbered. D0 and D1 are twisted and are placed on the other connector than D2..D7. At least I think so, becau...
by stevestrong
Fri Feb 24, 2017 8:06 am
Forum: Generic STM32F103
Topic: Hello, trying to hack SPI1 working "bare metal"
Replies: 9
Views: 86

Re: Hello, trying to hack SPI1 working "bare metal"

Please mark it as SOLVED in the title if it is the case.
by stevestrong
Thu Feb 23, 2017 6:20 pm
Forum: General discussion
Topic: Remap PB2
Replies: 20
Views: 218

Re: Remap PB2

Steve, to test the data and control lines I strongly recommend to use first the LCD_ID_readreg.INO sketch from David Prentice . Just adapt the pins you have wired, using PXY notation (e.g. PA3). I was using it as well to debug my setup, and could successful correct my errors based on that. You could...
by stevestrong
Thu Feb 23, 2017 6:09 pm
Forum: General discussion
Topic: Planning to add callback to the SPI DMA functions (dmaSend, dmaTransfer...)
Replies: 24
Views: 167

Re: Planning to add callback to the SPI DMA functions (dmaSend, dmaTransfer...)

I think we could reserve the DMA usage of channels 2 to 5 for SPI1 and 2 (both Rx and Tx), user configurable . The other channels would be then always free for other purposes. I am attaching my local version of SPI.cpp, where I started to implement a dual-buffered DMA transfer: while sending one buf...
by stevestrong
Thu Feb 23, 2017 3:22 pm
Forum: Generic STM32F103
Topic: Hello, trying to hack SPI1 working "bare metal"
Replies: 9
Views: 86

Re: Hello, trying to hack SPI1 working "bare metal"

If you would really check the lines of code (and track the called function) I linked to my previous post, you could maybe solve your issue.
by stevestrong
Thu Feb 23, 2017 2:39 pm
Forum: Generic STM32F103
Topic: Hello, trying to hack SPI1 working "bare metal"
Replies: 9
Views: 86

Re: Hello, trying to hack SPI1 working "bare metal"

I think this thread should be moved to viewforum.php?f=48, as it does not use the Arduino_STM32 repo.
Meanwhile you could check these lines of code, maybe helps.
by stevestrong
Thu Feb 23, 2017 12:06 pm
Forum: General discussion
Topic: [SOLVED] should we wait till Tx empty before calling dev->regs->DR again? or not ? spi_tx issue
Replies: 21
Views: 177

Re: [SOLVED] should we wait till Tx empty before calling dev->regs->DR again? or not ? spi_tx issue

Btw, which revision of RM0008 are u using?
My one is "DocID13902 Rev 15", and the mentioned info is on page 731 instead of 743.
by stevestrong
Thu Feb 23, 2017 11:57 am
Forum: Generic STM32F103
Topic: Hello, trying to hack SPI1 working "bare metal"
Replies: 9
Views: 86

Re: Hello, trying to hack SPI1 working "bare metal"

Is there any reason why not to use a "human readable" version of setting the registers? For example: spi_reg_map * regs = SPI1->regs; regs->DR = 0x00FF; while ( (regs->SR & SPI_SR_RXNE)==0 ) ; Be careful by writing: if you have already data waiting to be read out, your reading at the e...

Go to advanced search