Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #57551

Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions

From rickman <gnuarm@gmail.com>
Newsgroups comp.lang.forth
Subject Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions
Date 2017-04-18 11:45 -0400
Organization A noiseless patient Spider
Message-ID <od5c56$m17$1@dont-email.me> (permalink)
References <9f2b46f2-b1ce-4de7-8a40-60479b471dc8@googlegroups.com> <90f50e7f-ff76-45bb-9432-0caa164ebbd3@googlegroups.com>

Show all headers | View raw


On 4/17/2017 9:17 PM, Richard Lourette wrote:
> On Saturday, April 15, 2017 at 3:41:33 PM UTC-4, Richard Lourette wrote:
>> I think I solved my problem by writing this post, but I will post anyway.
>>
>> I was wondering if anyone can suggest how I can trouble shoot the looping unhandled exception I am seeing after installing a build of stm32f030f4 (obtained from GIT on 4/14).
>>
>> The CPU I am attempting to run it on is the STM32F030F4P6. It has 16k flash and 4k SRAM.
>>
>> Any suggestion as to how to go about debugging this? This build runs on the ST DISCO board for the same family of processor.
>>
>> The memory file for this build is as follows:
>>
>>
>> MEMORY
>> {
>>    rom(RX)   : ORIGIN = 0x00000000, LENGTH = 0x3800
>>    ram(WAIL) : ORIGIN = 0x20000000, LENGTH = 0x4000
>> }
>>
>> SECTIONS
>> {
>>    .text : { *(.text*) } > rom
>>    .bss  : { *(.bss*) } > ram
>> }
>>
>>
>> I just realized the ram section length is 16k, but my CPU only has 4k.
>>
>> I still would like to know how I could have debugged this with a debugger.
>>
>> Thanks for your thoughts.
>>
>> Rich
>
> Well, as it turned out, my assumption was wrong. I am still getting the unhandled exceptions. This is not code that I wrote, but a forth port called Mecrips-Stellaris for the STM32 family of processors. The port works find on the discovery board, which has 16k of Ram.
>
> All I should have had to do was to define the RAM and Flash size for this part as it is part of the supported family.
>
> LMK if you have any insight.

Mecrisp is available pre-compiled for the stm32f030f4.  Why are you 
compiling it?  Are you changing something?  What board are you using?


The pre-compiled form is a .bin or .hex file.  Once you have one for 
your chip, the only thing that might need to be changed is the UART.  I 
see this chip has a hardware UART, so unless you are swapping that out 
with a software UART so you can use the hardware UART in your app, I 
can't think of anything that needs to be changed.

-- 

Rick C

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions Richard Lourette <rlourette@gmail.com> - 2017-04-15 12:41 -0700
  Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions rickman <gnuarm@gmail.com> - 2017-04-15 16:03 -0400
  Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions David Schultz <abuse@127.0.0.1> - 2017-04-15 15:15 -0500
  Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions Richard Lourette <rlourette@gmail.com> - 2017-04-17 18:17 -0700
    Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions rickman <gnuarm@gmail.com> - 2017-04-18 11:45 -0400
    Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions rickman <gnuarm@gmail.com> - 2017-04-18 11:52 -0400
  Re: Trying to bring up mecrisp-stellaris on ARM M0 STM32F030F4P6, getting infinite loop of unhandled exceptions jonjo <jjonethal@yahoo.de> - 2017-04-18 12:20 -0700

csiph-web