2015-03-06 12:32 AM
Hi, i am very new to STM32, just installed the IAR environment. Appreciate if anyone could advise.
Is there a UART example of String transfer using UART TX/RX of PA9 and PA10 in Polling mode for STM32L053 Discovery Kit (Between PC and Kit) ?Thanks2015-03-13 02:11 AM
thanks for the links.
2015-05-11 04:42 AM
Hi,
I am new in Microcontroller programming and I hope you can help me. I have a STM32L053 Discovery Kit and I want to send a string via UART communication between my PC and MCU and display this string on the E-Paper display of the STM32L053. I have successfuly connected the stm32 pins PA9 and PA10 and with a FTDI Chip with a RS-232 Femal on my PC. I test this connection with the HTERM. But I do not know how to send a string to the E-Paper display... I hope you can help me. Thanks in advance.2015-05-11 05:16 AM
The e-paper drivers could be extracted from [STM32Cube_FW_L0_Vx.x.x]\Drivers\BSP\STM32L0538-Discovery\ and [STM32Cube_FW_L0_Vx.x.x]\Drivers\BSP\Components\gde021a1\ , there may be other needed files scattered around too, I am not going to hunt them down for you.
CubeMX might be able to autogenerate something half-usable, I don't know, I don't use it. JW2015-05-11 06:26 AM
Ok Thanks,
do you have some references about that topic?2015-05-11 12:22 PM
Jan can work with Reference Manuals and Registers, if he wrote a tutorial on Cube it would probably have one page saying ''Don't do it!''
I'm sure there's a manual for the ePaper display, and Cube certainly has an example of using it. Download the Cube system for the L0, and review what examples/samples that yields.Very few here are using the L0 and providing code examples.2015-05-12 12:29 AM
> if he wrote a tutorial on Cube it would probably have one page saying ''Don't do it!''
:) Yes it's a pose and maybe not the best survival strategy I admit. > I'm sure there's a manual for the ePaper display, I spent a couple of evenings several months ago playing with the 'L053 Disco, I like the idea e-paper ever since I've seen the concept at around 2000. I don't remember the details and had not time to get back to it since then, but surely there is some manual around for the controller. The controller supports 4-level ''grayscale'', the ''driver'' in Cube ignores it. > and Cube certainly has an example of using it. Yes - the demo the Disco comes with was built using Cube and is contained within. There is a prebuilt binary contained in the Cube in case one gets lost, and courtesy of the V2/1 of the onboard StLink which provides a virtual disk, you can copy it onto the board in a second. There *may* be a library for the epaper contained in mbed, but as mbed primarily targets the Nucleo boards, I am not sure it is - check out yourself (mbed.org). > Download the Cube system for the L0, and review what examples/samples that yields. +1 JW2015-05-12 12:38 AM
> There *may* be a library for the epaper contained in mbed, but as mbed primarily targets the
> Nucleo boards, I am not sure it is - check out yourself (mbed.org). OK I found it for you: https://developer.mbed.org/teams/ST/code/Disco_ePD_demo/ https://developer.mbed.org/teams/ST/code/EPD_GDE021A1/ JW2015-05-12 12:41 AM
Hello,
thanks for the reply. I just tried the mbed site but there are not much examples about that topic. Do you know how to modify the CUBE example UART to get a connection with the board and pc and to display a string, which is send by the pc, on the e paper?2015-05-12 01:03 AM
> I just tried the mbed site but there are not much examples about that topic.
One should be enough. I gave you link to one.> Do you know how to modify the CUBE example UART to get a connection with the board and pc and to display a string, which is send by the pc, on the e paper?
Well, you stick the UART and epaper stuff together, and use the ''print'' function on the received data. You should really figure it out yourself. JW2015-05-13 05:01 AM
Hi,
now, I am able to display a string what I want on the E-Paper, but can you say me, how I can send a string with a Terminal (HTerm for example) to an array over UART from the pc to the STM32L053 Discovery? Thanks in advance.