Wednesday, May 23rd 2018, 10:40pm UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 44.

Wednesday, November 15th 2017, 4:52pm

Author: gpontis

SAME70 TCM setting

Hi Markus, Here is the code that I used. It has not been much tested but does appear to work properly in my environment. In particular it adjusts the top of the stack downward, if necessary, to ensure that the firmware can always start up enough to call into a C function, no matter how the GPNVM bits are set. It would be easiest to post my thumb_crt0.s file but am not doing so due to copyright. Instead I posted my additions and some notes that I think are sufficient to see what is being done, an...

Friday, November 10th 2017, 4:58pm

Author: gpontis

SAME70 TCM setting

Hi Markus, I did this and am developing an application based on it. It took some effort, which would have been less effort if the process of generating a linker command file was better documented. Or better yet, when Segger rolls out their own linker to replace gnu ld. In any case, I was going for a design that would always start up no matter how the GPNVM bits were programmed. I wrote C code that looks at linker defined symbols to determine how much TCM is required by the application. If the ex...

Monday, November 6th 2017, 5:43pm

Author: gpontis

[SOLVED] Search project for text strings not working

Sorry - specific example above with .s file was not showing results due to having a filter for only *.c. It does work with *.* Previous examples still don't work as I would have expected. George

Sunday, November 5th 2017, 2:27am

Author: gpontis

[SOLVED] Search project for text strings not working

Here is another example, more flagrant. In the project there is a ATSAME70Q21_Vectors.s. I can open that file, select a vector, and try to search for it. For example, if I double-click to select "UASRT0_IRQHandler", each of the five instances of the symbol in this file are highlighted. But the find references command reports "No results". I can try to cut down the project to a simple example and upload it. George

Thursday, November 2nd 2017, 8:47pm

Author: gpontis

[SOLVED] Search project for text strings not working

Hi Nino, I came across two cases this morning where the search does not work. The first was when I was searching for a function declared in a system .h file, and the function was not used in the source yet. Specifically I was looking for a function from CMSIS called NVIC_GetPriority. The search returns nothing. However a search for NVIC_SetPriority finds the CMSIS file and opens it up. The very next method in that file is the Get that was not found. In another case I was looking for a method fro...

Tuesday, October 31st 2017, 3:27pm

Author: gpontis

[SOLVED] Search project for text strings not working

Hi All, I've been getting to know 3.28 and 3.30 as a development environment. One thing that comes up all the time is that I want to find all the occurances of a preprocessor macro, or a variable, or a comment in the project. Mostly, this is not working for me and I have to use some external grep program to do the job. SES is just not finding them even when they exist, and under the directory structure of the main project. Is there a switch or option somewhere that affects what SES will search ?...

Thursday, October 19th 2017, 8:11pm

Author: gpontis

Getting started prob with SES, M7 project

Thanks for looking at this. FYI, the way that Atmel handles this in their Studio is to simply set the top of RAM at 128K. That will always work for a demo, even if the GPNVM bits configure 128K each for DTCM and ITCM. George

Sunday, October 15th 2017, 7:58pm

Author: gpontis

Get size of a memory segment

I am trying to find the size of a memory segment. In this specific case it should be easy since I only have one section in the memory segment. According to the docs for the section placement file format, one can add a size_symbol. If my understanding is correct, then I could access the value through this symbol in the application code. I tried this: <MemorySegment name="$(ITCM_NAME:ITCM)"> <ProgramSection alignment="4" load="No" size_symbol="__itcm_size__" name=".code_TCM_run" /> </MemorySegment...

Friday, October 13th 2017, 9:30pm

Author: gpontis

Getting started prob with SES, M7 project

Mystery solved. GPNVM bits 7, 8 in micro were set to map 128K of RAM to ITCM and another 128K to DTCM. That left only 128K available for program RAM, stacks, data. The startup code assumes that the caches are not used at all, so all 384K RAM would be available, and sets the stack pointer at 384K above the ram starting address. The micro specifically does not generate an exception when trying to access RAM that does not exist, unless the MPU is programmed to do so.

Friday, October 13th 2017, 8:36pm

Author: gpontis

Getting started prob with SES, M7 project

