Hi,
in the meantime I got an Eval-Board (MCBSTM32E). I've downloaded the elf-file to the board with Crossworks environment (JTAG<->USB CrossConnect). I guess it works, but I'm not 100% sure on that. Now I expected something happens at serial interface after rebooting the device. But nothing happens. Do you have any idea? As I'm not familiar with this board, it might be the case that I've done stupid beginner's mistake(s). My platform_conf.h: // ****************************************************** // Define here what components you want for this platform #define BUILD_XMODEM #define BUILD_SHELL #define BUILD_ROMFS #define BUILD_TERM //#define BUILD_UIP //#define BUILD_DHCPC //#define BUILD_DNS //#define BUILD_CON_GENERIC #define BUILD_ADC //#define BUILD_CON_TCP // ************************************************** // UART/Timer IDs configuration data (used in main.c) #define CON_UART_ID 0 #define CON_UART_SPEED 115200 #define CON_TIMER_ID 0 #define TERM_LINES 25 #define TERM_COLS 80 The only jumper on board, which is set is J3 - to enable the speaker. Best Regards, Joerg
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi,
I'm not at all familiar with Crossworks or the MCBSTM32E, so I don't know what to tell you. In theory, an elf file should work no matter how you upload it to the board. I couldn't find a schematic of the forementioned board, so please check a few things: - what is the code of the CPU on your board? It must match a CPU famility with 512k flash/64k RAM, check for details here : http://www.st.com/mcu/inchtml-pages-stm32.html - are you indeed connecting to UART0 ? (check the schematic) - on your terminal program, is the serial port setup at 115200, 8 data bits, no parity bits, one stop bit? Best, Bogdan
On Wed, Jul 15, 2009 at 10:25 AM, <[hidden email]> wrote:
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by lua-2
After playing around with platform_conf.h, I attached wrong version.
#define BUILD_CON_GENERIC is included so it looks like: #define BUILD_XMODEM #define BUILD_SHELL #define BUILD_ROMFS #define BUILD_TERM //#define BUILD_UIP //#define BUILD_DHCPC //#define BUILD_DNS #define BUILD_CON_GENERIC #define BUILD_ADC //#define BUILD_CON_TCP
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
This looks fine, I don't think the problem is here.
Hmmmm. Come to think of it, I never really uploaded an elf to a board before. Just binary or hex file that I get from the elf after running objcopy on it. I don't know how the elf uploader in Crossworks works. Do you have an option to specify what sections you can upload, or something similar? Best, Bogdan On Wed, Jul 15, 2009 at 10:34 AM, <[hidden email]> wrote:
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by lua-2
Hi Bogdan,
checking the schematics regarding the really used UART was the hint I needed. I think it's a good idea to set CON_UART_ID to 1, if it is build for board=STM3210E-EVAL. Best Regards, Joerg
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
On Wed, Jul 15, 2009 at 12:36 PM, <[hidden email]> wrote:
It's a matter of numbering, really. Although CON_UART_ID is set to 0 in platform_conf.h, the chip itself starts numbering its USART interfaces from 1, so CON_UART_ID 0 actually maps to USART1 in the code. You're probably using USART2 since setting CON_UART_ID to 1 did the trick for you. I don't think this is the case for the STM3210E-EVAL board, though. The corect way to handle this is to add a new board for the stm32 platform (in your case MCBSTM32E) and set CON_UART_ID to 1 only for this board. If you'd like to know how to add a new board to eLua, check this link: http://elua.berlios.de/beta/en/arch_newport.html In any case, I'm glad it's working for you now :) Best, Bogdan
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by lua-2
Hi,
I didn't realize that the board from Keil is not the same as the board from ST. The board does not use the "real" UART. The UART is done via GPIO and ST3232. Numbering is given by platform.c: static const u16 usart_gpio_rx_pin[] = { GPIO_Pin_10, GPIO_Pin_3, ... }; static const u16 usart_gpio_tx_pin[] = { GPIO_Pin_9, GPIO_Pin_2, ... }; First scripts ('hello', 'led,' ...) are also working. :-) Best Regards, Joerg
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
On Wed, Jul 15, 2009 at 2:39 PM, <[hidden email]> wrote:
Frankly, the only thing I know about the board from Keil is its name :)
Actually, the board uses real UART (or so I assume, it would be very strange not to do so), what's listed in platform.c is just the I/O assignment of the UART pins (which is dynamic in the case of the STM32, which means that you can assign the RX/TX line of USART1 (for example) to a number of different pins, not just GPIO_Pin_10/GPIO_Pin_9). Consult the datasheet for more details. Of course, if you change the USART I/O assignment you'd also need to change your PCB :)
Getting there quickly, I see :) Keep up the good work! Best, Bogdan
_______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |