Jump to content

Recommended Posts

Posted

Hi,

 

unfortunately i have some two problems with my new STM32F4 core module.

I uploaded the actual bootloader 1.015 and Midibox NG 1.029 version.

This ports are wired J16, J8/9, J19, J15A and J15_S.

 

Problem 1:

The event Event Pool Allocation is 24480 of 24576 bytes (99%) exactly like

using the LPC1769 core. Shouldn't be there more bytes available :question:

 

Problem 2:

The LCD does not work (backlight and contrast are ok). 

It is a 2x16 HD44780 display.

I have triple checked the wiring and soldering.

 

 

TK, your help is needed :)

 

Best regards

Marxon

 

 

Posted (edited)

Did you compile for the new target?

 

Edit: ok, I just saw that you can now download a binary version for STM32F4, and you skip compiling yourself. So, you are using that one?

Edited by ilmenator
Posted
Sorry if this is obvious: is J15_S set for 5V?

Yeah, it does not hurt to ask ;)

J15_S is set to 5V

 

 

Best regards

Marxon

Posted

OK, open MIOS, clear your terminal screen and send load the Bootloader 1.015 hex file - not the MIDIbox NG application.

 

 

-> What does the terminal say at the very top?

 

 

For exmaple, my STM32F4 core isn't hooked to and LCD or anything else and it says:

[386343.822] Initialize LCD #1
[386343.886] Failed - no response from LCD #1.1
[386343.886] Initialize LCD #2
[386343.950] Failed - no response from LCD #2.1
Posted (edited)

Also, I just compiled the MIDIbox NG application for the STM32F4 on my pc using the latest SVN source.

 

You can try it out: http://sneak-thief.com/MIDIboxNG/project.hex

 

It loads fine and gives me the appropriate message for my setup:

 

[387180.219] [MBNG_LCD] no response from CLCD #1.1
[387180.220] [MBNG_LCD] no response from CLCD #2.1
Edited by sneakthief
Posted

After uploading your .hex MIOS gives this output:

 

 

[78833.839] Init DHCP
[78834.846] SD Card connected:
[78835.015] [MBNG_FILE_C:317] WARNING: no CC number expected for EVENT_ENC due to type: Disabled
[78835.443] [MBNG_FILE_C] Event Pool Number of Items: 734
[78835.443] [MBNG_FILE_C] Event Pool Allocation: 24480 of 24576 bytes (99%)
[78835.450] [MBNG_FILE_L] DEFAULT.NGL hasn't been changed; reading labels from existing DEFAULT.BIN file.
[78835.451] [MBNG_FILE_L] 7 labels found in /DEFAULT.BIN file
[78835.456] [MBNG_FILE_S] loading snapshot #13 from /DEFAULT.NGS
Posted

Entering "system" into the terminal gives this:

 

 

[78917.869] Application: MIDIbox NG V1.029
[78917.870] MIDI Monitor: disabled
[78917.870] MIDI Monitor Filters: enabled
[78917.870] MIDI Monitor Tempo Display: disabled
[78917.870] Print AOUT Config: TODO
[78917.870] lcd_type: 0x00 - CLCD
[78917.870] lcd_num_x: 1
[78917.870] lcd_num_y: 1
[78917.870] lcd_width: 16
[78917.870] lcd_height: 2
[78917.870] Event Pool Number of Items: 734
[78917.871] Event Pool Allocation: 24480 of 24576 bytes (99%)
Posted

I see there's nothing about LCD's, like mine:

 

[389191.893] [MBNG_LCD] no response from CLCD #1.1
[389191.894] [MBNG_LCD] no response from CLCD #2.1
[389191.894] Init DHCP
[389196.915] SD Card not found
Posted (edited)

But what does it say when you ONLY load the bootloader, like I asked above?

 

Mine again:

 

[389537.459] Initialize LCD #1
[389537.523] Failed - no response from LCD #1.1
[389537.524] Initialize LCD #2
[389537.587] Failed - no response from LCD #2.1
[389537.588] 
[389537.588] ====================
[389537.589] Bootloader 1.015
[389537.599] ====================
[389537.602] 
[389537.613] Checking Bootloader...
[389537.633] No mismatches found.
[389537.635] The bootloader is up-to-date!
[389537.651] You can upload another application now!
[389537.673] Or type 'help' in MIOS Terminal for additional options!
Edited by sneakthief
Posted
[79878.592] Initialize LCD #1

[79878.649]

[79878.649] ====================

[79878.649] Bootloader 1.015

[79878.660] ====================

[79878.662]

[79878.674] Checking Bootloader...

[79878.751] No mismatches found.

[79878.754] The bootloader is up-to-date!

[79878.769] You can upload another application now!

[79878.791] Or type 'help' in MIOS Terminal for additional options!

Posted (edited)

So, we can see that it's "initialized".

 

I think this output below only shows the stored CLCD config and NOT the actual one because it says the same on mine when I type "system" in the MIDIbox NG application:

 

[78917.870] lcd_type: 0x00 - CLCD
[78917.870] lcd_num_x: 1
[78917.870] lcd_num_y: 1
[78917.870] lcd_width: 16
[78917.870] lcd_height: 2
Edited by sneakthief
Posted

At this point, the only possibilities are:

 

1. Dead CLCD

 

- time to test another CLCD?

 

2. Something weird with the software and/or configuration

 

- das Heisst: keine Ahnung... TK! Wo bist du denn? :P

 

 

3. Bad wiring between the STM32F4, the 74HC595 and the CLCD. Did you try another 74HC595?

 

- time to post a picture of your wiring (both sides, high-res please)

Posted (edited)

1. LCD works with LPC core

2. Ehrlich TK, zu der Uhrzeit solltest du noch online sein ;)

3. Checked wiring 10 times. Also tried another 74hc595.

Edited by Marxon
Posted

Damn! Kick me in my ass!

I checked everything... Really everything? 

No, i left out the resistor array which turns out to be a 10k ohm array.

:angry: :angry: :angry:

This might be the problem!

I am going to change it and post result in some minutes...

Posted

Hi Thorsten!

 

Nice that you find the error! :smile:

 

Thank you.

Hopefully I've learned something from this issue and i will do a better troubleshooting next time.

 

 

Here a preliminary version which provides more event pool memory for the STM32F4:

http://www.ucapps.de/mios32/midibox_ng_v1_030_pre1.zip

 

Your preliminary version is working.

Event pool allocations decreased from 99% to 37%.

 

 

Best regards

Marxon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...