And also that it fails the same way with the Atmel SAME70 Xplained demo board. The fault occurs on a pop.w { r4-r11, pc }, but memory where sp is pointing is all 0. In fact that area of memory has been all 0 since entering main. It looks like the memory is not being written. For example, in the corresponding push.w { r4-r11, lr } the affected memory is not changed after the instruction executes, and at least the LR is not zero.

Friday, October 13th 2017, 7:10pm

Author: gpontis

Getting started prob with SES, M7 project

I should add that the fault does not occur when running in the simulator

Friday, October 13th 2017, 3:25am

Author: gpontis

Getting started prob with SES, M7 project

I am trying to get familiar with SES by trying some of the demo programs. This is on a custom board with Atmel SAME70 microcontroller. I believe that the hardware is OK since I can program and run code and step in the debugger, via J-Link. However, all the demos blow up very early. For example, the hello world program gets a little ways into vsnprintf, then goes to the hard fault handler. It is usage fault, invalid state. No doubt there is something very simple behind this. Anything obvious to c...

Friday, March 28th 2014, 5:33pm

Author: gpontis

J-LInk Ultra+, losing communication after computer sleeps

I changed all the USB hub settings ( Windows device manager ) to not allow the computer to put the device to sleep. But this was not sufficient to fix the problem. I also tried connecting the J-Link directly to a port on the PC, and through a hub. In cases, the USB link is somehow broken when the computer sleeps. If I try to start the IAR debugger, which is set to use the J-Link, the IAR app simply hangs. I assume that this is due to some behavior in the Segger DLL. If at that point I unplug the...

Friday, March 14th 2014, 5:04pm

Author: gpontis

Ultra+ with IAR 6.70 going into erase mode unexpectedly

Infrequently while debugging the J-Link goes into an "erase flash" mode. Perhaps it is after taking an exception of some kind due to a program bug. But in fact it does actually erase flash on the target device. I am developing with a Kinetis K60. After the unexpected erase, it can be hard to halt the debugging session and eventually when I reconnect and try to reprogram my target, it warns me about erasing a secured Kinetis device. What is going on here ? To be more specific about what happens: ...

Friday, March 14th 2014, 4:57pm

Author: gpontis

J-LInk Ultra+, losing communication after computer sleeps

Software 4.80g I've used many J-links over the years but recently purchased and am using an Ultra+ now. I connect it to a Windows 7 x64 PC through a 7 port hub. What I am finding is that after the computer sleeps and then wakes up, communication with the J-Link is lost. To re-establish communication I need to unplug the USB cable from the J-Link and plug it back in. I don't recall this happening with the other models previously. Is this in fact something specific to the Ultra+ or have I overlook...

Wednesday, January 29th 2014, 4:50am

Author: gpontis

Warning message when trying to program flash on Freescale K60

In fact I am still seeing this message but it is apparent that there is no problem to click OK and let it erase the affected sectors. The affected sectors do not include sector 0. So no need for further support and the case can be closed.

Friday, January 24th 2014, 5:35am

Author: gpontis

Warning message when trying to program flash on Freescale K60

It looks like this was caused by an incorrect clock setup in the firmware. If it booted with that bad setup then this error occurred. Geo.

Wednesday, January 22nd 2014, 9:59pm

Author: gpontis

Warning message when trying to program flash on Freescale K60

I want to write a binary block of data to internal flash on a Freescale K60. The block should go at 0x30000, leaving room for the firmware between 0 and 2ffff. JFlash knows the chip and things look good until I try "Auto". Then it gives a warning message that "erasing sector 0 may read-protect the entire flash chip". What's going on here ? George

Monday, September 9th 2013, 11:17pm

Author: gpontis

Preemptive task switch not working ?

It was a fault on my end. The priorities were being set in an array that was not properly indexed. Sorry for the noise! George

Tuesday, September 3rd 2013, 8:58am

Author: gpontis

Preemptive task switch not working ?

STM32F103E, embOS 3.88b, CMSIS. IAR 6.5 I was porting an existing non-RTOS app to use embos and came across a problem with preemption. Most of the original superloop code was untouched, I just moved it into the lowest pri task. Two new tasks were created with higher numerical priorities. The app appears to hang as soon as OS_Start is called, and the higher pri tasks don't show enough of a run count. One shows "1" and the other "0". If one breaks execution in the debugger, it can be seen that the...