OFFTOPIC?: arm-linux-gnueabi-gdb error with cortex-m3 code

Started by jackbenimble in comp.arch.embedded7 years ago 9 replies

So I have encountered a very odd gdb error that I cant make sense of. I am using version 4.4.5 of the gcc tools (arm-linux-gnueabi) and version...

So I have encountered a very odd gdb error that I cant make sense of. I am using version 4.4.5 of the gcc tools (arm-linux-gnueabi) and version 7.0.1 of the gdb (arm-linux-gnueabi) debugger. I am using stm32f103 cortex-m3 board Basically gdb seems to be clobbering the values passed to functions. Heres an example: Breakpoint 1, main () at apps/core/core_test.c:46 46 wdTemp = wdT...


Use of TRST on ST vs. Luminary ARM JTAG?

Started by Tim Wescott in comp.arch.embedded8 years ago 6 replies

I'm using an ST ARM Cortex part for the first time. I've been using Luminary parts until now. I notice that on the Olimex demo board for the...

I'm using an ST ARM Cortex part for the first time. I've been using Luminary parts until now. I notice that on the Olimex demo board for the STM32F103RBT6, they have the JTAG TRST pin connected, but on the Luminary eval board for the LM3S811 the TRST pin is left open. Does anyone know why this is? Is it just that the TRST pin is sorta optional, and the Luminary folks weren't in a m...


stm32f103rct6 with more ram then expected

Started by kristoff in comp.arch.embedded3 years ago 7 replies

Hi, Some time ago, I boght a cheap devboard from a well known Chinese webshop with a STM32F103RCT6 chip on it. According to the...

Hi, Some time ago, I boght a cheap devboard from a well known Chinese webshop with a STM32F103RCT6 chip on it. According to the datasheets, that chip has 48 KB of RAM and 256 KB of flashrom. However, when using the linux arm-gdb and the st-util and st-info, they say that the chip actually has 64 KB of RAM (so more then exptected). Using gdb (writing to memory and reading bac...


Embedded scripting engine

Started by Raul in comp.arch.embedded10 years ago 5 replies

Hi, I'm looking for a small scripting engine implementation for my embedded project running on STM32F103T6 MCU @ 72MHz and FreeRTOS 6.0.4 and...

Hi, I'm looking for a small scripting engine implementation for my embedded project running on STM32F103T6 MCU @ 72MHz and FreeRTOS 6.0.4 and ST library 3.2.0. Right now, I'm using a derivate of basic language with code: c=0 for d=1 to 10000 set_onboard_led c if c=0 then c=1 else c=0 next d end and get performance roughly 1 millisecond per 1 loop. The project is level 2 optimiz...


DMA losing sync on ST ARM processor

Started by Tim Wescott in comp.arch.embedded7 years ago 19 replies

I'm using an STM32F103VB, and one of the things that I'm doing is doing a set of ADC reads which are then being transferred via DMA to a...

I'm using an STM32F103VB, and one of the things that I'm doing is doing a set of ADC reads which are then being transferred via DMA to a buffer. For some reason, when I'm debugging the DMA transfer gets scrambled: channel 0 ends up where channel 1 is supposed to go, channel 1 where channel 2 should be, on up the line until finally the last channel gets written to channel 0. I have th...


.Net Micro Framework on an Arm Cortex M3, experiences anyone?

Started by Kvik in comp.arch.embedded8 years ago 1 reply

Hi We are working on a new product and we are contemplating using a Virtual Machine, running the Microsoft .Net Micro Framework It seems it...

Hi We are working on a new product and we are contemplating using a Virtual Machine, running the Microsoft .Net Micro Framework It seems it could be running on a STM32F105 (Cortex M3 device) with 256kB Flash and 64kB RAM. We do not need it to run very fast, we just need the ability to be relatively processor independent and to gain a higher abstraction level if possible, reducing deve...


STM32F152 question

Started by sburck in comp.arch.embedded8 years ago 8 replies

I'm setting up a new project on an STM32F152, and and having a problem with the wakeup timer of the RTC. It seems to be running, setting the...

I'm setting up a new project on an STM32F152, and and having a problem with the wakeup timer of the RTC. It seems to be running, setting the interrupt flag, and the interrupt is enabled, but not jumping to the handler. I'm using IAR's toolkit. The code looks like this: SCB-> VTOR = 0x08000000; RCC-> CR |= (uint32_t)0x00000100; /*! < Reset SW[1:0], HPRE[3:0], PPRE1[2:0], PPRE2[2:0],


STM32F2 series users group

Started by Mike Perkins in comp.arch.embedded7 years ago 16 replies

Can anyone point me in the direction of a suitable user's group? I'm currently battling with a STM32F205 and come across a couple of...

Can anyone point me in the direction of a suitable user's group? I'm currently battling with a STM32F205 and come across a couple of snags!! -- Mike Perkins Video Solutions Ltd www.videosolutions.ltd.uk


SSD1963 LCD controller PWM output failure

Started by johsey in comp.arch.embedded7 years ago 2 replies

Hello, I designed a motherboard based on a STM32F205 MCU from ST which communicates with a 5 inches TFT LCD through a SSD1963 LCD controller...

Hello, I designed a motherboard based on a STM32F205 MCU from ST which communicates with a 5 inches TFT LCD through a SSD1963 LCD controller from Solomon Systech. This LCD controller has a PWM output pin that can be used to send a PWM signal to a backlight driver. In my design, I used this pin for driving the control pin of a TPS61165 high brightness white LED driver from Texas Instruments. ...


STM32F2xx,bootloader from USB pen,is it possible?

Started by blisca in comp.arch.embedded8 years ago 8 replies

Hi, I read in the datasheet about that by means the so called DFU is it possible to bootload when the STM32F2xx act as USB device. Anyone...

Hi, I read in the datasheet about that by means the so called DFU is it possible to bootload when the STM32F2xx act as USB device. Anyone has hints or links about how to bootload from a pen drive using STM32F2XX as USB host ??? Many thanks


gnu compiler optimizes out "asm" statements

Started by Tim Wescott in comp.arch.embedded5 years ago 52 replies

This is related to my question about interrupts in an STM32F303 processor. It turns out that the problem is in the compiler (or I'm going...

This is related to my question about interrupts in an STM32F303 processor. It turns out that the problem is in the compiler (or I'm going insane, which is never outside the realm of possibility when I'm working on embedded software). I'm coding in C++, and I'm using a clever dodge for protecting chunks of code from getting interrupted. Basically, I have a class that protects a block...


ARM Cortex M4, STM32F303VCT6, Interrupts not working

Started by Tim Wescott in comp.arch.embedded5 years ago 4 replies

OK. I've got decades of experience in the embedded space and I should be able to do this without whining for help here -- but I'm at the "bash...

OK. I've got decades of experience in the embedded space and I should be able to do this without whining for help here -- but I'm at the "bash your head against the wall until some bricks give way" stage of this problem and I'm starting to go in circles. I'm hoping that someone happens to know an answer, or will give me some suggestion that helps me find my way. I've got a project t...


Position independent code with fixed data and bss

Started by Christopher Collins in comp.arch.embedded2 years ago 20 replies

MCU: STM32F4 (ARM Cortex M4) Build environment: arm-none-eabi-gcc 4.8.4 20140725 My goal is to build an image that can be run from any...

MCU: STM32F4 (ARM Cortex M4) Build environment: arm-none-eabi-gcc 4.8.4 20140725 My goal is to build an image that can be run from any properly-aligned offset in internal flash (i.e., position-independent). I found the following set of gcc flags that achieves this goal: # Generate position independent code. -fPIC # Access bss via the GOT. -mno-pic-data-is-text-relati...


No I2C ACK from CS43L22

Started by Uwe Bonnes in comp.arch.embedded8 years ago 3 replies

Hello, I am trying to bring up the devices on the STM32F4 Discoveryboard. The CS43L22 is still giving headaches. I query the I2C Bus by...

Hello, I am trying to bring up the devices on the STM32F4 Discoveryboard. The CS43L22 is still giving headaches. I query the I2C Bus by sending out address 2,4, ... 0xfe and if I get an ACK I declare the device available. I have done this on several boards before. With the CS43L22 on the STM32F4 Discoveryboard even so I can verify the waveforms with an Logic Analyser and all unrelated pins...


Puzzling power results STM32F4 FPU test

Started by Mark Borgerson in comp.arch.embedded7 years ago 17 replies

In a recent thread Jon Kirwan and I were discussing FPUs and power consumption. I decided to try some real world tests on an STM32F4...

In a recent thread Jon Kirwan and I were discussing FPUs and power consumption. I decided to try some real world tests on an STM32F4 Discovery board. After a few tests in the ChiBios RTOS, where I discovered that you can save a lot of power by doing floating point math with the FPU and shutting off the CPU clock in the idle process, I decided to try to measure the power using software a...


running the linux on STM32F407VGT6

Started by piyushpandey in comp.arch.embedded6 years ago 5 replies

Hi guys I am starting this new thread in hope that it will be a good sharing platform for both advanced users and the beginners. Actually...

Hi guys I am starting this new thread in hope that it will be a good sharing platform for both advanced users and the beginners. Actually what I am going to discuss here is that how to run linux kernel on the STM32F407VGT6 controllers the main feature of which is that it is MMU less. Many people might say that it's easy to run linux on the MMU less devices as the linux kernel has its o...


ARM Cortex M3 newbie questions

Started by Boo in comp.arch.embedded8 years ago 26 replies

Hi, I'm working on a project which is currently planned to use an ARM Cortex M3 from ST (device is from the STM32L151xC series). I've never...

Hi, I'm working on a project which is currently planned to use an ARM Cortex M3 from ST (device is from the STM32L151xC series). I've never used the Cortex chips before and my ARM experience is quite limited too, is anyone here prepared to give me the executive precis of the state of the compiler/debugger situation for these chips ? If I'd been asked the same question 10 years ago a...


Code Red for ARM Cortex M3 development - any good ?

Started by Mike in comp.arch.embedded8 years ago 34 replies

Hi, I am hardening up on using Code Red 4 for my new STM32L15xx based project and I wondered if anyone here can tell me from...

Hi, I am hardening up on using Code Red 4 for my new STM32L15xx based project and I wondered if anyone here can tell me from experience whether they have had any issues or problems with this tool set ? From what I've seen so far it seems OK and they've been quitre responsive by email. Price is good so all I need is the gotcha list to make a decision :-) Thanks, Mike


timestamp in ms and 64-bit counter

Started by pozz in comp.arch.embedded2 weeks ago 63 replies

I need a timestamp in millisecond in linux epoch. It is a number that doesn't fit in a 32-bits number. I'm using a 32-bit MCU (STM32L4R9...)...

I need a timestamp in millisecond in linux epoch. It is a number that doesn't fit in a 32-bits number. I'm using a 32-bit MCU (STM32L4R9...) so I don't have a 64-bits hw counter. I need to create a mixed sw/hw 64-bits counter. It's very simple, I configure a 32-bits hw timer to run at 1kHz and increment an uint32_t variable in timer overflow ISR. Now I need to implement a GetTick() f...


STM32L4R9 native bootloader (system memory)

Started by pozz in comp.arch.embedded6 days ago 4 replies

I have a board that mounts STM32L4R9 MCU. I'm interested in the native USB bootloader, the one that resides in system memory. The BOOT0 pin...

I have a board that mounts STM32L4R9 MCU. I'm interested in the native USB bootloader, the one that resides in system memory. The BOOT0 pin can be pulled-down or pulled-up by resistors, but those resistors can't be moved (soldered/unsoldered) at every upgrade. What I'd like to do is: - at startup, if a USB cable is connected, system memory should be selected as boot memory area - a...